7219aee6a4
Ensure trailing slash in <SourceRoot>
24 lines
1.0 KiB
XML
24 lines
1.0 KiB
XML
<!-- 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="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageRoot)))" Condition="'$(NuGetPackageRoot)' != ''" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="CoverletGetPathMap"
|
|
DependsOnTargets="InitializeSourceRootMappedPaths"
|
|
Returns="@(_LocalTopLevelSourceRoot)"
|
|
Condition="'$(DeterministicSourcePaths)' == 'true'">
|
|
<ItemGroup>
|
|
<_LocalTopLevelSourceRoot Include="@(SourceRoot)" Condition="'%(SourceRoot.NestedRoot)' == ''"/>
|
|
</ItemGroup>
|
|
</Target>
|
|
</Project>
|