Support for signed build. (#105)
* Support for signed build. * Removign extra quote.
This commit is contained in:
Родитель
864821e65b
Коммит
6822fac22e
|
@ -17,7 +17,7 @@ steps:
|
|||
-v n
|
||||
/p:Version=$(Assembly.Version)
|
||||
/p:QsharpDocsOutDir=$(DocsOutDir)
|
||||
|
||||
/p:DefineConstants=$(Assembly.Constants)
|
||||
|
||||
|
||||
##
|
||||
|
@ -37,6 +37,7 @@ steps:
|
|||
-v n
|
||||
/p:Version=$(Assembly.Version)
|
||||
/p:QsharpDocsOutDir=$(DocsOutDir)
|
||||
/p:DefineConstants=$(Assembly.Constants)
|
||||
|
||||
##
|
||||
# Create Nuget.
|
||||
|
@ -49,5 +50,10 @@ steps:
|
|||
projects: |
|
||||
$(LibrariesRootFolder)/Standard/src/Standard.csproj
|
||||
$(LibrariesRootFolder)/Chemistry/src/DataModel/DataModel.csproj
|
||||
arguments: ' --no-build -c $(BuildConfiguration) -v n -o $(System.DefaultWorkingDirectory) /p:PackageVersion=$(Nuget.Version)'
|
||||
arguments: >
|
||||
--no-build
|
||||
-c $(BuildConfiguration)
|
||||
-v n
|
||||
-o $(System.DefaultWorkingDirectory)
|
||||
/p:PackageVersion=$(Nuget.Version)
|
||||
|
||||
|
|
Двоичный файл не отображается.
|
@ -0,0 +1,24 @@
|
|||
using System.Reflection;
|
||||
|
||||
// Attributes for delay-signing
|
||||
#if SIGNED
|
||||
[assembly:AssemblyKeyFile("..\\..\\Common\\267DevDivSNKey2048.snk")]
|
||||
[assembly:AssemblyDelaySign(true)]
|
||||
#endif
|
||||
|
||||
internal static class SigningConstants
|
||||
{
|
||||
#if SIGNED
|
||||
public const string PUBLIC_KEY = ", PublicKey=" +
|
||||
"002400000c800000140100000602000000240000525341310008000001000100613399aff18ef1" +
|
||||
"a2c2514a273a42d9042b72321f1757102df9ebada69923e2738406c21e5b801552ab8d200a65a2" +
|
||||
"35e001ac9adc25f2d811eb09496a4c6a59d4619589c69f5baf0c4179a47311d92555cd006acc8b" +
|
||||
"5959f2bd6e10e360c34537a1d266da8085856583c85d81da7f3ec01ed9564c58d93d713cd0172c" +
|
||||
"8e23a10f0239b80c96b07736f5d8b022542a4e74251a5f432824318b3539a5a087f8e53d2f135f" +
|
||||
"9ca47f3bb2e10aff0af0849504fb7cea3ff192dc8de0edad64c68efde34c56d302ad55fd6e80f3" +
|
||||
"02d5efcdeae953658d3452561b5f36c542efdbdd9f888538d374cef106acf7d93a4445c3c73cd9" +
|
||||
"11f0571aaf3d54da12b11ddec375b3";
|
||||
#else
|
||||
public const string PUBLIC_KEY = "";
|
||||
#endif
|
||||
}
|
|
@ -19,6 +19,9 @@
|
|||
<PackageTags>Quantum Q# Qsharp</PackageTags>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\Common\DelaySign.cs" Link="Properties\DelaySign.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.1.1" />
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
<RunQDocGen>True</RunQDocGen>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\Common\DelaySign.cs" Link="Properties\DelaySign.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.6.1905.301" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\Common\DelaySign.cs" Link="Properties\DelaySign.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.2" />
|
||||
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.6.1905.301" />
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\Common\DelaySign.cs" Link="Properties\DelaySign.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
|
||||
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.6.1905.301" />
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\..\Common\DelaySign.cs" Link="Properties\DelaySign.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
|
||||
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.6.1905.301" />
|
||||
|
|
Двоичный файл не отображается.
|
@ -0,0 +1,24 @@
|
|||
using System.Reflection;
|
||||
|
||||
// Attributes for delay-signing
|
||||
#if SIGNED
|
||||
[assembly:AssemblyKeyFile("..\\Common\\267DevDivSNKey2048.snk")]
|
||||
[assembly:AssemblyDelaySign(true)]
|
||||
#endif
|
||||
|
||||
internal static class SigningConstants
|
||||
{
|
||||
#if SIGNED
|
||||
public const string PUBLIC_KEY = ", PublicKey=" +
|
||||
"002400000c800000140100000602000000240000525341310008000001000100613399aff18ef1" +
|
||||
"a2c2514a273a42d9042b72321f1757102df9ebada69923e2738406c21e5b801552ab8d200a65a2" +
|
||||
"35e001ac9adc25f2d811eb09496a4c6a59d4619589c69f5baf0c4179a47311d92555cd006acc8b" +
|
||||
"5959f2bd6e10e360c34537a1d266da8085856583c85d81da7f3ec01ed9564c58d93d713cd0172c" +
|
||||
"8e23a10f0239b80c96b07736f5d8b022542a4e74251a5f432824318b3539a5a087f8e53d2f135f" +
|
||||
"9ca47f3bb2e10aff0af0849504fb7cea3ff192dc8de0edad64c68efde34c56d302ad55fd6e80f3" +
|
||||
"02d5efcdeae953658d3452561b5f36c542efdbdd9f888538d374cef106acf7d93a4445c3c73cd9" +
|
||||
"11f0571aaf3d54da12b11ddec375b3";
|
||||
#else
|
||||
public const string PUBLIC_KEY = "";
|
||||
#endif
|
||||
}
|
|
@ -18,6 +18,10 @@
|
|||
<PackageTags>Quantum Q# Qsharp</PackageTags>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Common\DelaySign.cs" Link="Properties\DelaySign.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.6.1905.301" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
<NoWarn>0162</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Common\DelaySign.cs" Link="Properties\DelaySign.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\src\Standard.csproj" />
|
||||
</ItemGroup>
|
||||
|
|
|
@ -10,6 +10,7 @@ variables:
|
|||
Build.Minor: 0
|
||||
LibrariesRootFolder: $(System.DefaultWorkingDirectory)
|
||||
DocsOutDir: ''
|
||||
Assembly.Constants: ''
|
||||
Assembly.Version: $(Build.BuildNumber)
|
||||
Nuget.Version: $(Assembly.Version)-preview
|
||||
Python.Version: $(Assembly.Version)
|
||||
|
|
Загрузка…
Ссылка в новой задаче