Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

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

1 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...