如何将 WCF 模板添加到 Visual Studio Express?
我正在阅读 Michele Bustamante 所著的《学习 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您同时安装了 Visual Web Developer (VWD) 2008 和 Visual C# (VC#) 2008,则可以在它们之间复制模板。 VWD 模板文件位于(默认情况下):
VC# 模板位于:
只需在两个目录之间复制模板,它们可能不完全匹配,但它们应该足够接近以有意义,例如我从通过将文件从以下位置复制到 VC# 到 VWD
:
模板不会立即出现在模板浏览器中。 对于 VWD,您需要运行:
对于 VC#,您需要运行:
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):
The VC# templates live in:
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:
into:
The templates won't appear straight away in the template browser. For VWD you need to run:
For VC# you run:
如果您是学生,您可以从 DreamSpark 免费获得完整的 Visual Studio 2008。
If you are a student you could get the full Visual Studio 2008 from DreamSpark for free.
Mike,
Visual Web Developer 2008 Express 将帮助您使用 WCF 项目。
我有以下...
Microsoft Visual Studio 2008
版本 9.0.30729.1 SP
微软.NET框架
版本 3.5 SP1
希望这有帮助。
桑吉耶夫
Mike,
Visual Web Developer 2008 Express will help you in working with WCF Projects.
I have the following...
Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1
Hope this helps.
Sanjeev
作为注意的后续行动,我还必须运行
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VWDExpress.exe /ResetSettings
After 复制模板并运行
C:\ Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VWDExpress.exe /installvstemplats
IDE 在尝试枚举 C# 项目模板树时崩溃。 运行 ResetSettings 后,树进行迭代并且出现新模板。
As a be aware follow-up, I also had to run
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VWDExpress.exe /ResetSettings
After copying the templates and running the
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VWDExpress.exe /installvstemplats
The IDE was crashing when it tried to enumerate the C# project templates tree. After running the ResetSettings, the tree iterated and the new templates were present.