Open tactical-drone opened 8 years ago
Why do you think this is a Roslyn issue? To me, it sounds like another instance of https://github.com/aspnet/Mvc/issues/4818, which is caused by https://github.com/dotnet/cli/issues/1613.
I believe they originate from Roslyn. Because I threw all Mono assemblies at it and it did get by some of those earlier issues which led us to new and fresh issues.
Those errors above, CS0246 & CS1662 come from the Roslyn compiler and are not emitted when running on a windows platform.
Further more error CS0246 does not make sense. It is saying that it cannot find a reference to type or namespace TValue
, but TValue
is clearly non of those. It's a generic parameter. So the compiler is clearly confused about something there. I therefor believe it has something to do with Roslyn running on Linux.
Error CS1662 looks something like #2735 because of the<TKey,TValue>
convention.
Razor has options that you can pass to the compiler via: CSharpCompilationOptions
& CSharpParseOptions
& RoslynCompilationContext
. Is there an option I can pass to it so that it emits some debug information about what it is trying to do? For example I have tried pulling some levers like: options.ParseOptions.WithLanguageVersion(Microsoft.CodeAnalysis.CSharp.LanguageVersion.CSharp5);
but it does not help. It would really help me find where this problem comes from, the code generated by razor or Roslyn that is trying to compile it.
This issue seems to be resolved in 1.0.0
Version Used: 1.3.0-beta1-20160525-03
Steps to Reproduce:
net451
under Linux with Mono installedExpected Behavior: It should work
Actual Behavior: Roslyn cannot compile Razor code and fails with error: