Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add signing to the projects #152

Merged
merged 8 commits into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 21, 2012
  1. @ogail

    Merge pull request #2 from WindowsAzure/master

    ogail authored
    Update to latest
Commits on Dec 22, 2012
  1. Adding CI server files

    unknown authored
  2. Add signing code

    unknown authored
  3. @ogail

    Add signing code

    ogail authored
Commits on Dec 25, 2012
  1. Fix signing for RTTable

    unknown authored
Commits on Dec 26, 2012
  1. @ogail

    Apply code review

    ogail authored
  2. @ogail

    Merge pull request #151 from ogail/master

    ogail authored
    Automate CI signing and NuGet creation
This page is out of date. Refresh to see the latest.
View
1  .gitignore
@@ -106,3 +106,4 @@ UpgradeLog*.XML
# NuGet
packages/
+/microsoft-azure-api/Services/Storage/Test/Unit/RT/AppPackages/
View
20 ...pi/Configuration/Microsoft.WindowsAzure.Configuration/Microsoft.WindowsAzure.ConfigurationManager.nuspec
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
+ <metadata>
+ <id>Microsoft.WindowsAzure.ConfigurationManager</id>
+ <version>1.8.0.0</version>
+ <title>Windows Azure Configuration Manager</title>
+ <authors>Microsoft</authors>
+ <owners>Microsoft</owners>
+ <licenseUrl>http://go.microsoft.com/fwlink/?LinkID=235167</licenseUrl>
+ <projectUrl>http://go.microsoft.com/fwlink/?linkid=252450</projectUrl>
+ <iconUrl>http://www.gravatar.com/avatar/c24270713c524575b0308e05c7e9ff61?s=128</iconUrl>
+ <requireLicenseAcceptance>true</requireLicenseAcceptance>
+ <description>Windows Azure Configuration Manager provides unified API to load the configuration settings regardless of where the application is hosted - whether on-premises or in a Cloud Service.</description>
+ <summary>Windows Azure Configuration Manager provides unified API to load the configuration settings regardless of where the application is hosted - whether on-premises or in a Cloud Service.</summary>
+ <tags>Microsoft, Azure, Configuration, Configuration Manager, Cloud windowsazureofficial</tags>
+ <references>
+ <reference file="Microsoft.WindowsAzure.Configuration.dll" />
+ </references>
+ </metadata>
+</package>
View
14 microsoft-azure-api/Services/Storage/Lib/DotNet40/DotNet40.csproj
@@ -24,23 +24,17 @@
<DocumentationFile>bin\Debug\Microsoft.WindowsAzure.Storage.xml</DocumentationFile>
</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>
- <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>
</PropertyGroup>
- <PropertyGroup>
- <SignAssembly>false</SignAssembly>
- </PropertyGroup>
- <PropertyGroup>
- <DelaySign>true</DelaySign>
- </PropertyGroup>
- <PropertyGroup>
- <AssemblyOriginatorKeyFile>MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
- </PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Data.Edm, Version=5.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
View
2  microsoft-azure-api/Services/Storage/Lib/DotNet40/Properties/AssemblyInfo.cs
@@ -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" +
View
32 microsoft-azure-api/Services/Storage/Lib/DotNet40/WindowsAzure.Storage.nuspec
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
+ <metadata>
+ <id>WindowsAzure.Storage</id>
+ <version>2.0.3.0</version>
+ <title>Windows Azure Storage</title>
+ <authors>Microsoft</authors>
+ <owners>Microsoft</owners>
+ <licenseUrl>http://go.microsoft.com/fwlink/?LinkId=235170</licenseUrl>
+ <projectUrl>http://go.microsoft.com/fwlink/?LinkId=235168</projectUrl>
+ <iconUrl>http://www.gravatar.com/avatar/c24270713c524575b0308e05c7e9ff61?s=128</iconUrl>
+ <requireLicenseAcceptance>true</requireLicenseAcceptance>
+ <description>This client library enables working with the Windows Azure storage services which include the blob service for storing binary and text data, the table service for storing structured non-relational data, and the queue service for storing messages that may be accessed by a client.
+For this release see notes - http://msdn.microsoft.com/en-us/library/windowsazure/jj721952.aspx
+Windows Azure Storage team's blog - http://blogs.msdn.com/b/windowsazurestorage/</description>
+ <summary>A client library for working with Windows Azure storage services including blobs, tables, and queues.</summary>
+ <tags>Microsoft, Azure, Storage, Table, Blob, Queue, Scalable, windowsazureofficial</tags>
+ <dependencies>
+ <dependency id="Microsoft.Data.OData" version="5.0.2" />
+ <dependency id="Microsoft.WindowsAzure.ConfigurationManager" version="1.8.0.0" />
+ </dependencies>
+ <frameworkAssemblies>
+ <frameworkAssembly assemblyName="System.Data" targetFramework="" />
+ <frameworkAssembly assemblyName="System.Xml" targetFramework="" />
+ <frameworkAssembly assemblyName="System.Xml.Linq" targetFramework="" />
+ <frameworkAssembly assemblyName="System.Data.Services.Client" targetFramework="" />
+ </frameworkAssemblies>
+ <references>
+ <reference file="Microsoft.WindowsAzure.Storage.dll" />
+ </references>
+ </metadata>
+</package>
View
BIN  microsoft-azure-api/Services/Storage/Lib/RT/MSSharedLibKey.snk
Binary file not shown
View
14 microsoft-azure-api/Services/Storage/Lib/RT/Properties/AssemblyInfo.cs
@@ -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")]
View
25 microsoft-azure-api/Services/Storage/Lib/RT/RT.csproj
@@ -25,10 +25,13 @@
<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>
- <DefineConstants>TRACE;NETFX_CORE;RTMD;RT</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;RTMD;RT;SIGN</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -45,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>
@@ -69,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>
@@ -83,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>
@@ -93,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>
@@ -292,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>
View
BIN  microsoft-azure-api/Services/Storage/Lib/RTTable/MSSharedLibKey.snk
Binary file not shown
View
27 microsoft-azure-api/Services/Storage/Lib/RTTable/RTTable.csproj
@@ -25,10 +25,13 @@
<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>
- <DefineConstants>TRACE;NETFX_CORE;RT;RT_TABLES</DefineConstants>
+ <DefineConstants>TRACE;NETFX_CORE;RT;RT_TABLES;SIGN</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
@@ -44,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>
@@ -66,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>
@@ -88,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>
@@ -125,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.
View
3  microsoft-azure-api/Services/Storage/Test/Unit/DotNet40/DotNet40.csproj
@@ -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>
View
BIN  microsoft-azure-api/Services/Storage/Test/Unit/RT/MSSharedLibKey.snk
Binary file not shown
View
13 microsoft-azure-api/Services/Storage/Test/Unit/RT/RT.csproj
@@ -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>
View
69 microsoft-azure-api/build.proj
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project
+ xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
+ ToolsVersion="4.0"
+ DefaultTargets="Clean;BuildDebug;BuildReleaseSigned">
+
+ <ItemGroup>
+ <StorageSln Include=".\Services\Storage\Lib\DotNet40\DotNet40.csproj" />
+ <StorageSln Include=".\Services\Storage\Lib\RT\RT.csproj" />
+ <StorageSln Include=".\Services\Storage\Lib\RTTable\RTTable.csproj" />
+ <ConfigSln Include=".\Configuration\microsoft-windowsazure-configuration.sln" />
+ </ItemGroup>
+
+ <!-- Clean the build in all configurations -->
+ <Target Name="Clean">
+ <!-- Clean the solutions -->
+ <Message Importance="high" Text="Cleaning the projects..." ContinueOnError="true" />
+ <MSBuild
+ Projects="@(StorageSln)"
+ Targets="Clean"
+ Properties="Configuration=Debug"
+ ContinueOnError="true" />
+ <MSBuild
+ Projects="@(StorageSln)"
+ Targets="Clean"
+ Properties="Configuration=Release"
+ ContinueOnError="true" />
+ <MSBuild
+ Projects="@(ConfigSln)"
+ Targets="Clean"
+ Properties="Configuration=Debug"
+ ContinueOnError="true" />
+ <MSBuild
+ Projects="@(ConfigSln)"
+ Targets="Clean"
+ Properties="Configuration=ReleaseSigned"
+ ContinueOnError="true" />
+ </Target>
+
+ <!-- Build the Cmdlets in ReleaseSigned configuration -->
+ <Target Name="BuildReleaseSigned">
+ <Message Importance="high" Text="Building release version of the projects..." />
+ <MSBuild
+ Projects="@(StorageSln)"
+ Targets="Build"
+ Properties="Configuration=Release"
+ ContinueOnError="true" />
+ <MSBuild
+ Projects="@(ConfigSln)"
+ Targets="Build"
+ Properties="Configuration=ReleaseSigned"
+ ContinueOnError="true" />
+ </Target>
+
+ <!-- Build the Cmdlets in Debug configuration -->
+ <Target Name="BuildDebug">
+ <Message Importance="high" Text="Building debug version the projects..." />
+ <MSBuild
+ Projects="@(StorageSln)"
+ Targets="Build"
+ Properties="Configuration=Debug"
+ ContinueOnError="true" />
+ <MSBuild
+ Projects="@(ConfigSln)"
+ Targets="Build"
+ Properties="Configuration=Debug"
+ ContinueOnError="true" />
+ </Target>
+</Project>
Something went wrong with that request. Please try again.