|
5 | 5 | <PropertyGroup Label="Repository Paths"> |
6 | 6 | <RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot> |
7 | 7 | <SrcPath>$([MSBuild]::NormalizeDirectory($(RepoRoot), 'src'))</SrcPath> |
8 | | - <RepoBinRoot>$([MSBuild]::NormalizeDirectory($(RepoRoot), 'bin'))</RepoBinRoot> |
9 | | - <RepoIntermediateRoot>$([MSBuild]::NormalizeDirectory($(RepoRoot), 'obj'))</RepoIntermediateRoot> |
10 | 8 |
|
11 | 9 | <!-- This file only exists during an official pipeline build --> |
12 | 10 | <PipelineVersionAssemblyInfoFilePath>$([MSBuild]::NormalizePath($(RepoRoot), '.version', 'PipelineAssemblyInfo.cs'))</PipelineVersionAssemblyInfoFilePath> |
|
22 | 20 | <AssemblyOriginatorKeyFile>$(RepoRoot)35MSSharedLib1024.snk</AssemblyOriginatorKeyFile> |
23 | 21 | </PropertyGroup> |
24 | 22 |
|
| 23 | + <!-- |
| 24 | + Enable Artifacts output layout (https://learn.microsoft.com/en-us/dotnet/core/sdk/artifacts-output) |
| 25 | + Benefits of using this layout: |
| 26 | + - we no longer own customizing output paths |
| 27 | + - The default layout meets most needs that called for custom output paths to begin with |
| 28 | + - can be customized further if needed |
| 29 | + - folder paths are also much more consistent and predictable |
| 30 | + - ArtifactsPivots folder name is normalized to lowercase, allowing for cross-platform compatibility |
| 31 | + --> |
| 32 | + <PropertyGroup Label="Artifacts output config"> |
| 33 | + <!-- Allow pipeline to override ArtifactsPath --> |
| 34 | + <ArtifactsPath Condition="'$(ArtifactsPath)' == ''">$([MSBuild]::NormalizeDirectory($(RepoRoot), 'artifacts'))</ArtifactsPath> |
| 35 | + </PropertyGroup> |
| 36 | + |
25 | 37 | <PropertyGroup Label="Nuget Config"> |
26 | 38 | <RestorePackagesPath>$([MSBuild]::NormalizeDirectory($(RepoRoot), 'pkg'))</RestorePackagesPath> |
27 | 39 | <!-- <RestoreIgnoreFailedSource>true</RestoreIgnoreFailedSource> --> |
|
0 commit comments