Open drcjt opened 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
Review this to get ideas on how to do this ->https://github.com/dotnet/corert/blob/master/src/BuildIntegration/Microsoft.NETCore.Native.targets
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
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
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.