From e1a521e37b923ad2d35590d0ace8fac6274c49fc Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 11 Jun 2022 13:31:33 +1000 Subject: [PATCH] WIP on C# compiler support for .NET core build --- LICENSE.txt | 18 ++- MCGalaxy/MCGalaxy_.csproj | 5 +- MCGalaxy/MCGalaxy_core.csproj | 1 - MCGalaxy/Modules/Compiling/Backends.cs | 6 +- MCGalaxy/Modules/Compiling/Compiler.cs | 2 - MCGalaxy/Modules/Compiling/Roslyn.cs | 208 +++++++++++++++++++++++++ README.md | 1 - 7 files changed, 227 insertions(+), 14 deletions(-) create mode 100644 MCGalaxy/Modules/Compiling/Roslyn.cs diff --git a/LICENSE.txt b/LICENSE.txt index ea80e1fb0..513b7bc3b 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -62,7 +62,7 @@ THE SOFTWARE. ---------------------------------------------------------------------------------- -MCGalaxy includes some of a noise library, which license is as follows: +MCGalaxy includes some of a noise library, whose license is as follows: (source https://libnoisedotnet.codeplex.com/) ---------------------------------------------------------------------------------- @@ -86,4 +86,18 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------------- \ No newline at end of file +---------------------------------------------------------------------------------- + + +MCGalaxy includes some code based on RoslynCodeDomProvider, whose license is as follows: +(source https://github.com/aspnet/RoslynCodeDomProvider) +---------------------------------------------------------------------------------- +Copyright (c) Microsoft Corporation All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/MCGalaxy/MCGalaxy_.csproj b/MCGalaxy/MCGalaxy_.csproj index d06be990c..edbf7f9c4 100644 --- a/MCGalaxy/MCGalaxy_.csproj +++ b/MCGalaxy/MCGalaxy_.csproj @@ -589,6 +589,7 @@ + @@ -725,9 +726,7 @@ Always - - - +