I would like to compile a .NET Core executable by invoking Roslyn APIs. My "compiler" application is built for .NET Framework, and references Roslyn NuGet packages. So far the assemblies generated by Roslyn as a result were targeted for .NET Framework. And I didn't find a switch to change that. Is that possible, or do I need to use .NET Core version of Roslyn to generate .NET Core executables?
Asked
Active
Viewed 159 times
0
-
2Use the correct reference assemblies: https://stackoverflow.com/questions/46065777/is-it-possible-to-compile-a-single-c-sharp-code-file-with-the-net-core-roslyn-c – Hans Passant Oct 03 '20 at 08:17
-
@HansPassant: that should be submitted as an answer to upvote! – Jason Malinowski Oct 05 '20 at 18:50