Browse Source

Merge pull request #2713 from icsharpcode/christophwille/ilspyxnuget

Build ILSpyX NuGet package
pull/2726/head
Siegfried Pammer 3 years ago committed by GitHub
parent
commit
b72f5bac6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      .github/workflows/build-ilspy.yml
  2. 37
      ICSharpCode.ILSpyX/ICSharpCode.ILSpyX.csproj
  3. 3
      ICSharpCode.ILSpyX/PackageReadme.md

17
.github/workflows/build-ilspy.yml

@ -105,7 +105,7 @@ jobs: @@ -105,7 +105,7 @@ jobs:
path: ILSpy.AddIn.VS2022\bin\${{ matrix.configuration }}\net472\*.vsix
if-no-files-found: error
- name: Upload NuGet release build artifacts
- name: Upload Decompiler NuGet release build artifacts
if: matrix.configuration == 'release'
uses: actions/upload-artifact@v2
with:
@ -113,10 +113,23 @@ jobs: @@ -113,10 +113,23 @@ jobs:
path: ICSharpCode.Decompiler\bin\Release\ICSharpCode.Decompiler*.nupkg
if-no-files-found: error
- name: Publish NuGet
- name: Publish Decompiler NuGet
if: github.ref == 'refs/heads/master' && matrix.configuration == 'release'
run: |
dotnet nuget push "ICSharpCode.Decompiler\bin\Release\ICSharpCode.Decompiler*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}
- name: Upload ILSpyX NuGet release build artifacts
if: matrix.configuration == 'release'
uses: actions/upload-artifact@v2
with:
name: ICSharpCode.ILSpyX NuGet Package (${{ matrix.configuration }})
path: ICSharpCode.ILSpyX\bin\Release\ICSharpCode.ILSpyX*.nupkg
if-no-files-found: error
- name: Publish ILSpyX NuGet
if: github.ref == 'refs/heads/master' && matrix.configuration == 'release'
run: |
dotnet nuget push "ICSharpCode.ILSpyX\bin\Release\ICSharpCode.ILSpyX*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}
- name: Upload zip binaries build artifacts
uses: actions/upload-artifact@v2

37
ICSharpCode.ILSpyX/ICSharpCode.ILSpyX.csproj

@ -14,11 +14,44 @@ @@ -14,11 +14,44 @@
<GenerateAssemblyInformationalVersionAttribute>False</GenerateAssemblyInformationalVersionAttribute>
</PropertyGroup>
<PropertyGroup>
<PackageId>ICSharpCode.ILSpyX</PackageId>
<PackageVersion>8.0.0.0-noversion</PackageVersion>
<Title>ILSpyX Platform</Title>
<Authors>ILSpy Contributors</Authors>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/icsharpcode/ILSpy/</PackageProjectUrl>
<Description>Core cross-platform library used by ILSpy.</Description>
<PackageReadmeFile>PackageReadme.md</PackageReadmeFile>
<Company>ic#code</Company>
<Product>ILSpyX</Product>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/icsharpcode/ILSpy.git</RepositoryUrl>
<PackageIconUrl>../ICSharpCode.Decompiler/DecompilerNuGetPackageIcon.png</PackageIconUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Copyright>Copyright 2022-$([System.DateTime]::Now.Year) AlphaSierraPapa</Copyright>
<PackageTags>C# Decompiler ILSpy</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
<None Include="PackageReadme.md" Pack="true" PackagePath="\" />
</ItemGroup>
<Import Project="..\packages.props" />
<ItemGroup>
<Compile Remove="Properties\AssemblyInfo.template.cs" />
</ItemGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.IO.Compression" Version="4.3.0" />
@ -29,6 +62,10 @@ @@ -29,6 +62,10 @@
<PackageReference Include="Mono.Cecil" Version="$(MonoCecilVersion)" />
<PackageReference Include="K4os.Compression.LZ4" Version="1.2.16" />
<PackageReference Include="System.Buffers" Version="4.5.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>

3
ICSharpCode.ILSpyX/PackageReadme.md

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
## About
ICSharpCode.ILSpyX is the core cross-platform implemenation of [ILSpy](https://github.com/icsharpcode/ILSpy/) that can be reused to build alternate frontends more easily.
Loading…
Cancel
Save