Browse Source

Automate versioning of nupkg. Remarks: Edit ICSharpCode.Decompiler.nuspec.template

pull/940/merge
Siegfried Pammer 8 years ago
parent
commit
42e41c3f16
  1. 1
      BuildTools/update-assemblyinfo.ps1
  2. 4
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template
  3. 2
      ILSpy/Properties/AssemblyInfo.template.cs

1
BuildTools/update-assemblyinfo.ps1

@ -42,6 +42,7 @@ function gitBranch() {
$templateFiles = ( $templateFiles = (
@{Input=$globalAssemblyInfoTemplateFile; Output="ILSpy/Properties/AssemblyInfo.cs"}, @{Input=$globalAssemblyInfoTemplateFile; Output="ILSpy/Properties/AssemblyInfo.cs"},
@{Input="ICSharpCode.Decompiler/Properties/AssemblyInfo.template.cs"; Output="ICSharpCode.Decompiler/Properties/AssemblyInfo.cs"}, @{Input="ICSharpCode.Decompiler/Properties/AssemblyInfo.template.cs"; Output="ICSharpCode.Decompiler/Properties/AssemblyInfo.cs"},
@{Input="ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template"; Output="ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec"},
@{Input="ILSpy/Properties/app.config.template"; Output = "ILSpy/app.config"} @{Input="ILSpy/Properties/app.config.template"; Output = "ILSpy/app.config"}
); );
[string]$mutexId = "ILSpyUpdateAssemblyInfo" + $PSScriptRoot.GetHashCode(); [string]$mutexId = "ILSpyUpdateAssemblyInfo" + $PSScriptRoot.GetHashCode();

4
ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec → ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> <package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata> <metadata>
<id>ICSharpCode.Decompiler</id> <id>ICSharpCode.Decompiler</id>
<version>3.0.0-beta1</version> <version>$INSERTVERSION$$INSERTVERSIONNAMEPOSTFIX$</version>
<title>ILSpy Decompiler Engine</title> <title>ILSpy Decompiler Engine</title>
<authors>Daniel Grunwald, David Srbecky, Ed Harvey, Siegfried Pammer</authors> <authors>Daniel Grunwald, David Srbecky, Ed Harvey, Siegfried Pammer</authors>
<owners>Daniel Grunwald, SharpDevelop</owners> <owners>Daniel Grunwald, SharpDevelop</owners>
@ -12,7 +12,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance> <requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>ICSharpCode.Decompiler is the decompiler engine used in ILSpy.</description> <description>ICSharpCode.Decompiler is the decompiler engine used in ILSpy.</description>
<!--<releaseNotes></releaseNotes>--> <!--<releaseNotes></releaseNotes>-->
<copyright>Copyright 2011-2017 AlphaSierraPapa</copyright> <copyright>Copyright 2011-$INSERTYEAR$ AlphaSierraPapa</copyright>
<tags>C# Decompiler ILSpy</tags> <tags>C# Decompiler ILSpy</tags>
<dependencies> <dependencies>
<dependency id="Humanizer.Core" version="2.2.0" /> <dependency id="Humanizer.Core" version="2.2.0" />

2
ILSpy/Properties/AssemblyInfo.template.cs

@ -42,7 +42,7 @@ internal static class RevisionClass
public const string Minor = "0"; public const string Minor = "0";
public const string Build = "0"; public const string Build = "0";
public const string Revision = "$INSERTREVISION$"; public const string Revision = "$INSERTREVISION$";
public const string VersionName = null; public const string VersionName = "beta1";
public const string FullVersion = Major + "." + Minor + "." + Build + ".$INSERTREVISION$$INSERTBRANCHPOSTFIX$$INSERTVERSIONNAMEPOSTFIX$"; public const string FullVersion = Major + "." + Minor + "." + Build + ".$INSERTREVISION$$INSERTBRANCHPOSTFIX$$INSERTVERSIONNAMEPOSTFIX$";
} }

Loading…
Cancel
Save