Browse Source

Generate NuGet package on build

pull/836/head
Sam Harwell 8 years ago
parent
commit
ff7086e10e
  1. 3
      .editorconfig
  2. 8
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
  3. 11
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec
  4. 5
      packages/build_decompiler_package.cmd

3
.editorconfig

@ -15,6 +15,9 @@ indent_size = 2
[*.config] [*.config]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2
[*.nuspec]
indent_style = space
indent_size = 2
[*.vsixmanifest] [*.vsixmanifest]
indent_style = space indent_style = space
indent_size = 2 indent_size = 2

8
ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj

@ -12,6 +12,13 @@
<AssemblyOriginatorKeyFile>ICSharpCode.Decompiler.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile>ICSharpCode.Decompiler.snk</AssemblyOriginatorKeyFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<NuspecFile>ICSharpCode.Decompiler.nuspec</NuspecFile>
<NuspecProperties>Configuration=$(Configuration)</NuspecProperties>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)' == 'Debug'"> <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
<DebugType>full</DebugType> <DebugType>full</DebugType>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
@ -502,6 +509,7 @@
<Compile Include="Util\ReferenceComparer.cs" /> <Compile Include="Util\ReferenceComparer.cs" />
<Compile Include="Util\TreeTraversal.cs" /> <Compile Include="Util\TreeTraversal.cs" />
<Compile Include="Util\UnionFind.cs" /> <Compile Include="Util\UnionFind.cs" />
<None Include="ICSharpCode.Decompiler.nuspec" />
<None Include="ICSharpCode.Decompiler.ruleset" /> <None Include="ICSharpCode.Decompiler.ruleset" />
<None Include="ICSharpCode.Decompiler.snk" /> <None Include="ICSharpCode.Decompiler.snk" />
<None Include="IL\ILOpCodes.tt"> <None Include="IL\ILOpCodes.tt">

11
packages/ICSharpCode.Decompiler.nuspec → ICSharpCode.Decompiler/ICSharpCode.Decompiler.nuspec

@ -19,9 +19,10 @@
<dependency id="ICSharpCode.NRefactory" version="5.5.1" /> <dependency id="ICSharpCode.NRefactory" version="5.5.1" />
</dependencies> </dependencies>
</metadata> </metadata>
<files> <files>
<file src="..\ICSharpCode.Decompiler\bin\NuGet-Release\ICSharpCode.Decompiler.dll" target="lib\Net40" /> <file src="bin\$Configuration$\net461\ICSharpCode.Decompiler.dll" target="lib\net461" />
<file src="..\ICSharpCode.Decompiler\bin\NuGet-Release\ICSharpCode.Decompiler.pdb" target="lib\Net40" /> <file src="bin\$Configuration$\net461\ICSharpCode.Decompiler.pdb" target="lib\net461" />
<file src="..\ICSharpCode.Decompiler\**\*.cs" target="src\ICSharpCode.Decompiler" /> <file src="**\*.cs" exclude="obj\**\*.cs" target="src\ICSharpCode.Decompiler" />
</files> <file src="obj\$Configuration$\net461\**\*.cs" target="src\ICSharpCode.Decompiler\obj\$Configuration$\net461" />
</files>
</package> </package>

5
packages/build_decompiler_package.cmd

@ -1,5 +0,0 @@
rmdir /s /q %~dp0..\ICSharpCode.Decompiler\bin
rmdir /s /q %~dp0..\ICSharpCode.Decompiler\obj
nuget restore %~dp0..\ILSpy.sln || exit /b 1
%windir%\microsoft.net\framework\v4.0.30319\msbuild %~dp0..\ICSharpCode.Decompiler\ICSharpCode.Decompiler.csproj /p:Configuration=Release "/p:Platform=Any CPU" /p:BuildNuGetPackage=True || exit /b 1
nuget pack %~dp0ICSharpCode.Decompiler.nuspec /Symbols || exit /b 1
Loading…
Cancel
Save