Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCFMetadata tag in ItemGroup of silverlight project file

This line appears in my Silverlight application cs.project file.

<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>

Just wondering if anyone know anything about how it works and why it is there.

Thank you.

like image 798
Allan Jiang Avatar asked Aug 03 '12 22:08

Allan Jiang


2 Answers

When you right click on the Service References node in the Solution Explorer and Pick the Add Service Reference.. you can add a Service reference to your silverlight project. You will see some additional node in your csproject and under teh Service References folder you will see bunch of auto-generated files that help you connect easily to the service and invoke methods

Then your project will look something like this

  <ItemGroup>
    <WCFMetadata Include="Service References\" />
  </ItemGroup>
  <ItemGroup>
    <WCFMetadataStorage Include="Service References\ServiceReference1\" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Service References\ServiceReference1\Foo-Web-Services-Bar.disco" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Service References\ServiceReference1\configuration91.svcinfo" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Service References\ServiceReference1\configuration.svcinfo" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Service References\ServiceReference1\Reference.svcmap">
      <Generator>WCF Proxy Generator</Generator>
      <LastGenOutput>Reference.cs</LastGenOutput>
    </None>
  </ItemGroup>

Yours is empty because you haven't added any service references

like image 200
parapura rajkumar Avatar answered Nov 14 '22 23:11

parapura rajkumar


From my experience, these lines appears in a csproj when you try to add a reference to a WCF Service

  • Right click on the project name
  • Select 'Add reference to service' (I use a non english VS, so it could be something similar)

From the state of your lines, I think that you don't have any reference active.
But VS has already created the subfolder where it will store every files needed to define future references. (Look at your project folder and you will find the folder 'Service References'

like image 21
Steve Avatar answered Nov 14 '22 22:11

Steve