T4MVC / R4MVC

R4MVC is a Roslyn code generator for ASP.NET Core MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places
Apache License 2.0
157 stars 48 forks source link

Mixed C#/F# solution #125

Open gmoneh opened 5 years ago

gmoneh commented 5 years ago

R4MVC does not work if the web project includes a reference to a project written in F#. Loading the MSBuild workspace produces a message saying:

"Cannot open project 'xxx' because the file extension '.fsproj' is not associated with a language."

I know that the Roslyn compiler does not cover F#, but in this case, the F# code has little to do with the code generation that R4MVC needs to perform...

Is there a way to bypass the error above so the code analysis can go through?

artiomchi commented 5 years ago

Hmm.. That's an interesting point.

I guess the best solution in this case would be the ability to manually ignore specific errors, to allow the analysis to proceed. Depending on which error is ignored, the end results could not always be accurate, but it might also allow you to proceed in a situation like yours.

I'll see what I can do about it. Thanks for the interesting issue :)