You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's because we have a hard dependency on MVC 5 (which is where the actual precompilation name comes from), and it only exists for .NET desktop. Does it fail if you only target net462? e.g.:
In order to fully support netstandard, we'd have to pull out the MVC 5 parts into a separate package.
To make it work with MVC 6 / vnext / core / standard, all the razor view handling code (CodeDOM -> strings, view engines, etc) would have to be re-implemented.
This will happen if we decide to start moving Stack Overflow to the new MVC version.
@m0sa I started trying to get this to work with the razor view engine for NancyFX so abstracting out the mvc parts is of interest to me. Would sure save having to fork the project. I have a roslyn version of the view engine now which runs fine, but I'm getting build errors when the precompilation runs, even with targeting .net 4.6.2.
As of de2ede4 / v5.0.0-alpha367 the MVC5 bits have been moved out, and the the precompiler is now self contained and able to cross-compile (the csc.exe replacement is still compiled against net462 since most of the stuff I need is only available in the Microsoft.CodeAnalysis.CSharp.Workspaces.Desktop.dll).
Activity
m0sa commentedon Apr 24, 2017
That's because we have a hard dependency on MVC 5 (which is where the actual precompilation name comes from), and it only exists for .NET desktop. Does it fail if you only target
net462? e.g.:In order to fully support netstandard, we'd have to pull out the MVC 5 parts into a separate package.
To make it work with MVC 6 / vnext / core / standard, all the razor view handling code (CodeDOM -> strings, view engines, etc) would have to be re-implemented.
This will happen if we decide to start moving Stack Overflow to the new MVC version.
MihaMarkic commentedon Apr 24, 2017
Ah, OK. I have a feeling it'd be a great tool for AOP on .NET Standard. Luckily Fody is starting to support it.
xt0rted commentedon May 15, 2017
@m0sa I started trying to get this to work with the razor view engine for NancyFX so abstracting out the mvc parts is of interest to me. Would sure save having to fork the project. I have a roslyn version of the view engine now which runs fine, but I'm getting build errors when the precompilation runs, even with targeting .net 4.6.2.
m0sa commentedon Apr 6, 2018
As of de2ede4 /
v5.0.0-alpha367the MVC5 bits have been moved out, and the the precompiler is now self contained and able to cross-compile (the csc.exe replacement is still compiled againstnet462since most of the stuff I need is only available in theMicrosoft.CodeAnalysis.CSharp.Workspaces.Desktop.dll).