Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
177 views
in Technique[技术] by (71.8m points)

c# - 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. 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

The VC# templates live in:

C:Program FilesMicrosoft Visual Studio 9.0Common7IDEVCSExpress

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

into:

C:Program FilesMicrosoft Visual Studio 9.0Common7IDEVWDExpressProjectTemplatesCSharpWindows1033

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

For VC# you run:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...