[feature request] Use Artifacts Output Layout
Package
None
Is your feature request related to a problem?
Originally discussed here: https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2658/files#r2030453885
To simplify the build, pack and publish process, the build for this repository should migrate to the new Artifacts output layout added in .NET 8.
This makes it easier to find build artifacts as they are placed in a predictable consistent location (or in the case of NuGet packages, an exact location).
For cases where the location is still project specific, the structure is flatter, and all build output is still ultimately placed in the same directory (artifacts) without being spread out amongst other content (like the code).
Code such as the below can be simplified:
https://github.com/open-telemetry/opentelemetry-dotnet/blob/1edcddbe0091b452dfb6a46fa34ff7b7c1374d3e/.github/workflows/publish-packages-1.0.yml#L67
Locations such as the below can be pointed to a single directory, creating a flatted structure to the ZIP artifacts:
https://github.com/open-telemetry/opentelemetry-dotnet/blob/1edcddbe0091b452dfb6a46fa34ff7b7c1374d3e/.github/workflows/publish-packages-1.0.yml#L83
What is the expected behavior?
All build and test artifacts are placed in the artifacts directory in the root of the repository.
Which alternative solutions or features have you considered?
None.
Additional context
https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/2658/files#r2030453885
@martincostello I see that your PR is merged. Can we close this issue or are you working on follow up tasks?
The related PR doesn't implement this issue, but I raised it as a consequence of comments related to it.
I think doing this would be a net positive for the repos' CI (and it would resolve the original comment about flattening the ZIP), but I'm not actively planning on doing it. That's only because it's a relatively big change and I'm not familiar with all your different CI/CD processes so would be afraid of breaking something.
I can look to pick this up in a couple of weeks.
I've started looking at this.