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
  • 399,467
  • 113
  • 570
  • 794
Bogdan Gavril MSFT
  • 20,615
  • 10
  • 53
  • 74

1 Answers1

1

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

<MvcBuildViews>true</MvcBuildViews>
Community
  • 1
  • 1
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928