如何将 WCF 模板添加到 Visual Studio Express?

编程入门 行业动态 更新时间:2024-10-27 06:26:57
本文介绍了如何将 WCF 模板添加到 Visual Studio Express?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在阅读 Michele Bustamante 的《Learning WCF》一书,并尝试使用 Visual Studio C# Express 2008 来完成.说明中说要使用 WCF 项目和项模板,VS C# Express 中不包含这些模板.Visual Studio Web Developer Express 包含这些类型的模板,我尝试将它们复制到正确的目录中,以便 VS C# Express 找到,但 IDE 没有找到它们.有注册流程吗?或者某处的配置文件?

I am working through the book Learning WCF by Michele Bustamante, and trying to do it using Visual Studio C# Express 2008. The instructions say to use WCF project and item templates, which are not included with VS C# Express. There are templates for these types included with Visual Studio Web Developer Express, and I've tried to copy them over into the right directories for VS C# Express to find, but the IDE doesn't find them. Is there some registration process? Or config file somewhere?

推荐答案

如果您同时安装了 Visual Web Developer (VWD) 2008 和 Visual C# (VC#) 2008,则可以在它们之间复制模板.VWD 模板文件位于(默认情况下):

If you have both Visual Web Developer (VWD) 2008 and Visual C# (VC#) 2008 installed you can copy templates between them. The VWD template files live in (by default):

C:Program FilesMicrosoft Visual Studio 9.0Common7IDEVWDExpress

VC# 模板位于:

C:Program FilesMicrosoft Visual Studio 9.0Common7IDEVCSExpress

只需复制两个目录之间的模板,它们可能不完全匹配,但它们应该足够接近以有意义,例如我通过从以下位置复制文件将项目模板从 VC# 复制到 VWD:

Simply copy the templates between the two directories, they might not match exactly but they should be close enough to make sense, for instance I copied the project templates from VC# into VWD by copying files from:

C:Program FilesMicrosoft Visual Studio 9.0Common7IDEVCSExpressProjectTemplates1033

进入:

C:Program FilesMicrosoft Visual Studio 9.0Common7IDEVWDExpressProjectTemplatesCSharpWindows1033

模板不会立即出现在模板浏览器中.对于 VWD,您需要运行:

The templates won't appear straight away in the template browser. For VWD you need to run:

C:Program FilesMicrosoft Visual Studio 9.0Common7IDEVWDExpress.exe /installvstemplates

对于 VC#,您运行:

For VC# you run:

C:Program FilesMicrosoft Visual Studio 9.0Common7IDEVCSExpress.exe /installvstemplates

更多推荐

如何将 WCF 模板添加到 Visual Studio Express?

本文发布于:2023-11-15 11:21:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1593980.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   模板   WCF   Express   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!