Visual Studio 2012服务引用刚刚变为文件夹。我该如何解决?

时间:2015-01-28 16:38:03

标签: wcf visual-studio-2012

我有一个带有两个服务引用的Visual Studio 2012项目。我也使用Expression Blend。在某些时候,VS2012中的服务引用变为文件夹,Visual Studio中的更新/配置选项不再起作用。我该如何解决这个问题?

我在Microsoft论坛上发现了这个thread,但没有解决方案。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:1)

经过一番挖掘后,我发现某些内容(Visual Studio?Blend?)已从我的项目文件中删除了以下内容:

<ItemGroup>
    <WCFMetadata Include="Service References\" />
  </ItemGroup>
  <ItemGroup>
    <WCFMetadataStorage Include="Service References\DicomSCPService\" />
    <WCFMetadataStorage Include="Service References\ImageCenterService\" />
  </ItemGroup>

我在其他ItemGroups的尾端添加了这个,并且它再次正常工作。