如何将 WCF 模板添加到 Visual Studio Express? [英] How to add WCF templates to Visual Studio Express?

查看:31
本文介绍了如何将 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆