 Rank: Guest
Groups: Guest
Joined: 3/17/2009(UTC) Posts: 1,084
Was thanked: 1 time(s) in 1 post(s)
|
I get a popup error dialog with a cs0234 compile error saying it can't find the referenced assemblies when trying to add a strongly typed view with one of the AddView t4 templates like Create.tt in a mvc 3 project. I'm using studio 2010 with sp1 beta on windows 7. I've figured out that if uninstal the t4 editor it goes back to working. I've also editted the create.tt file to fully qualify the assembly and that seems to get it working too. e.g. <#@ assembly name="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.ComponentModel.DataAnnotations.dll" #> <#@ assembly name="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" #> <#@ assembly name="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Entity.dll" #> <#@ assembly name="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.Linq.dll" #>
[tangible] The Resolution is to install the ASP.NET MVC Tools Update: http://weblogs.asp.net/s...-mvc-3-tools-update.aspxEdited by user Friday, May 6, 2011 12:43:33 PM(UTC)
| Reason: Not specified
|
|
|
|
 Rank: Guest
Groups: Guest
Joined: 3/17/2009(UTC) Posts: 1,084
Was thanked: 1 time(s) in 1 post(s)
|
I'm new to T4 Editor. I also had the same error. Uninstalling eliminated the error, but now I need to try and reinstall. I just hope I don't have to uninstall/ reinstall everytime I want to make a template change... or just do it without the help of T4 Editor... ugh.
|
|
|
|
 Rank: Guest
Groups: Guest
Joined: 3/17/2009(UTC) Posts: 1,084
Was thanked: 1 time(s) in 1 post(s)
|
When i do this i get the error CS0234 that says that the namespace DataAnnotations does not exist in System.ComponentModel and that most likely your project is missing a Reference.
I assume that is the issue you refer to? I need to work with MS to check why they get this error, then. Please confirm.
|
|
|
|
 Rank: Guest
Groups: Guest
Joined: 3/17/2009(UTC) Posts: 1,084
Was thanked: 1 time(s) in 1 post(s)
|
This is resolved by the ASP.NET MVC Update posted 12.04.2011 by Microsoft. Please update
|
|
|
|
 Rank: Guest
Groups: Guest
Joined: 3/17/2009(UTC) Posts: 1,084
Was thanked: 1 time(s) in 1 post(s)
|
Hello. What MVC update would this be? I have the latest release and still I get this error. It´s so much harder to code now without the T4-intellisense :(
|
|
|
|
 Rank: Guest
Groups: Guest
Joined: 3/17/2009(UTC) Posts: 1,084
Was thanked: 1 time(s) in 1 post(s)
|
The ASP.NET MVC Tools Update can be found here: http://weblogs.asp.net/shijuvarghese/archive/2011/04/13/asp-net-mvc-3-tools-update.aspxEdited by user Friday, May 6, 2011 12:42:53 PM(UTC)
| Reason: Not specified
|
|
|
|
 Rank: Newbie
Groups: Member
Joined: 12/19/2017(UTC) Posts: 3 ![United Kingdom United Kingdom]() Location: Midlands
|
You guys still have this rather awful problem!!! In MVC 5 in Visual Studio 2017. Why?
|
|
|
|
Users browsing this topic |
Guest (2)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.