drcjt / CSharp-80

C# AOT compiler for Z80 based computers including the TRS-80 and ZX Spectrum
https://drcjt.github.io/CSharp-80/
GNU General Public License v3.0
51 stars 3 forks source link

Package il compiler as a nuget library #17

Open drcjt opened 2 years ago

drcjt commented 2 years ago

Ideally what to make it very easy to use by just adding the nuget pkg to an existing project and having this run the ilcompiler. Will need to use targets files to make this happen.

drcjt commented 2 years ago

Thinking of something like this -> https://natemcmaster.com/blog/2017/11/11/build-tools-in-nuget/ However only need to support dot net core

drcjt commented 2 years ago

Review this to get ideas on how to do this ->https://github.com/dotnet/corert/blob/master/src/BuildIntegration/Microsoft.NETCore.Native.targets

drcjt commented 1 year ago

Work out how to create a nuget package for Csharp 80 ilcompiler Can this include the runtime too e.g. System.Private.CoreLib ???

Test things out using a local nuget repository

Look at this folder in CoreRT for inspiration -> https://github.com/dotnet/corert/tree/master/src/BuildIntegration

drcjt commented 1 year ago

https://www.codeproject.com/Tips/5273315/How-to-Create-a-NuGet-Package-that-Runs-your-Conso

https://natemcmaster.com/blog/2017/11/11/msbuild-task-with-dependencies/ https://natemcmaster.com/blog/2017/11/11/build-tools-in-nuget/

Will need to deal with dependencies - both project references and external nuget libs:

Consider publishing and then packing publish folder as per natemcmasters advice in links above