From 406f537fbeceecbfb0987678fa03ee6f3bdd7c22 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 5 Mar 2022 12:55:43 +0100 Subject: [PATCH] Ditch nuspec.template --- .gitignore | 1 + BuildTools/update-assemblyinfo.ps1 | 4 ++- .../ICSharpCode.Decompiler.csproj | 22 ++++++++++---- .../ICSharpCode.Decompiler.nuspec.template | 30 ------------------- ILSpy.sln | 2 ++ 5 files changed, 23 insertions(+), 36 deletions(-) delete mode 100644 ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template diff --git a/.gitignore b/.gitignore index 33ed251af..9f12096c5 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ _ReSharper*/ multitargeting.props ILSpy.Installer/wix/ ILSpy.Installer/AppPackage.cs +/VERSION diff --git a/BuildTools/update-assemblyinfo.ps1 b/BuildTools/update-assemblyinfo.ps1 index c0977f3d9..d9a3d9423 100644 --- a/BuildTools/update-assemblyinfo.ps1 +++ b/BuildTools/update-assemblyinfo.ps1 @@ -81,7 +81,6 @@ function gitBranch() { $templateFiles = ( @{Input=$globalAssemblyInfoTemplateFile; Output="ILSpy/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.AddIn/source.extension.vsixmanifest.template"; Output = "ILSpy.AddIn/source.extension.vsixmanifest"}, @{Input="ILSpy.AddIn.VS2022/source.extension.vsixmanifest.template"; Output = "ILSpy.AddIn.VS2022/source.extension.vsixmanifest"}, @@ -138,6 +137,9 @@ try { } $fullVersionNumber = "$major.$minor.$build.$revision"; + if ((-not (Test-File "VERSION")) -or (((Get-Content "VERSION") -Join [System.Environment]::NewLine) -ne "$fullVersionNumber$postfixVersionName")) { + "$fullVersionNumber$postfixVersionName" | Out-File -Encoding utf8 -NoNewLine "VERSION"; + } foreach ($file in $templateFiles) { [string]$in = (Get-Content $file.Input) -Join [System.Environment]::NewLine; diff --git a/ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj b/ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj index 8690ed2d5..78a107ea1 100644 --- a/ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj +++ b/ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj @@ -4,10 +4,22 @@ netstandard2.0 - IL decompiler engine + ICSharpCode.Decompiler + 8.0.0.0-alpha1 + ILSpy Decompiler Engine + ILSpy Contributors + MIT + https://github.com/icsharpcode/ILSpy/ + ICSharpCode.Decompiler is the decompiler engine used in ILSpy. ic#code ILSpy - Copyright 2011-2022 AlphaSierraPapa for the SharpDevelop Team + git + https://github.com/icsharpcode/ILSpy.git + images\DecompilerNuGetPackageIcon.png + false + Copyright 2011-$([System.DateTime]::Now.Year) AlphaSierraPapa + C# Decompiler ILSpy + en-US False False @@ -29,7 +41,6 @@ true - ICSharpCode.Decompiler.nuspec Configuration=$(Configuration) @@ -629,8 +640,6 @@ - - @@ -676,6 +685,9 @@ + + + diff --git a/ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template b/ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template deleted file mode 100644 index d371363fb..000000000 --- a/ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template +++ /dev/null @@ -1,30 +0,0 @@ - - - - ICSharpCode.Decompiler - $INSERTVERSION$$INSERTVERSIONNAMEPOSTFIX$$INSERTBUILDCONFIG$ - ILSpy Decompiler Engine - ILSpy Contributors - Daniel Grunwald, SharpDevelop - MIT - https://github.com/icsharpcode/ILSpy/ - - images\DecompilerNuGetPackageIcon.png - false - ICSharpCode.Decompiler is the decompiler engine used in ILSpy. - - Copyright 2011-$INSERTYEAR$ AlphaSierraPapa - C# Decompiler ILSpy - - - - - - - - - - - - - diff --git a/ILSpy.sln b/ILSpy.sln index 24ffba062..bbb51a9b5 100644 --- a/ILSpy.sln +++ b/ILSpy.sln @@ -51,6 +51,8 @@ Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "ILSpy.AddIn.Shared", "ILSpy EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ILSpy.AddIn.VS2022", "ILSpy.AddIn.VS2022\ILSpy.AddIn.VS2022.csproj", "{09A03980-D14A-4705-A38C-741AD7166DEE}" ProjectSection(ProjectDependencies) = postProject + {0313F581-C63B-43BB-AA9B-07615DABD8A3} = {0313F581-C63B-43BB-AA9B-07615DABD8A3} + {A6BAD2BA-76BA-461C-8B6D-418607591247} = {A6BAD2BA-76BA-461C-8B6D-418607591247} {1E85EFF9-E370-4683-83E4-8A3D063FF791} = {1E85EFF9-E370-4683-83E4-8A3D063FF791} EndProjectSection EndProject