Include an existing service help folder for a project in visual studio 2010

I have a bunch of service links on my local drive that I want to include in a Visual Studio 2010 project.

But when I select the Include in Project command, they are included as folders, and I cannot find a way to tell Visual Studio that they are service references.

Is there any way to achieve this? Something like the "Enable Existing Service" link?

+5
source share
1 answer

I had to manually edit the xml project and add node as follows for each server link:

<ItemGroup>
 <WCFMetadataStorage Include="Service References\NameOfYourReference\" />
 <WCFMetadataStorage Include="Service References\NameOfYourOtherReference\" />
 //more services
</ItemGroup

reference.cs compile node, , VS2010 Reference1.cs, . Reference1.cs xml XML:

<Compile Include="Service References\NameOfYourReference\Reference.cs">
  <AutoGen>True</AutoGen>
  <DesignTime>True</DesignTime>
  <DependentUpon>Reference.svcmap</DependentUpon>
</Compile>

, , , , , , , VS.

+6

All Articles