Skip to content

Commit fee9a1f

Browse files
committed
Improve PublicSign condition
This ensures the assemblies are public signed only when they really need to be: on linux and macOS This means that dotnet build on Windows will now properly sign the assemblies.
1 parent fee5414 commit fee9a1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Directory.Build.targets

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<PublicSign Condition=" '$(AssemblyOriginatorKeyFile)' != '' and '$(MSBuildRuntimeType)' == 'Core' ">true</PublicSign>
3+
<PublicSign Condition=" '$(AssemblyOriginatorKeyFile)' != '' and '$(OS)' != 'Windows_NT' ">true</PublicSign>
44
</PropertyGroup>
55
</Project>
6-

0 commit comments

Comments
 (0)