Skip to content

[feature request] Use Artifacts Output Layout #6256

Open
@martincostello

Description

@martincostello

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:

Get-ChildItem -Path src/$projectName/bin/Release/*/$projectName.dll -File | ForEach-Object {

Locations such as the below can be pointed to a single directory, creating a flatted structure to the ZIP artifacts:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedGood for taking. Extra help will be provided by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions