我已经在这个项目上工作了大约一个星期,没有任何构建问题,但突然我的项目无法构建,屏幕上显示0错误,但我在输出窗口中发现了这2个警报。我该如何解决这个问题?
# 1
warning MSB3277: Found conflicts between different versions of "System.Numerics.Vectors" that
could not be resolved.
2>D:Program Files (x86)Microsoft Visual
Studio2019CommunityMSBuildCurrentBinMicrosoft.Common.CurrentVersion.targets(2202,5):
warning MSB3277: There was a conflict between "System.Numerics.Vectors, Version=2.0.5.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Numerics.Vectors,
Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
2>D:Program Files (x86)Microsoft Visual
Studio2019CommunityMSBuildCurrentBinMicrosoft.Common.CurrentVersion.targets(2202,5):
warning MSB3277: "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and
"System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
was not.
2>D:Program Files (x86)Microsoft Visual
Studio2019CommunityMSBuildCurrentBinMicrosoft.Common.CurrentVersion.targets(2202,5):
warning MSB3277: References which depend on "System.Numerics.Vectors, Version=2.0.5.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [D:Program Files (x86)Microsoft References
which depend on "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" [].
2>D:Program Files (x86)Microsoft Visual
Studio2019CommunityMSBuildCurrentBinMicrosoft.Common.CurrentVersion.targets(2202,5):
warning MSB3277:
C:UsersLenovo.nugetpackagessystem.text.json5.0.2libnetstandard2.0System.Text.Json.dll
2>D:Program Files (x86)Microsoft Visual
Studio2019CommunityMSBuildCurrentBinMicrosoft.Common.CurrentVersion.targets(2202,5):
warning
# 2
CSC : error CS0006: Metadata file
'C:UsersLenovosourcereposProject11Project11Project11binDebug
netstandard2.0refProject11.dll' could not be found
我已经修复了这个问题"CSC: error CS0006: Metadata file'C:UsersLenovosourcereposProject11Project11Project11binDebug '
netstandard2.0refProject11.dll'无法找到';
Visual Studio没有显示任何错误,但是当我一个接一个地浏览PageView时,我注意到我的一个"click_event_button"在xaml.cs文件中有一个不正确的名称。
希望这可以帮助到其他有同样问题的用户。