I am developing a Xamarin.Android app and need to export a field. I went to the Add References dialog to add a reference to Mono.Android.Export.dll but there are no packages in the list there. Everything I'm seeing suggests that there should be a number of assemblies available to reference. I am using Visual Studio Enterprise 2017 RC 4, Xamarin 4.3.0.664, and Xamarin.Android 7.1.0.31. I have attempted a full reinstall as well as trying to find the Mono location on disk with no results. How might I get this list to populate?
Make sure you have the Mono.Android.Export.dll in your Visual Studio / Xamarin installation:
Example Path(Enterprise version):
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\{VERSION NUMBER}\Mono.Android.Export.dll
These seem to pickup just fine on the latest stable release of VS 2017.
Related
I installed Visual Studio 2015 Community Update 3 with Xamarin, updated Xamarin and everything was working fine.
But suddenly, the Xamarin Cross-Platform templates went missing when I tried to create a new project.
I don't have these templates anymore:
I only have these ones:
What I tried:
Change
Repair
Uninstall & reinstall Xamarin
Tried this solution (delete cache.bin files): https://stackoverflow.com/a/40201478/1351076
Configuration:
Visual Studio 2015 Community Update 3
Xamarin 4.2.2.11
Question:
Anyone having this issue or a solution?
Can I download somewhere the official missing templates?
This was working for me:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\
Find the correct subfolder. This can be tricky. I had a Xamarin folder, but that was not the right one. In my case it was folder wa13kl1p.m3s.
However, open your folders and check it there is some Xamarin.Forms.Templates... files in it.
Inside that folder navigate to the T/P/CSharp folder.
Copy the Cross-Platform folder over to C:\Users\\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C#
Same thing for the ItemTemplates:
But this time navigate to T/I/CSharp folder.
Copy the Cross-Platform folder over to C:\Users\\Documents\Visual Studio 2015\Templates\ItemTemplates\Visual C#
In the current Beta channel, the templates all get merged into a "Wizard Template" instead.
Which will give you all of the same options as the separate templates gave:
However if you run into an issue where templates are not included, please ensure you check your Xamarin extension cache:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Xamarin\Xamarin
Which will have various versions such as 4.2.2.11 that you are currently on. You can then move those .vstemplate files from the .zips to your C:\Users\{username}\Documents\Visual Studio 2015\Templates\ProjectTemplates\Visual C# location.
I would highly recommend updating to the Beta channel to ensure this template is at least there before doing this.
I have encountered the following error:
The 'XamarinShellPackage' package did not load correctly.
It happens when i start Visual Studio 2015 Community Update 3 Or Visual studio 15 Preview 4.
I even reinstalled windows 10 and it doesn't help.
As asked, pasting VS info:
Microsoft Visual Studio Enterprise 15 Preview 4
Version 15.0.25618.0 PREVIEW
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Enterprise
Visual Basic 15 Preview 4 00369-50000-00000-AA551
Visual C# 15 Preview 4 00369-50000-00000-AA551
ASP.NET and Web Tools 2016 15.0.20802.0
Common Azure Tools 1.8
JavaScript Language Service 2.0
JavaScript Project System 2.0
JavaScript UWP Project System 2.0
NuGet Package Manager 3.5.0
Parallel Debugger 1.0
SQL Server Data Tools 15.1.60805.0
TypeScript 2.0.1.0
Visual Studio Tools for Apache Cordova Update 10
Visual Studio Tools for Universal Windows Apps 15.0.25618.00
Xamarin 4.1.1.8 (60e5c00)
Xamarin.Android 6.1.1.1 (7db2aac)
Xamarin.iOS 9.8.1.4 (3cf8aae)
The tooling in the version information here is a little out of date. The solution in this case was to perform a thorough uninstall of Xamarin in Windows and reinstall using the latest available Stable release. I linked #Dorad to the direct download, but you can find this by signing into Xamarin.com, navigating to the Downloads page and selecting the download from the relevant drop-down list for your OS / desired Xamarin platform:
Another quick thing people can try that worked for me was deleting the .vs folder from the root of the solution folder. Make sure VS is closed when you do it.
There is a potential workaround you may want to try while we finish up a fix for this.
Please, close all open VS instance and copy this file (note you may need to adjust the path to your specific VS instance):
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\net461\lib\netstandard.dll"
to the Xamarin extension folder:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Xamarin.VisualStudio
And then open VS and check if you can still repro.
thanks,
I had the same problem after the latest VS2017 update..I resolved uninstalling an extension (Visual Studio Bitbucket plugin) which - apparently - was in conflict with XamarinShellPackage. Removing the extension and restarting VS did the trick for me.
I have Xamarin installed on the Visual Studio 2013 on Windows Operating System. It works fine.
There is Xamarin tools in VS2013 as follows:
My problem is as follows:
I have recently installed Visual Studio 2015 on my desktop on Windows operating system. I thought when I opened the VS2015, I expected to see the Xamarin in it, but it does not. Then I installed the Xamarin again, and again and again, but still Xamarin does not show up in VS2015.
I wonder what is wrong? What am I missing?
By the way, I still have VS2013 on my desktop.
No Xamarin tools in VS 2015 as follows:
I even tried the following approach, still no luck.
Control Panel -> Programs -> Programs and Features Choose Xamarin
Click Change -> Next -> Click the desired drop down for each items in the tree view and select "Will be installed on local hard drive."
Click Next
I am even getting the following screen when installation is completed, but still I could not able to see Xamarin in VS2015.
I have installed Xamarin in my Visual Studio 2015 two days ago and it showing Xamarin under Tools. Below I have described the approach which I have followed to install Xamarin in Visual Studio 2015.
Go to Contol Panel >> Program Features >> Visual Studio
2015 >> Change>> Modify
1. Select C#/.Net(Xamarin) under Cross Platform Mobile Development
2. Check if these three red marked items are checked or not.
3. And then press update.It will download all the required packages to run Xamarin on VS 2015.Hope it helps you!!
I recently had horrendous problems trying to install Xamarin on VS2015 + Win10. (I don't have any other VS versions installed.) Even a full install and reinstall left huge holes in the installation. I tried repeatedly and each time the whole dev environment seemed to get itself in a different unusable state.
The fix for me, which is probably hitting a nut with a sledgehammer, was to:
Uninstall Xamarin (via Control Panel|Uninstall).
Uninstall Visual Studio (via Control Panel|Uninstall).
Follow Xamarin's manual uninstallation procedures Full Xamarin Uninstall.
Perform full reinstall of Visual Studio, being sure to tick the boxes shown in the answer by Parth Patel above.
This resulted in a faultless, fully functioning Xamarin environment for me. Overkill, maybe, but worth a go if all else fails.
Here is the solution:
I have deleted all the existing versions of visual studio ( 2010, 2012, 2013) except Visual Studio 2015 and then installed the Xamarin, and then I could able to see Xamarin on Visual Studio 2015.
It is not required to delete previous versions of VS. I have Xamarin Studio, VS 2013 and now VS 2015 and working perfectly. I moved to VS 2015 due to recent purchase of Xamarin by MS and that VS 2015 has Xamarin included.
I believe the issue with this question is was that your VS 2015 install did not include the add ins as pointed out in another answer in this question.
After the VS 2015 install -the only caveat was projects created initially in Xaramin Studio and then Opened in VS 2015 to needed to have the build configuration in the project tweaked. If not you could not get the project to build and then be deployed to an emulator or device for debug testing.
We have a few troubleshooting steps on our Knowledge Base that you can find here:
https://kb.xamarin.com/customer/en/portal/articles/1643349-missing-visual-studio-extensions-after-installation
Note: Some of these steps have older versions listed in the respective paths. You should use the latest version number available.
Before any install or uninstall actions. Try open some sample Xamarin project, in most cases during opening project in VS 15, it will show you, what needs to be installed or what is missing / corrupted.
Xamarin samples
I had some problems with my emulator best way to fix the problems is to uninstall everything (emulators, android sdk, vs, xamarin) and reinstall it.
It is also important to delete other or older versions of visual studio. Then you should probably see you options.
First try to uninstall all the other versions of Visual Studio (VS) 2013 in this case. Then try to reinstall Xamarin.
Visual Studio 2015 is little bit different from 2013 version, I am also using xamarin on visual studio 2015. But that is not listed under tools menu like 2013.
Maybe developers had changed that, you can go to "start a new project"(just like you start new app development), there you can find xamarin/android projects list, there you can start new android projects.
This is strange, I did not have any problem with Xamarin & VS 2015 (community).
You said,
I will see the Xamarin in it
Did you try to create a project or/and add your account in the new VS Installation ?
I've installed an update of Code Contracts but the version of Code Contracts shown in the "Extensions and Updates" window has not changed. However in project properties, the version number has changed.
Why is the current version in "Extensions and Updates" not changing and how I can fix it?
If it helps: I use Windows 7 Enterprise and Visual Studio Professional 2013
EDIT:
I restarted program and computer.
I have just installed Visual Studio 2013. I do not install older versions of Visual Studio.
On "Code Contracts" tab in project properties I see a new version number. And I think that the Code Contracts libraries are updated.
I tried to remove and reinstall Code Contracts. It doesn't help. But I don't want reinstall Visual Studio.
EDIT 2:
Extensions and Updates:
Project properties:
This seems to be an issue with the uninstaller as described in this MSDN forum thread by user Manuel Pallier
Check if you have two folders in C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\CodeContracts, one with the old version number and one with the new one.
Follow these steps to clean-up all versions and then reinstall the correct version of Code Contracts:
Uninstall Code Contracts via the control panel.
Delete the folder C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\CodeContracts.
Touch the file C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\extensions.configurationchanged (touching means updating its last modified date; just open it in an editor and save it without changes). This step is required so that Visual Studio rebuilds its extension database on the next start.
Start Visual Studio and make sure the Code Contracts extension is gone from the extensions screen.
4b. Click Uninstall if it hasn't (might be the case for 1.8.x -> 1.9.x)
Then close Visual Studio again.
Install the new version.
Start Visual Studio and make sure it shows the new version in the extensions screen.
There is a similar answer on SO from user Steven Liekens that seems to confirm that the uninstaller is flaky.
Uninstalling Visual Studio seems NOT to be the way to solve so don't go down that route.
Version 1.9.10714.2 seems to have a bad vsixmanifest file.
I did all the above and then edited
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\CodeContracts\1.9.10714.2\extension.vsixmanifest and corrected the version number.
Re-touched the extensions.configurationchanged file and VS accepted that the version installed was upto date.
I have found an Identity Version number mismatch in the manifest file after all the steps mentioned above, installing 1.9.10714.2, as you can see below:
...Identity Version="1.8.10107.10"...
I fixed the Identity Version number and I solved the problem.
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