在VS 2012或2013中使用WSE

1,首先下载 WSE http://www.microsoft.com/en-us/download/confirmation.aspx?id=14089

2,安装的时候选上,

在VS 2012或2013中使用WSE

3,C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE

        如果是 VS2012 那就是 11.0

 

4,找到 devenv.exe.config

 

添加 在VS 2012或2013中使用WSE

 

<system.web>
   <webServices>
     <soapExtensionImporterTypes>
       <add type="Microsoft.Web.Services3.Description.WseExtensionImporter,
      Microsoft.Web.Services3, Version=3.0.0.0,
      Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
     </soapExtensionImporterTypes>
   </webServices>
 </system.web>

 

 

5,至 C:\ProgramData\Microsoft\MSEnvShared\Addins 目录 下 找到 WSESettingsVS3.Addin

 

编辑之:

 

在VS 2012或2013中使用WSE

 

<HostApplication>
  <Name>Microsoft Visual Studio Macros</Name>
  <Version>12.0</Version>
</HostApplication>
<HostApplication>
  <Name>Microsoft Visual Studio</Name>
  <Version>12.0</Version>
</HostApplication>

 

6,重启 vs .net

在VS 2012或2013中使用WSE

多了这项,表示成功

 

其它:

在引用WCF 的时候,

在VS 2012或2013中使用WSE

就可以了。

 

其实这个工具应该是去进坟墓的东西,但是呢,总有些项目还在使用.net 2.0 ,总是以稳定为由不去升级。