2

I'm very new to VS2010, so this is more a question about using Visual Studio 2010 than T4MVC.

Anyway, I wanted to remove T4MVC from my solution, so I deleted the two files from my root directory. However, when I rebuild and debug my solution, I still see compilation warnings associated with T4MVC.tt. What step am I missing here? Thanks in advance!

Mass Dot Net
  • 2,150
  • 9
  • 38
  • 50

1 Answers1

2

You need to make sure that you delete the two files from Visual Studio and not from the explorer (maybe that's what you;re doing already?). This way, it not only deletes t4mvc.tt, but also all the generated files that are under it.

That should be all it takes to remove T4MVC. If that doesn't do it, can you update your question with more details about the specific warnings you're seeing? Also, do you see this issue on a brand new project, or only on some more complex project?

David Ebbo
  • 42,443
  • 8
  • 103
  • 117
  • It's a pretty basic project: I'm currently working through the exercises in Chapter 3 of Sanderson's MVC 2 book (http://apress.com/book/view/1430228865). Complexity is very low. I think I may have accidentally deleted the files physically from my PC before removing the references from Visual Studio. But humor me for a second: where should I be looking in VS2010 for my solution's references? As I said before, I'm pretty new to... well, everything. So I may not be looking in the right place. – Mass Dot Net Oct 05 '10 at 17:12
  • If you are referring to assembly references, you can find them by expanding the 'References' node under your project (in the Solution Explorer). – David Ebbo Oct 05 '10 at 20:34
  • Maybe VS2010 is still compiling the old .generated.cs files T4MVC makes. If you deleted the .tt file outside VS2010 that could be the problem after you start updating the controllers. I think the most clean way to remove T4MVC is to delete it from within VS2010. Or if you've used NuGet to get T4MVC just uninstall the package. – gligoran Nov 20 '10 at 01:08