Skip to content

Commit

Permalink
Fixed nesting of 'Directory.Build.props' files
Browse files Browse the repository at this point in the history
  • Loading branch information
AKlaus committed May 27, 2021
1 parent a79df96 commit 5e79514
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<Project>
<!-- Import common poperties from a folder up (see https://github.com/dotnet/msbuild/issues/2456) -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
Expand Down
39 changes: 39 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<Project>
<!-- Import common poperties from a folder up (see https://github.com/dotnet/msbuild/issues/2456) -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\DomainResult.snk</AssemblyOriginatorKeyFile>

<Deterministic>true</Deterministic>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageTags>actionresult;domainresult;webapi;service</PackageTags>

<!-- Generate XML docs for all targets https://stackoverflow.com/a/47118584/968003 -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<!-- Below is commented out till https://github.com/coverlet-coverage/coverlet/issues/900 is fixed -->
<!-- <ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild> -->

<!-- SourceLink settings (source debugging experiences) -->
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Optional: Build symbol package (.snupkg) to distribute the PDB containing Source Link -->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- Prefix for tag names MinVer -->
<MinVerTagPrefix>v</MinVerTagPrefix>

<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>

<ItemGroup>
<!-- SourceLink settings (source debugging experiences) -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="MinVer" Version="2.5.0" PrivateAssets="All" />
</ItemGroup>
</Project>

0 comments on commit 5e79514

Please sign in to comment.