1--- mcs/tools/xbuild/data/14.0/Microsoft.CSharp.targets.orig	2017-07-20 18:10:59 UTC
2+++ mcs/tools/xbuild/data/14.0/Microsoft.CSharp.targets
3@@ -20,6 +20,11 @@
4 		<NoCompilerStandardLib Condition="'$(NoCompilerStandardLib)'==''">true</NoCompilerStandardLib>
5 	</PropertyGroup>
6
7+	<PropertyGroup >
8+		<SnToolExe>sn</SnToolExe>
9+		<SnToolPath>$(CscToolPath)</SnToolPath>
10+	</PropertyGroup>
11+
12 	<ItemGroup>
13 		<DocFileItem Include="$(DocumentationFile)" Condition="'$(DocumentationFile)' != ''"/>
14 	</ItemGroup>
15@@ -102,6 +107,10 @@
16 			ToolExe="$(CscToolExe)"
17 			ToolPath="$(CscToolPath)" />
18
19+		<Exec
20+			Command="$(SnToolPath)$(SnToolExe) -R @(IntermediateAssembly) $(KeyOriginatorFile)"
21+			Condition="'$(DelaySign)' == '' and '$(KeyContainerName)' == '' and '$(KeyOriginatorFile)' != '' and ( $(CscToolExe.EndsWith('csc.exe')) or $(CscToolExe.EndsWith('csc')) or $(CscToolExe) == '' )" />
22+
23 	</Target>
24
25 	<Target Name="CreateManifestResourceNames">
26