问题
I'm creating a new .NET Core application and would like to use System.CodeDom
(and .Compiler) as reference. I require the classes: CSharpCodeProvider
, CodeMemberProperty
, ... However i'm not finding a package via nuget where these types are available. Anybody who knows in which package I can find this for .NET core?
回答1:
I found this one CoreCompat.System.CodeDOM
which is resolving some of my issues. This is still in beta, so if there is an RTM available this can be added here.
回答2:
CodeDOM is not currently available on .Net Core and it seems it's not planned to be included anytime soon.
Your best choice is to use Roslyn libraries instead.
来源:https://stackoverflow.com/questions/39543882/netcoreapp-system-codedom