Browse Source

Add instructions on building and contributing to README.md; Make ICSharpCode.Decompiler.csproj work properly with VSmac.

pull/879/head
Siegfried Pammer 8 years ago
parent
commit
7efe204b47
  1. 14
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
  2. 23
      README.md

14
ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj

@ -1,9 +1,10 @@ @@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
<Import Condition=" '$(OS)' == 'Windows_NT' " Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
<PropertyGroup>
<TargetFrameworks>net461;netstandard2.0</TargetFrameworks>
<TargetFramework Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0</TargetFramework>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">netstandard2.0;net461</TargetFrameworks>
<Description>IL decompiler engine</Description>
<Company>ic#code</Company>
@ -19,8 +20,9 @@ @@ -19,8 +20,9 @@
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>ICSharpCode.Decompiler.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<!-- HACK: Disable package generation on Unix due to tooling issues. -->
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<NuspecFile>ICSharpCode.Decompiler.nuspec</NuspecFile>
@ -560,12 +562,12 @@ @@ -560,12 +562,12 @@
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup>
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
<Import Condition=" '$(OS)' == 'Windows_NT' " Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
<Target Name="BeforeBuild">
<PropertyGroup>
<UpdateAssemblyInfo>powershell.exe -NoProfile -ExecutionPolicy Bypass -File $(SolutionDir)\BuildTools\update-assemblyinfo.ps1</UpdateAssemblyInfo>
<UpdateAssemblyInfo Condition="$(OS)=='Unix'">mono $(UpdateAssemblyInfo)</UpdateAssemblyInfo>
<UpdateAssemblyInfo Condition="$(OS)=='Unix'">powershell -NoProfile -ExecutionPolicy Bypass -File $(SolutionDir)\BuildTools\update-assemblyinfo.ps1</UpdateAssemblyInfo>
</PropertyGroup>
<Exec WorkingDirectory="$(SolutionDir)" Command="$(UpdateAssemblyInfo)" Timeout="60000" />
</Target>

23
README.md

@ -21,3 +21,26 @@ Included open-source libraries: @@ -21,3 +21,26 @@ Included open-source libraries:
* ICSharpCode.Decompiler: MIT License (developed as part of ILSpy)
* Ricciolo.StylesExplorer: MS-PL (part of ILSpy.BamlDecompiler.Plugin)
* Newtonsoft Json.NET: MIT License
How to build
------------
Windows:
- Check out the repository using git.
- Execute `git submodule update --init --recursive` to get all required submodules.
- Use ILSpy.sln to work.
Unix:
- Check out the repository using git.
- Execute `git submodule update --init --recursive` to get all required submodules.
- Edit `\ICSharpCode.Decompiler\ICSharpCode.Decompiler.csproj`
Add `Sdk="Microsoft.NET.Sdk"` to the `Project` element.
This is required due to a tooling issue on Unix.
Please do not commit this when contributing a pull request!
- Use ICSharpCode.Decompiler.Console.sln to work.
How to contribute
-----------------
- Report bugs
- If you want to contribute a pull request, please add https://gist.github.com/siegfriedpammer/75700ea61609eb22714d21885e4eb084 to your `.git/hooks` to prevent checking in code with wrong indentation. We use tabs and not spaces. The build server runs the same script, so any pull requests using wrong indentation will fail.

Loading…
Cancel
Save