Add deterministic build tests sample (#820)
Add deterministic build tests sample
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<!-- This target must be imported into Directory.Build.targets -->
|
||||
<!-- Workaround. Remove once we're on 3.1.300+
|
||||
https://github.com/dotnet/sourcelink/issues/572 -->
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
|
||||
</ItemGroup>
|
||||
<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>
|
||||
Reference in New Issue
Block a user