Skip to content

Commit

Permalink
Simplify Directory.Build.props.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCleary committed Dec 2, 2023
1 parent 6f27e72 commit d51ac64
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project>
<!--
Directory.Build.props (src) v2.2
Directory.Build.props (src) v2.3
- 2.3 Remove old Coverlet workaround for .NET SDKs < 3.1.300; and remove source link settings for .NET SDKs < 8.
- 2.2 Migrate from FxCopAnalyzers to NetAnalyzers.
- 2.1 Specify LangVersion (required by Nullable for most libraries).
- 2.0 Move project-specific properties to `project.props`.
Expand Down Expand Up @@ -36,17 +37,6 @@
<None Include="..\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>

<!-- Source debugging -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>

<!-- Include reference assemblies -->
<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All"/>
Expand All @@ -56,17 +46,4 @@
<PropertyGroup Condition="'$(CI)'!='true'">
<VersionSuffix>dev</VersionSuffix>
</PropertyGroup>

<!-- Enable coverlet analysis on deterministic builds: https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/DeterministicBuild.md -->
<ItemGroup>
<SourceRoot Include="$(NuGetPackageRoot)" />
</ItemGroup>
<Target Name="CoverletGetPathMap"
DependsOnTargets="InitializeSourceRootMappedPaths"
Returns="@(_LocalTopLevelSourceRoot)"
Condition="'$(DeterministicSourcePaths)' == 'true'">
<ItemGroup>
<_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/>
</ItemGroup>
</Target>
</Project>

0 comments on commit d51ac64

Please sign in to comment.