Where is System.ServiceModel.Web.dll?

2019-01-21 18:46发布

I am developing a Windows service that exposes a WCF service intended to be consumed by a Silverlight application, as explained in this blog post: http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2008/03/27/10291.aspx

The problem I am facing is that I need to use the WebInvoke attribute, which is defined in the System.ServiceModel.Web.dll assembly, but when I try to add a reference to that assembly in the project (by using Visual Studio's Add Reference dialog - .NET tab), there is no assembly with that name.

So, am I doing something wrong, this assembly is not part of the standard .NET Framework, or it is a bug in Visual Studio? By the way I'm using VS2010 beta 2 and the project targets .NET Framework 4.

7条回答
Summer. ? 凉城
2楼-- · 2019-01-21 19:26

You can find the configuration with the below steps.

  1. Right Click Project in Solution Explorer

  2. Choose Properties

  3. Choose Compile TAB on the left

  4. At the end of the compile page click Advanced Compile Option*s Button, this will bring up the A*dvanced Compiler Settings

  5. The last control is a drop down reading "Target framework (all configurations)

查看更多
登录 后发表回答