Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/288.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# 如何修复这些nuget包冲突,使我的项目能够正常运行?_C#_Asp.net_.net_Visual Studio_Msbuild - Fatal编程技术网

C# 如何修复这些nuget包冲突,使我的项目能够正常运行?

C# 如何修复这些nuget包冲突,使我的项目能够正常运行?,c#,asp.net,.net,visual-studio,msbuild,C#,Asp.net,.net,Visual Studio,Msbuild,以下是冲突: 以下是图像中的文本: Severity Code Description Project File Line Suppression State Error CS1705 Assembly 'Microsoft.Xrm.Sdk.Workflow' with identity 'Microsoft.Xrm.Sdk.Workflow, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3

以下是冲突:

以下是图像中的文本:

Severity    Code    Description Project File    Line    Suppression State
Error   CS1705  Assembly 'Microsoft.Xrm.Sdk.Workflow' with identity 'Microsoft.Xrm.Sdk.Workflow, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'Microsoft.Xrm.Sdk' with identity 'Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'    LVP.MadeUpOrganization.Activity C:\Users\Primary User\Desktop\Developer Training 2.0\LVP.MadeUpOrganization\LVP.MadeUpOrganization.Activity\CSC 1   Active
Error   CS0006  Metadata file 'C:\Users\Primary User\Desktop\Developer Training 2.0\LVP.MadeUpOrganization\LVP.MadeUpOrganization.Activity\bin\Debug\LVP.MadeUpOrganization.Activity.dll' could not be found    LVP.MadeUpOrganization.Activity.UnitTest    C:\Users\Primary User\Desktop\Developer Training 2.0\LVP.MadeUpOrganization\LVP.MadeUpOrganization.Activity.UnitTest\CSC    1   Active
Warning     Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. LVP.MadeUpOrganization.Activity         
Warning CS0168  The variable 'e' is declared but never used LVP.MadeUpOrganization.Activity C:\Users\Primary User\Desktop\Developer Training 2.0\LVP.MadeUpOrganization\LVP.MadeUpOrganization.Activity\Activity\WorkflowActivity1.cs   39  Active
Warning     Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed. LVP.MadeUpOrganization.Activity.UnitTest    
我正在使用Visual Studio Enterprise 2015。
以下是更多截图:


您已经安装了Microsoft.Xrm.Sdk版本6,但您需要8版本,以便与您的Microsoft.Xrm.Sdk.Workflow兼容


您可以将Microsoft.Xrm.Sdk升级到8,也可以将Microsoft.Xrm.Sdk.Workflow降级到6。

我刚刚解决了这个问题。我将Microsoft.CrmSdk.corepassemblies包(包含Microsoft.Xrm.Sdk)恢复为6.1.2,它构建得很好!但是,我会注意到,更新Microsoft.CrmSdk.CoreSassemblies包将破坏它,我不知道如何更新项目bin/coretools目录中过期的Microsoft.Xrm.Sdk,因为Microsoft.CrmSdk.CoreSassemblies包的更高版本似乎不再使用该目录。