Browse Source

Add configuration to nupkg output.

pull/925/merge
Siegfried Pammer 8 years ago
parent
commit
94eb99c3ff
  1. 1
      BuildTools/update-assemblyinfo.ps1
  2. 2
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
  3. 2
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec.template

1
BuildTools/update-assemblyinfo.ps1

@ -117,6 +117,7 @@ try {
$out = $out.Replace('$INSERTBRANCHPOSTFIX$', $postfixBranchName); $out = $out.Replace('$INSERTBRANCHPOSTFIX$', $postfixBranchName);
$out = $out.Replace('$INSERTVERSIONNAME$', $versionName); $out = $out.Replace('$INSERTVERSIONNAME$', $versionName);
$out = $out.Replace('$INSERTVERSIONNAMEPOSTFIX$', $postfixVersionName); $out = $out.Replace('$INSERTVERSIONNAMEPOSTFIX$', $postfixVersionName);
$out = $out.Replace('$INSERTBUILDCONFIG$', $args[0].ToString().ToLower());
if (((Get-Content $file.Input) -Join [System.Environment]::NewLine) -ne $out) { if (((Get-Content $file.Input) -Join [System.Environment]::NewLine) -ne $out) {
$out | Out-File -Encoding utf8 $file.Output; $out | Out-File -Encoding utf8 $file.Output;

2
ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj

@ -585,7 +585,7 @@
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">
<PropertyGroup> <PropertyGroup>
<UpdateAssemblyInfo>powershell -NoProfile -ExecutionPolicy Bypass -File BuildTools/update-assemblyinfo.ps1</UpdateAssemblyInfo> <UpdateAssemblyInfo>powershell -NoProfile -ExecutionPolicy Bypass -File BuildTools/update-assemblyinfo.ps1 $(Configuration)</UpdateAssemblyInfo>
</PropertyGroup> </PropertyGroup>
<Exec WorkingDirectory=".." Command="$(UpdateAssemblyInfo)" Timeout="60000" /> <Exec WorkingDirectory=".." Command="$(UpdateAssemblyInfo)" Timeout="60000" />
</Target> </Target>

2
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>$INSERTVERSION$$INSERTVERSIONNAMEPOSTFIX$</version> <version>$INSERTVERSION$$INSERTVERSIONNAMEPOSTFIX$-$INSERTBUILDCONFIG$</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>

Loading…
Cancel
Save