Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Commented Unassigned: VWDExpress needs %VS110COMNTOOLS% defined [1517]

$
0
0
See issue https://entityframework.codeplex.com/workitem/1431

We also have the same issue on 2012 i.e. install only VWDExpress 2012 (from \\cpvsbuild\drops\dev11\RTMRel\layouts\x86ret\50727.01\enu\vns\full\dvd) and the latest Dev11 drop of EFTools (I used \\unicorns420\EF6Tooling\Dev11\7) on a VM (do not install any other version of VS).

Then generate a model from an existing DB (in a website project - specifically I used a VB ASP.NET Website (Razor v2) project - or a C# Class Library project. Note: I do _not_ see this problem in a VB ASP.NET MVC4 WebApp project) and you get the following errors in the error list:

Error 1 The host threw an exception while trying to resolve the assembly reference '%VS110COMNTOOLS%..\IDE\EntityFramework.dll'. The transformation will not be run. The following Exception was thrown:
System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
at System.Reflection.AssemblyName.nInit(RuntimeAssembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent)
at System.Reflection.AssemblyName..ctor(String assemblyName)
at Microsoft.VisualStudio.TextTemplating.GlobalAssemblyCacheHelper.GetLocation(String strongName)
at Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.ResolveAssemblyReference(String assemblyReference)
at Microsoft.VisualStudio.TextTemplating.Engine.ResolveAssemblyReferences(ITextTemplatingEngineHost host, TemplateProcessingSession session) C:\Work\Test\Test130806_TestVWD2012_VB_Website_01\App_Code\Model2.tt 0 0 Test130806_TestVWD2012_VB_Website_01
Error 2 The host threw an exception while trying to resolve the assembly reference '%VS110COMNTOOLS%..\IDE\Microsoft.Data.Entity.Design.dll'. The transformation will not be run. The following Exception was thrown:
System.IO.FileLoadException: The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
at System.Reflection.AssemblyName.nInit(RuntimeAssembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent)
at System.Reflection.AssemblyName..ctor(String assemblyName)
at Microsoft.VisualStudio.TextTemplating.GlobalAssemblyCacheHelper.GetLocation(String strongName)
at Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.ResolveAssemblyReference(String assemblyReference)
at Microsoft.VisualStudio.TextTemplating.Engine.ResolveAssemblyReferences(ITextTemplatingEngineHost host, TemplateProcessingSession session) C:\Work\Test\Test130806_TestVWD2012_VB_Website_01\App_Code\Model2.tt 0 0 Test130806_TestVWD2012_VB_Website_01

It looks like we need to ask the VWD team to add the %VS110COMNTOOLS% env var to their 2012 product (similar to how they added %VS120COMNTOOLS% to their 2013 product).

Comments: Also happens on WDExpress using WPF project.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>