I am new to Xamarin and downloaded a few sample Xamarin.Forms projects such as this to learn. However, every project I downloaded and opened is full of errors like the one shown in this screenshot. My problem is that although my Visual Studio 2013 displays a ton of errors and warning, I can still run these projects just fine on the emulators (I tried both android and windows phone).
Is there some way to fix my visual studio so that syntax/compiler error messages won't show up?
Related
I installed Unity 2020.3.1f1 and upgraded one of my Unity projects to this version from 2019.2.12f1. In the Unity Editor the upgraded project built and ran and everything seemed fine.
However, when the project was opened Visual Studio 2019 hundreds of errors were flagged - the majority being CS0518 errors with messages like "Predefined type 'System.String' is not defined or imported".
Editing the Project code in Visual Studio is now impossible!
How do fix this problem?
I was able to correct this problem as follows:
Close Visual Studio
In Unity Editor 2020.3.1f1 : Edit->Preferences->External Tools
Button under Generate .csproj files Regenerate Project Files
After running Regenerate Project Files I opened Visual Studio 2019 again and the floods of CS0518 errors were gone. The VS projects behaved normally.
I have been looking around for hours and going back in circles.
I built an iOS app using Visual Studio (Xamarin.iOS) and as long as my Visual studio is connected to my Mac, I can build the solution and work on it. Same seems to be the case for watchOS and Apple tvOS as well but I am unable to find macOS app template in Visual Studio (Windows) - As shown in the following screenshot
Where I have installed Xamarin.Mac SDK as shown in the following
screenshot
Is it just not possible or am I having a bad day? If I can recall my previous installation of Visual Studio did have macOS (Or I might just be losing my mind). Any help is appreciated.
All of our Xamarin devs (4 on the team) have started to experience the same error while opening Xamarin.Forms iOS-specific project in Visual Studio 2015. The project fails to load with an error dialog like this:
Clicking install will trigger the installer that will:
but then, since obviously Xamarin iOS is installed, will say that nothing new is there to install:
So basically, the mystery of why Xamarin iOS project won't open remains. Any hint would be greatly appreciated.
So I'm trying to do what I think is a very simple thing: generate a Windows Phone app with PhoneGap and open it in Visual Studio. On a totally fresh Windows installation (via Bootcamp), I've:
Downloaded Visual Studio Express 2013 for Windows (the very first download button: http://developer.windowsphone.com/en-us/downloadsdk)
Created a PhoneGap Windows Phone app per the Getting Started guide.
However, every time I try to open the csproj file, I keep getting this error:
Unsupported
This version of Visual Studio is unable to open the following projects. The project types may not be installed or this version of Visual Studio may not support them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK.
- HelloWorld, "C:\BodBot\BodBot-PG\BodBot\platforms\wp8\HelloWorld.csproj"
No changes required
These projects can be opened in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing them.
- HelloWorld, "C:\BodBot\BodBot-PG\BodBot\platforms\wp8\HelloWorld.sln"
No matter what I do. It works totally fine on Visual Studio 2012 for Windows Phone. I've tried it on VS 2013 for Desktop, and that doesn't work either. No clue what is happening here, and don't know even where to start to figure out what's wrong. I've Googled extensively to no avail; basically all instances of this error seem to have to do with previous version of VS. Pointing in any direction would be very much appreciated.
Turns out Update 2 wasn't getting installed correctly. I ended up installing Visual Studio and the Update 2 separately and Update 2 got installed successfully. Everything works now.
To build Multi device hybrid (Cordova tooling) apps with Visual Studio, you need to have Visual Studio 2013 Update 2 - Professional, Ultimate, or Premium.
Visual Studio 2013 Update 2: Global Apps e Android/iOS App
Visual Studio 2013 Professional crashes when I try to open the Debug tab in the properties panel of a Windows Phone 8 project. No error given only "Microsoft Visual Studio 2013 has stopped working". Attached Visual Studio as a debugger and got the following error:
An unhandled exception of type 'System.NullReferenceException' occurred in Microsoft.VisualStudio.SmartDevice.ProjectSystem.Base.dll
I'm running Visual Studio as an Administrator
I have the same problem with a very weird behavior. The first time I create a WP8 project in VS2013 I have all the options for emulators, the designer, the devices and even the debug tab of the project working fine. All the markup of the mainpage.xaml is ok. If I close and reopen a new instance of the project in visual studio 2013, everything start having problems: I can not open the debug tab, the emulators optios are gone, the device windows appear in read only mode, The markup of the xaml says an "Invalid Markup" and got errors like:
The name "PhoneApplicationPage" does not exist in the namespace "clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone".
BUT: It compiles and run in the emulator.
I also DO have all the Xamarin tools installed. It seems I am not getting this errors in Visual Studio 2012.
SOLUTION: From Xamarin Studio check for update and install the android SDK 4.10.2 and GTK# (2.12.0.0). At the time of this writing you have to subscribe to the BETA Channel to get this update. After installation you DONT have to delete de .suo file of the project and everything looks fine again in Visual Studio 2013