8000 GitHub - hamdiahmedamin/roslyn at monodevelop · GitHub
[go: up one dir, main page]

Skip to content
hamdiahmedaminPublic
forked from mono/roslyn

About

Roslyn Compiler - Tracks Mono Patches

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

1,699 Commits

Folders and files

Repository files navigation

Roslyn

Mono compatible copy of Roslyn Source Code

The build requires master Mono 73bb10fff3d7b828c3508c4ab34126baa8345bd9 or newer.

C# compiler

There are a few steps to getting the C# compiler to build on Mono:

Manual changes needed

After succesfull package restore packages/Microsoft.Net.ToolsetCompilers.0.7.4101501-beta/build/Microsoft.Net.ToolsetCompilers.props has to be replaced with

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <DisableRoslyn>true</DisableRoslyn>
    <CscToolPath Condition=" '$(OS)' == 'Windows_NT'">$(MSBuildThisFileDirectory)..\tools</CscToolPath>
    <CscToolExe Condition=" '$(OS)' == 'Windows_NT'">csc2.exe</CscToolExe>
    <VbcToolPath>$(MSBuildThisFileDirectory)..\tools</VbcToolPath>
    <VbcToolExe>vbc2.exe</VbcToolExe>
  </PropertyGroup>
</Project>

Install PCL

Download the PCL Reference Assemblies and copy the directory v4.5/Profile/Profile7 into your Mono installation as a subdirectory of $PREFIX/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/.

Build FakeSign

FakeSign tool is needed during build and needs to be build as first step

`xbuild Src/Tools/Source/FakeSign/FakeSign.csproj`

Run xbuild

The compiler can be build using xbuild with

`xbuild Src/Compilers/CSharp/csc/csc.csproj`

The Roslyn compiler is called csc.exe and once built it can be found in the top level Binaries/Debug directory.

Workspaces

Use xbuild Src/Workspaces/CSharp/Portable/CSharpWorkspace.csproj to build the C# workspace.

About

Roslyn Compiler - Tracks Mono Patches

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0