2017-05-03 60 views
1

我有一個「file-> new project-> new asp.net core mvc」(.net Core 1.1)並安裝了兩個Nuget包:類型x存在於y和z中(Visual Studio 2017和.net Core)

  • System.Globalization
  • System.Text.Encoding

所看到Solution Explorer中的兩個版本4.3。該錯誤涉及較低版本4.2。 csproj也引用了4.3版本。那麼4.2裁判在哪裏? enter image description here

如果我卸載4.3.0版本,我收到了4.0.10和4.2.0衝突......

blabla.cs(117,23):錯誤CS0433:類型「編碼「存在於兩個 'System.Text.Encoding,版本= 4.0.10.0文化=中性公鑰= b03f5f7f11d50a3a' 和 'System.Runtime,版本= 4.2.0.0,文化=中性公鑰= b03f5f7f11d50a3a'

編輯這也許是browserlink相關的,如果是的話,我該如何解決它? https://stackoverflow.com/a/43571044/169714

edit2 @Ilya Chumakov引用了這個其他的stackoverflow主題。所以,我搜索了全球化或編碼解決方案資源管理器,我的一切都爲4.3(這是的NuGet版本) enter image description here enter image description here

+0

類似問題:http://stackoverflow.com/questions/43757769/error-cs0433-the-type-webutility-exists-in-two-places –

回答

相關問題