C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm using Rosyln API to compile source code of C#. But I found that the resulting DLL is .NET Framework 4X, I need to generate the .NET 5 DLL or other, so how can I specify Framework Version for CSharpCompilation.Emit?
Follow this thread
https://github.com/dotnet/roslyn/issues/50612
Sample code with optional frameworks