开发者

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜