简体   繁体   中英

Using statements broken after upgrading to IOS 11 Xamarin.IOS

I recently updated Xcode and Visual Studio 2017 for mac to be able to develop for IOS 11. When that happened, almost all of my code from my old project is underlined in red and eve some basic using statements seem to be broken. For example: using Foundation; using ObjCRuntime; using UIKit; using Foundation; using ObjCRuntime; using UIKit; All of these are broken and when I try to run, build, or even clean my project, I get the following error:

Error: /Users/davidshepard/Projects/NewEPA/NewEPA/NewEPA.csproj: Object reference not set to an instance of an object (NewEPA)

Is this a problem with the new version of Visual studio and Xamarin that I am unaware of. I spent about an hour scrolling through Bugzilla and couldn't find any similar issues, so it may just be that I need to configure my old project to work with the new Xamarin? Any help would be greatly appreciated!

It seems that after having updated Visual Studio, my project format was automatically set to MSBuild (Visual Studio 2012). This is what was causing the errors. I just had to Right-Click on my project ->Tools->Convert Solution Format->select MSBuild (Visual Studio 2017)->Export Hope this helps anyone who came across a similar issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM