This repository has been archived by the owner on Oct 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cBuild: Add strong naming again and simplify versioning and push
Related: #62
- Loading branch information
Showing
26 changed files
with
177 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{031FC227-9F94-4EF6-85CA-7A36E142C319}</ProjectGuid> | ||
<OutputType>Exe</OutputType> | ||
<RootNamespace>Nett.Signer</RootNamespace> | ||
<AssemblyName>Nett.Signer</AssemblyName> | ||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<Deterministic>true</Deterministic> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Brutal.Dev.StrongNameSigner, Version=1.4.2.0, Culture=neutral, PublicKeyToken=a13519261d199c73, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\Signature.Core.1.0.1.0\lib\net45\Brutal.Dev.StrongNameSigner.dll</HintPath> | ||
</Reference> | ||
<Reference Include="CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=de6f01bd326f8c32, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\CommandLineParser20.2.0.0.0\lib\net40\CommandLine.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Microsoft.Web.XmlTransform, Version=2.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\Microsoft.Web.Xdt.2.1.1\lib\net40\Microsoft.Web.XmlTransform.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Mono.Cecil, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Mono.Cecil.Mdb, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.Mdb.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Mono.Cecil.Pdb, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.Pdb.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Mono.Cecil.Rocks, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\Mono.Cecil.0.9.5.4\lib\net40\Mono.Cecil.Rocks.dll</HintPath> | ||
</Reference> | ||
<Reference Include="NuGet.Core, Version=2.8.50506.491, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\NuGet.Core.2.8.2\lib\net40-Client\NuGet.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Signature.Core, Version=1.0.1.0, Culture=neutral, PublicKeyToken=4f2ff6084b188fa9, processorArchitecture=MSIL"> | ||
<HintPath>..\..\Solutions\Nett\packages\Signature.Core.1.0.1.0\lib\net45\Signature.Core.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="WindowsBase" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="App.config" /> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using CommandLine; | ||
using Signature.Core; | ||
|
||
namespace Nett.Signer | ||
{ | ||
public sealed class Options | ||
{ | ||
[Option('i', "input", DefaultValue = "", HelpText = "Input NuGet package", Required = true)] | ||
public string Input { get; set; } | ||
|
||
[Option('o', "output", DefaultValue = "", HelpText = "Output NuGet package name", Required = true)] | ||
public string Output { get; set; } | ||
|
||
[Option('p', "spid", DefaultValue = "", HelpText = "Strong Named package ID", Required = true)] | ||
public string StrongNamedPackageId { get; set; } | ||
|
||
[Option('k', "keyfile", DefaultValue = "", HelpText = "Key file (snk/pfx)", Required = true)] | ||
public string KeyFile { get; set; } | ||
} | ||
|
||
public sealed class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
var o = CommandLine.Parser.Default.ParseArguments<Options>(args).Value; | ||
var signer = new PackageSigner(); | ||
|
||
signer.SignPackage(o.Input, o.Output, o.KeyFile, "", o.StrongNamedPackageId); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="CommandLineParser20" version="2.0.0.0" targetFramework="net461" /> | ||
<package id="Microsoft.Web.Xdt" version="2.1.1" targetFramework="net461" /> | ||
<package id="Mono.Cecil" version="0.9.5.4" targetFramework="net461" /> | ||
<package id="NuGet.Core" version="2.8.2" targetFramework="net461" /> | ||
<package id="Signature.Core" version="1.0.1.0" targetFramework="net461" /> | ||
</packages> |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<NettVersion>0.9.0</NettVersion> | ||
<ComaVersion>0.9.0</ComaVersion> | ||
<AspNetVersion>0.9.0</AspNetVersion> | ||
<Version>0.9.2</Version> | ||
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Infrastructure/Nett.ruleset</CodeAnalysisRuleSet> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
Solutions/Nett/WebApplication1/Properties/launchSettings.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.