Include aspx in the static analysis (FxCop) of an MVC website
I am doing static analysis for a MVC v2 website build with .net 4. I have compiled the website and ran FxC开发者_如何学Pythonop on the resulting dll, but then I realized that the dll does not contain the code in the views (I used a reflector to determine that).
So the question is:
Can one configure the MVC project so that the views are published in a DLL that can be scanned?
You could precompile views by setting the following in the .csproj
:
<MvcBuildViews>true</MvcBuildViews>
精彩评论