Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit ec58a5b

Browse files
authored
Proper way to reference sign.targets in new project (#446)
1 parent 1f9093b commit ec58a5b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Validation.ScanAndSign.Core/Validation.ScanAndSign.Core.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,10 @@
5353
</PackageReference>
5454
</ItemGroup>
5555
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
56-
<Import Project="..\..\build\sign.targets" Condition="Exists('..\..\build\sign.targets')" />
56+
<PropertyGroup>
57+
<SignPath>..\..\build</SignPath>
58+
<SignPath Condition="'$(BUILD_SOURCESDIRECTORY)' != ''">$(BUILD_SOURCESDIRECTORY)\build</SignPath>
59+
<SignPath Condition="'$(NuGetBuildPath)' != ''">$(NuGetBuildPath)</SignPath>
60+
</PropertyGroup>
61+
<Import Project="$(SignPath)\sign.targets" Condition="Exists('$(SignPath)\sign.targets')" />
5762
</Project>

0 commit comments

Comments
 (0)