Posts
824
Comments
689
Trackbacks
1
The item 'T4MVC1.cs' cannot be deleted

I ran into this problem about a month or two ago, and don’t remember how I fixed it.

Every time I build my solution which uses T4MVC, I get this error unless I manually delete the file.  Also, note that it is “T4MVC1” and not “T4MVC.”  This happened the last time as well, where somehow the solution thinks it needs to name the file differently.

I will post the solution whenever I figure out what it is so that it is documented for myself the next time it happens.

posted on Sunday, February 06, 2011 3:13 PM Print
Comments
Gravatar
# re: The item 'T4MVC1.cs' cannot be deleted
Korayem
5/7/2011 5:47 PM
It happens randomly

1-I have to uninstall-package T4MVC
2-Restart Visual Studio
3-Install-Package T4MVC

Any updates on how to fix this?
Gravatar
# re: The item 'T4MVC1.cs' cannot be deleted
jdn
5/7/2011 6:55 PM
Unfortunately, not yet.

Once I get back to that solution, I will try to figure out a permanent solution.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 6 and 7 and type the answer here: