找不到Microsoft.VisualStudio.TextTemplating总成找不到、总成、VisualStudio、Microsoft

2023-09-03 00:20:19 作者:趁早滚!

我在做与T4(文本模板转换工具包)的一些工作,并想获得到一个地步,我可以创建自己的自定义文本模板宿主。然而,所有这一切依赖于 Microsoft.VisualStudio.TextTemplating 组装和我找不到它在我的系统!

I am doing some work with T4 (Text Template Transformation Toolkit) and am trying to get to a point where I can create my own custom text template host. However, all of that relies on the Microsoft.VisualStudio.TextTemplating assembly and I cannot find it on my system!

我第一次尝试添加引用在Visual Studio中组装,但对于 Microsoft.VisualStudio.TextTemplating 未在.NET选项卡下所列的组件。

I first tried adding a reference to the assembly in Visual Studio, but the assembly for Microsoft.VisualStudio.TextTemplating is not listed under the .NET tab.

然后我把在%WINDIR%/组装的目录下查看,发现对于 Microsoft.VisualStudio.TextTemplating 的条目。但是,当我尝试浏览到该位置,并添加组件在Visual Studio中,没有任何反应。

I then took a look in the %WINDIR%/Assembly directory and found an entry for Microsoft.VisualStudio.TextTemplating. However, when I try and browse to this location and add the assembly in Visual Studio, nothing happens.

有其他人有这个问题?根据MSDN TUTS这听起来像本次大会应随Visual Studio(我有VS 2003年,2005年和2008年安装)。

Has anybody else had this problem? According to MSDN tuts it sounds like this assembly should be included with Visual Studio (and I have VS 2003, 2005, and 2008 installed).

推荐答案

我已经安装了Visual Studio的SDK。这里就是组件实际安装在我的系统:C:\ Program Files文件\微软的Visual Studio 2008 SDK \ VisualStudioIntegration \公用\大会\ Microsoft.VisualStudio.TextTemplating.dll。这确实显示了Add Reference对话框中正常。

I have the Visual Studio SDK installed. Here is where the assembly is physically installed on my system: C:\Program Files\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Common\Assemblies\Microsoft.VisualStudio.TextTemplating.dll. It does show up in the Add Reference dialog normally.

 
精彩推荐
图片推荐