Commit 13394d53 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

* Sign assemblies.

parent b737a4a7
...@@ -52,4 +52,5 @@ ...@@ -52,4 +52,5 @@
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" /> <Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -59,4 +59,5 @@ ...@@ -59,4 +59,5 @@
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" /> <Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\TVOS\Xamarin.TVOS.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\TVOS\Xamarin.TVOS.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -57,4 +57,5 @@ ...@@ -57,4 +57,5 @@
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" /> <Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\WatchOS\Xamarin.WatchOS.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\WatchOS\Xamarin.WatchOS.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -69,4 +69,5 @@ ...@@ -69,4 +69,5 @@
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" /> <Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Mac\Xamarin.Mac.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -63,4 +63,5 @@ ...@@ -63,4 +63,5 @@
</ItemGroup> </ItemGroup>
<Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" /> <Import Project="..\..\src\NLua.Core.projitems" Label="Shared" Condition="Exists('..\..\src\NLua.Core.projitems')" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<Import Project="..\targets\NLua.Sign.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -49,4 +49,5 @@ ...@@ -49,4 +49,5 @@
</PropertyGroup> </PropertyGroup>
<Error Condition="!Exists('..\..\packages\KeraLua.0.1.14\build\net45\KeraLua.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\KeraLua.0.1.14\build\net45\KeraLua.targets'))" /> <Error Condition="!Exists('..\..\packages\KeraLua.0.1.14\build\net45\KeraLua.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\KeraLua.0.1.14\build\net45\KeraLua.targets'))" />
</Target> </Target>
<Import Project="..\targets\NLua.Sign.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -24,4 +24,5 @@ ...@@ -24,4 +24,5 @@
<PackageReference Include="System.Reflection.Emit" Version="4.3.0" /> <PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.3.0" /> <PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.3.0" />
</ItemGroup> </ItemGroup>
<Import Project="..\targets\NLua.Sign.targets" />
</Project> </Project>
...@@ -26,5 +26,6 @@ ...@@ -26,5 +26,6 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="KeraLua" Version="0.1.14" /> <PackageReference Include="KeraLua" Version="0.1.14" />
</ItemGroup> </ItemGroup>
<Import Project="..\targets\NLua.Sign.targets" />
</Project> </Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(PublicSign)' == '' and '$(SignAssembly)' == 'true'">true</PublicSign>
<KeyFileName Condition=" '$(KeyFileName)' == '' ">NLua.snk</KeyFileName>
<AssemblyOriginatorKeyFile>$(SolutionDir)$(KeyFileName)</AssemblyOriginatorKeyFile>
</PropertyGroup>
<Target Name="_SignAssembly" AfterTargets="CoreCompile" Condition="'$(SignAssembly)' == 'true' and '$(OS)'!='Windows_NT' ">
<Exec Command="sn -q -R @(IntermediateAssembly -> '&quot;%(Identity)&quot;') &quot;$(AssemblyOriginatorKeyFile)&quot;" />
</Target>
</Project>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment