0

I am doing static analysis for a MVC v2 website build with .net 4. I have compiled the website and ran FxCop 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?

Joel Coehoorn
  • 380,066
  • 110
  • 546
  • 781
Bogdan Gavril MSFT
  • 19,592
  • 10
  • 52
  • 73

1 Answers1

1

You could precompile views by setting the following in the .csproj:

<MvcBuildViews>true</MvcBuildViews>
Community
  • 1
  • 1
Darin Dimitrov
  • 994,864
  • 265
  • 3,241
  • 2,902