[英]How to add WCF templates to Visual Studio Express?
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. 我正在阅读Michele Bustamante撰写的学习WCF一书,并尝试使用Visual Studio C#Express 2008进行操作。说明使用WCF项目和项目模板,这些模板不包含在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. 有这些类型的模板包括Visual Studio的Web Developer速成,而我试图拷贝它们转化为VS C#Express来找到合适的目录,但是IDE不容易找到他们。 Is there some registration process? 有一些注册程序吗? Or config file somewhere? 或者在某处配置文件?
If you have both Visual Web Developer (VWD) 2008 and Visual C# (VC#) 2008 installed you can copy templates between them. 如果安装了Visual Web Developer(VWD)2008和Visual C#(VC#)2008,则可以在它们之间复制模板。 The VWD template files live in (by default): VWD模板文件存在(默认情况下):
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VWDExpress
The VC# templates live in: VC#模板存在于:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VCSExpress
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: 只需在两个目录之间复制模板,它们可能不完全匹配,但它们应该足够接近才有意义,例如我通过从以下位置复制文件将项目模板从VC#复制到VWD:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VCSExpress\ProjectTemplates\1033
into: 成:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VWDExpress\ProjectTemplates\CSharp\Windows\1033
The templates won't appear straight away in the template browser. 模板不会立即出现在模板浏览器中。 For VWD you need to run: 对于VWD,您需要运行:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VWDExpress.exe /installvstemplates
For VC# you run: 对于VC#,你运行:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VCSExpress.exe /installvstemplates
如果您是学生,您可以免费从DreamSpark获得完整的Visual Studio 2008。
Mike, 麦克风,
Visual Web Developer 2008 Express will help you in working with WCF Projects. Visual Web Developer 2008 Express将帮助您使用WCF项目。
I have the following... 我有以下......
Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Microsoft .NET Framework Version 3.5 SP1 Microsoft Visual Studio 2008版本9.0.30729.1 SP Microsoft .NET Framework版本3.5 SP1
Hope this helps. 希望这可以帮助。
Sanjeev Sanjeev
As a be aware follow-up, I also had to run 作为一个意识到的后续行动,我也不得不跑
C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\VWDExpress.exe /ResetSettings 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 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. 当IDE尝试枚举C#项目模板树时,它崩溃了。 After running the ResetSettings, the tree iterated and the new templates were present. 运行ResetSettings后,树迭代并出现新模板。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.