Permalink
Browse files

Fix signing for RTTable

  • Loading branch information...
1 parent 8e3e7c2 commit c7d83ae6e226c0080338c48e286e705dd698ee4e unknown committed Dec 25, 2012
@@ -30,7 +30,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE;DN40CP;DNCP;</DefineConstants>
+ <DefineConstants>TRACE;DN40CP;DNCP;SIGN</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\Microsoft.WindowsAzure.Storage.xml</DocumentationFile>
@@ -38,7 +38,7 @@
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.3.0")]
-#if SIGNED
+#if SIGN
[assembly: InternalsVisibleTo(
"Microsoft.WindowsAzure.Storage.Test, PublicKey=" +
"0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67" +
@@ -1,4 +1,5 @@
using System.Reflection;
+using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -27,4 +28,15 @@
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.3.0")]
[assembly: ComVisible(false)]
-[assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Storage.Table")]
+#if SIGN
+[assembly: InternalsVisibleTo(
+ "Microsoft.WindowsAzure.Storage.Table, PublicKey=" +
+ "0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67" +
+ "871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0b" +
+ "d333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307" +
+ "e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c3" +
+ "08055da9")]
+#else
+[assembly: InternalsVisibleTo("Microsoft.WindowsAzure.Storage.Table")]
+#endif
+[assembly: NeutralResourcesLanguageAttribute("en-US")]
@@ -25,13 +25,13 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <SignAssembly>true</SignAssembly>
+ <SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
<DelaySign>true</DelaySign>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE;NETFX_CORE;RTMD;RT</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;RTMD;RT;SIGN</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -48,8 +48,11 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\ARM\Release\</OutputPath>
- <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;SIGN</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
@@ -72,8 +75,11 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\x64\Release\</OutputPath>
- <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;SIGN</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
@@ -86,7 +92,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE;SIGN</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
@@ -96,8 +102,11 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\x86\Release\</OutputPath>
- <DefineConstants>TRACE;NETFX_CORE;RTMD;RT</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;RTMD;RT;SIGN</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
@@ -295,6 +304,9 @@
<HintPath>Dependencies\System.Spatial.WindowsStore.dll</HintPath>
</Reference>
</ItemGroup>
+ <ItemGroup>
+ <None Include="MSSharedLibKey.snk" />
+ </ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' ">
<VisualStudioVersion>11.0</VisualStudioVersion>
</PropertyGroup>
@@ -25,13 +25,13 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <SignAssembly>true</SignAssembly>
+ <SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
<DelaySign>true</DelaySign>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE;NETFX_CORE;RT;RT_TABLES</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;RT;RT_TABLES;SIGN</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -47,8 +47,11 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\ARM\Release\</OutputPath>
- <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;SIGN</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
@@ -69,8 +72,11 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\x64\Release\</OutputPath>
- <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;SIGN</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
@@ -91,8 +97,11 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\x86\Release\</OutputPath>
- <DefineConstants>TRACE;NETFX_CORE;RT;RT_TABLES</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;RT;RT_TABLES;SIGN</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
@@ -128,17 +137,12 @@
<Compile Include="..\Common\Table\TableQueryGenericBase.cs" />
</ItemGroup>
<ItemGroup>
+ <None Include="MSSharedLibKey.snk" />
<None Include="XSCL_RT_Tables_Temporary.snk" />
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0' ">
<VisualStudioVersion>11.0</VisualStudioVersion>
</PropertyGroup>
- <PropertyGroup>
- <SignAssembly>true</SignAssembly>
- </PropertyGroup>
- <PropertyGroup>
- <AssemblyOriginatorKeyFile>XSCL_RT_Tables_Temporary.snk</AssemblyOriginatorKeyFile>
- </PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
@@ -24,6 +24,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
@@ -28,6 +28,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
@@ -48,6 +51,9 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
<Optimize>true</Optimize>
@@ -72,6 +78,9 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
<Optimize>true</Optimize>
@@ -96,6 +105,9 @@
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
+ <DelaySign>true</DelaySign>
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
<Optimize>true</Optimize>
@@ -199,6 +211,7 @@
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup>
+ <None Include="MSSharedLibKey.snk" />
<None Include="XSCL_RT_Test_TemporaryKey.snk" />
</ItemGroup>
<ItemGroup>

0 comments on commit c7d83ae

Please sign in to comment.