• <bdo id='j1e8z'></bdo><ul id='j1e8z'></ul>

  1. <tfoot id='j1e8z'></tfoot>

      <small id='j1e8z'></small><noframes id='j1e8z'>

    1. <i id='j1e8z'><tr id='j1e8z'><dt id='j1e8z'><q id='j1e8z'><span id='j1e8z'><b id='j1e8z'><form id='j1e8z'><ins id='j1e8z'></ins><ul id='j1e8z'></ul><sub id='j1e8z'></sub></form><legend id='j1e8z'></legend><bdo id='j1e8z'><pre id='j1e8z'><center id='j1e8z'></center></pre></bdo></b><th id='j1e8z'></th></span></q></dt></tr></i><div id='j1e8z'><tfoot id='j1e8z'></tfoot><dl id='j1e8z'><fieldset id='j1e8z'></fieldset></dl></div>
      <legend id='j1e8z'><style id='j1e8z'><dir id='j1e8z'><q id='j1e8z'></q></dir></style></legend>

      System.Web.Extensions 程序集无法解析

      时间:2023-08-26

      1. <small id='1IZRR'></small><noframes id='1IZRR'>

          <bdo id='1IZRR'></bdo><ul id='1IZRR'></ul>
          <legend id='1IZRR'><style id='1IZRR'><dir id='1IZRR'><q id='1IZRR'></q></dir></style></legend>
            <tfoot id='1IZRR'></tfoot>
              <tbody id='1IZRR'></tbody>
            1. <i id='1IZRR'><tr id='1IZRR'><dt id='1IZRR'><q id='1IZRR'><span id='1IZRR'><b id='1IZRR'><form id='1IZRR'><ins id='1IZRR'></ins><ul id='1IZRR'></ul><sub id='1IZRR'></sub></form><legend id='1IZRR'></legend><bdo id='1IZRR'><pre id='1IZRR'><center id='1IZRR'></center></pre></bdo></b><th id='1IZRR'></th></span></q></dt></tr></i><div id='1IZRR'><tfoot id='1IZRR'></tfoot><dl id='1IZRR'><fieldset id='1IZRR'></fieldset></dl></div>
              • 本文介绍了System.Web.Extensions 程序集无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我正在尝试运行一个 .NET 4.0 控制台应用程序,该应用程序引用了一个姊妹库项目 (Bar.dll),该项目本身引用了 VS2010 B2 中的 System.Web.Extensions.我目前只对访问 System.Web.Scripting.JavaScriptSerializer 感兴趣.

                I am trying to run a .NET 4.0 Console application that references a sister library project (Bar.dll) which itself references System.Web.Extensions in VS2010 B2. I am currently only interested in getting access to System.Web.Scripting.JavaScriptSerializer.

                两个项目都引用了 System.Web.Extensions(使用应用程序引用"对话框中.NET"下列出的那个),但是当我尝试编译/运行应用程序时,编译器会发出声音:

                Both projects have references to System.Web.Extensions (using the one listed under ".NET" in the App References dialog), but when I try to compile/run the application, the compiler barks:

                C:WindowsMicrosoft.NETFrameworkv4.0.21006Microsoft.Common.targets(1291,9):
                warning MSB3253: The referenced assembly "Bar.dll" could not be resolved because it has a dependency on 
                "System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
                which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".

                真的吗?这是怎么回事?为什么编译器不与程序集链接?

                Seriously? What's going on? Why won't the compiler link with the assembly?

                推荐答案

                currently targeted framework ".NETFramework,Version=v4.0,Profile=Client".
                                                                         ^^^^^^^^^^^^^^
                

                您的目标是客户端配置文件,它不包括 Web 程序集.进入 Project > Properties > Application 并将 Target Framework 更改为.NET Framework 4".

                You're targeting the Client Profile, which doesn't include the Web assemblies. Go into Project > Properties > Application and change Target Framework to ".NET Framework 4".

                这篇关于System.Web.Extensions 程序集无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:.NET 应用程序的链接器状态(又名“请先生,我可 下一篇:在 C# 中解析带有标题的 CSV 文件

                相关文章

                最新文章

              • <small id='Ok04a'></small><noframes id='Ok04a'>

              • <tfoot id='Ok04a'></tfoot>

                  <legend id='Ok04a'><style id='Ok04a'><dir id='Ok04a'><q id='Ok04a'></q></dir></style></legend>
                    <bdo id='Ok04a'></bdo><ul id='Ok04a'></ul>

                  1. <i id='Ok04a'><tr id='Ok04a'><dt id='Ok04a'><q id='Ok04a'><span id='Ok04a'><b id='Ok04a'><form id='Ok04a'><ins id='Ok04a'></ins><ul id='Ok04a'></ul><sub id='Ok04a'></sub></form><legend id='Ok04a'></legend><bdo id='Ok04a'><pre id='Ok04a'><center id='Ok04a'></center></pre></bdo></b><th id='Ok04a'></th></span></q></dt></tr></i><div id='Ok04a'><tfoot id='Ok04a'></tfoot><dl id='Ok04a'><fieldset id='Ok04a'></fieldset></dl></div>