-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
46 lines (42 loc) · 2.63 KB
/
Directory.Build.props
File metadata and controls
46 lines (42 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<Project>
<PropertyGroup>
<!-- Output path configuration -->
<RepoRoot>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))</RepoRoot>
<ProjectRelativePath>$([MSBuild]::MakeRelative($(RepoRoot), $(MSBuildProjectDirectory)))</ProjectRelativePath>
<BaseOutputPath>$(RepoRoot)dist/$(ProjectRelativePath)/$(Configuration)</BaseOutputPath>
<OutputPath>$(BaseOutputPath)</OutputPath>
<BaseIntermediateOutputPath>$(RepoRoot)dist/intermediates/$(ProjectRelativePath)/obj</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)</IntermediateOutputPath>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<!-- src/ packages land flat in dist/packages/ for NuGet local feed compatibility -->
<!-- All other packages (examples, tests) are namespaced under their relative path -->
<PackageOutputPath Condition="$(ProjectRelativePath.StartsWith('src'))">$(RepoRoot)dist/packages</PackageOutputPath>
<PackageOutputPath Condition="!$(ProjectRelativePath.StartsWith('src'))">$(RepoRoot)dist/packages/$(ProjectRelativePath)</PackageOutputPath>
</PropertyGroup>
<PropertyGroup>
<RestorePackagesWithLockFile>false</RestorePackagesWithLockFile>
</PropertyGroup>
<!-- Force every in-repo csproj to resolve PackageVersions against the repo-root
Directory.Packages.props, even if a per-template Directory.Packages.props
sits in a closer directory. The per-template files exist in starter
directories so they ship with `dotnet new` template content; in the user's
directory after instantiation, NuGet's default discovery finds them. In
our repo, this override keeps everything centralized. -->
<PropertyGroup>
<DirectoryPackagesPropsPath>$(RepoRoot)Directory.Packages.props</DirectoryPackagesPropsPath>
</PropertyGroup>
<!-- Generate XML documentation for src/ projects (consumed by DocFX) -->
<PropertyGroup Condition="$(MSBuildProjectDirectory.Contains('src'))">
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<!-- Centralized NuGet package configuration for all src/ projects -->
<PropertyGroup Condition="$(MSBuildProjectDirectory.Contains('src'))">
<Version>0.16.1</Version>
<Authors>Spencer Elkington</Authors>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryUrl>https://github.com/chaoticgoodcomputing/flowthru</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageProjectUrl>https://github.com/chaoticgoodcomputing/flowthru</PackageProjectUrl>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
</PropertyGroup>
</Project>