Skip to content

Does CodeDom plan to support .NET Core 2.0? #24

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Wingjam opened this issue Feb 13, 2018 · 2 comments
Open

Does CodeDom plan to support .NET Core 2.0? #24

Wingjam opened this issue Feb 13, 2018 · 2 comments

Comments

@Wingjam
Copy link

Wingjam commented Feb 13, 2018

Description

As of today, CodeDom cannot be used in .NET Core 2.0 projects for F#.
Is it planned to support it in a near future?

@drvink
Copy link
Collaborator

drvink commented Feb 17, 2018

Sorry, can you explain what isn't working? Are you trying to generate code? Are you trying to invoke the F# compiler via CodeDom? Are you using CodeDom for ASP?

It looks like CodeDom exists for .NET Core 2.0 in the form of a NuGet package, but this immediately raises a question: what is the equivalent of machine.config in .NET Core? Does it even exist? If not, then third-party CodeDom providers won't work with .NET Core, except for ASP (if you look in the contents of Microsoft.CodeDom.Providers.DotNetCompilerPlatform, you'll see that there's an XDT to add the CodeDom provider configuration to web.config).

@drvink
Copy link
Collaborator

drvink commented Feb 18, 2018

Also, just FYI, you'd be much better off using FCS if you want programmatic access to the compiler and/or parsing and AST-related services. CodeDom's AST doesn't resemble F# at all, nor does it easily allow you to write natural or efficient F#. (In other words, this provider should be considered only when you absolutely must get F# working with CodeDom for some reason--for example, you want to use PowerShell's ability to Add-Type source code fragments of any language registered with CodeDom).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants