如何在Visual Studio 2015中修复错误代码CS0433

马丁尼

我有一个在Visual Studio中编写过一些代码的朋友。但是,当我运行他的代码时(使用git获取代码后),我得到了错误代码CS0433。奇怪的是,我们团队中的另一个人可以得到完全相同的代码,并可以在他的计算机上正常运行它。这是错误的屏幕截图:

单击此处获取更大的图片

在此处输入图片说明

更奇怪的是,另一个在不同分支上工作的朋友在运行代码时也遇到错误CS0433。但是我可以在计算机上正常运行它。

我尝试了几件事都无济于事。

  • 重建解决方案
  • 清洁溶液
  • 手动删除bin和obj文件夹,然后执行清理/重建

I looked around the web for a solution. I found some people with similar problems, but theirs are in ASP.NET and not .NET. See here and here.

I have also taken a look at the documentation at MSDN on error CS0433. But I'm a beginner find MSDN's explanations very cryptic...

Is there anyone who has an idea as to what is causing this problem and/or a solution on how I can fix it?

If you need additional information feel free to write a comment. I will supply it as fast as I can.

Jim

You have references to dotnetcore50, and system.dll. This is causing (I think) most of the problems.

Try removing all the dotnetcore50 references. Start with vanilla .NET and try and migrate to the core libraries slowly. This [blog.marcgravell.com/2015/11/… might help.

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章