Skip to content

Commit

Permalink
Merge pull request #152 from WindowsAzure/dev
Browse files Browse the repository at this point in the history
Add signing to the projects
  • Loading branch information
Abdelrahman Elogeel authored and Abdelrahman Elogeel committed Dec 26, 2012
2 parents 16cafbb + 34469ef commit 62783cb
Show file tree
Hide file tree
Showing 14 changed files with 193 additions and 27 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -106,3 +106,4 @@ UpgradeLog*.XML

# NuGet
packages/
/microsoft-azure-api/Services/Storage/Test/Unit/RT/AppPackages/
@@ -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>
14 changes: 4 additions & 10 deletions microsoft-azure-api/Services/Storage/Lib/DotNet40/DotNet40.csproj
Expand Up @@ -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>
Expand Down
Expand Up @@ -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" +
Expand Down
@@ -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>
Binary file not shown.
@@ -1,4 +1,5 @@
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand Down Expand Up @@ -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 changes: 20 additions & 5 deletions microsoft-azure-api/Services/Storage/Lib/RT/RT.csproj
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
Binary file not shown.
27 changes: 17 additions & 10 deletions microsoft-azure-api/Services/Storage/Lib/RTTable/RTTable.csproj
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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.
Expand Down
Expand Up @@ -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>
Expand Down
Binary file not shown.
13 changes: 13 additions & 0 deletions microsoft-azure-api/Services/Storage/Test/Unit/RT/RT.csproj
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -199,6 +211,7 @@
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup>
<None Include="MSSharedLibKey.snk" />
<None Include="XSCL_RT_Test_TemporaryKey.snk" />
</ItemGroup>
<ItemGroup>
Expand Down
69 changes: 69 additions & 0 deletions 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>

0 comments on commit 62783cb

Please sign in to comment.