Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/320.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 更改代码设置后,2013 VS代码在VS 2010中打开,并给出各种错误_C#_Visual Studio 2010_Visual Studio_Visual Studio 2013 - Fatal编程技术网

C# 更改代码设置后,2013 VS代码在VS 2010中打开,并给出各种错误

C# 更改代码设置后,2013 VS代码在VS 2010中打开,并给出各种错误,c#,visual-studio-2010,visual-studio,visual-studio-2013,C#,Visual Studio 2010,Visual Studio,Visual Studio 2013,我在Visual Studio 2013中创建了一个web客户端和web服务,我所在的大学使用2010,但它不会打开!它提到了NetFramework4.5。如何转换我的项目,使其在2010年开放?我需要尽快把它分类 <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <bindings> <

我在Visual Studio 2013中创建了一个web客户端和web服务,我所在的大学使用2010,但它不会打开!它提到了NetFramework4.5。如何转换我的项目,使其在2010年开放?我需要尽快把它分类

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="BasicHttpBinding_IMechGLSService" />
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="http://localhost:8733/" binding="basicHttpBinding"
                bindingConfiguration="BasicHttpBinding_IMechGLSService" contract="MechGLSReference.IMechGLSService"
                name="BasicHttpBinding_IMechGLSService" />
        </client>
    </system.serviceModel>
</configuration>

在您2013年的项目中。右键单击项目,然后单击属性。当新的“页面”打开时,您将在屏幕的左侧看到一个标签,上面写着应用程序。在该选项卡上,您应该看到您的程序集名称和另一个标签,上面写着目标框架。在该窗口下,您应该能够打开一个下拉列表并单击.NET Framework 4.0


VS2010不支持4.5。如果你真的需要打开该项目,请将其降级。我尝试了链接功能,但2010年2个项目中只有一个项目正在打开,另一个项目说“无法读取项目文件example.csproj”,只需更改目标框架,希望你没有使用任何4.5特定的语言功能。您正在复制的链接问题包括如何执行此操作。我尝试过这样做,但问题是两个项目中只有一个项目正在上载,第二个项目表示“无法读取项目文件xyz.csproj”,您必须更新每个项目。您可能必须删除并重新添加对项目#2的引用,如果这是您所说的。我确实更改了目标框架这是一个错误,我无法读取项目“Mech_GLS#u ServiceLibrary.csproj”。C:\Users\Desktop\walmart\Common\StgDir DMS\HostWebService\host\u webservice\source\StagingWeb\Mech\u GLS\u ServiceLibrary\Mech\u GLS\u ServiceLibrary\Mech\u GLS\u ServiceLibrary.csproj(64,3):未找到导入的项目“C:\Progrean文件(x86)\MSBuild\Microsoft\VisualStudio\v10.0\WCF\Microsoft.VisualStudio.ServiceModel.targets”。确认声明中的路径正确,并且文件存在于磁盘上。您在2013年重建了它吗?不,我正在尝试在VS 2010中打开该项目,并显示该错误。检查此项,它将显示3个步骤。记录在案,在你2013年改变所有这些之后,我仍然会重建它。