When I try to open the layout.axml in visual studio (Xamarin). Please see the screen shot of when I try to update the Android SDK.
I am using visual studio not xamarin studio windows 10 anniversary addition.
Close all programs that use this file.
And be more attentive. Alert window told you reason and solution.
P.S.(offtop) I see that you installed your android sdk in program files, don't do that, use simple paths as "c:\android", because some packets wouldn't work properly if path contains spaces.
Try this :
close your visual studio.
go to your android sdk folder. for example ; C:\Program Files (x86)\Android\android-sdk\
open temp folder. you will see something like this : tools_r25.2.5-windows.zip / tools_r25.2.2-windows.zip.
Extract the latest version to your android sdk folder e.g; C:\Program Files (x86)\Android\android-sdk. It will replace all the files inside tools folder.
open your visual studio and try load back the axml.
Related
I am experiencing a frustrating behaviour of VS2015 Community under Windows 10.
When I create a simple Universal Blank App C# after launching and testing the code the Store menu to create the app packages and launch the certification kit is missing. I checked that my developer account is signed in, enabled developer mode on the machine, reinstalled VS checking to install Universal App development and Windows 10 SDK. Nothing enables this menu. No more options to create apps are present, just Blank App, I had more templates available under VS2013.
It is also weird that when I select to edit appmanifest it never displays the editor, just the XML, it seems like the whole app store environment is disabled. The project is not being recognized as an app.
Another big problem is that the designer does not display the XAML files to see the graphical elements. I get an error screen with tons of errors about null exceptions.
I need to port some 8.1 apps to Win10 Universal and these set of problems are driving me crazy.
Any help more than appreciated.
Possible Fix 1: "Change" the installation to make sure the VS extensions are installed
In certain situations, the Xamarin installer might automatically un-check the install options for the Visual Studio extensions. If that's the cause of the problem in your case, you can install the missing Visual Studio extensions using the installer's "Change" command. For example, if you wanted to install the extensions for Visual Studio 2013:
Open the Windows "Programs and Features" Control Panel.
Right click the "Xamarin" entry, and select "Change".
Click "Next", then "Change".
Make sure the "Xamarin for Visual Studio 2013" option is set to install:
Enable Xamarin for Visual Studio 2013 installation option
Proceed through the rest of the installer wizard.
Possible Fix 2: Ask Visual Studio to set up the extensions again
Check if the Xamarin extensions have been copied into the Visual Studio extensions folder:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Xamarin\Xamarin\3.1.228.0"
If the extensions are properly installed (for version 3.1.228), there will be 60 items in the folder:
List of 'Xamarin\3.1.228.0' folder contents in Explorer
After you have confirmed that this folder looks correct, tell Visual Studio to try setting up the extensions again:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe" /setup
Possible Fix 3: Try a fresh reinstall of Xamarin
From the Windows Control Panel, uninstall any of the following that are present:
Xamarin
Xamarin for Windows
Xamarin.Android
Xamarin.iOS
Xamarin for Visual Studio
In Explorer, delete any remaining files from the Xamarin Visual Studio extension folders (all versions, including both Program Files and Program Files (x86)):
C:\Program Files*\Microsoft Visual Studio 1*.0\Common7\IDE\Extensions\Xamarin
Also check in the "VirtualStore" directory to see if there might be any "overlay" copies of any of the extension directories:
%LOCALAPPDATA%\VirtualStore
Open the registry editor (regedit).
Look for this key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SharedDlls
Find and delete any entries that match this pattern:
C:\Program Files*\Microsoft Visual Studio 1*.0\Common7\IDE\Extensions\Xamarin
Look for this key:
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\1*.0\ExtensionManager\PendingDeletions
Delete any entries that look like they might be related to Xamarin. For example, here's one that used to cause trouble in older versions of Xamarin:
Mono.VisualStudio.Shell,1.0
Reboot.
Reinstall the current stable version of Xamarin using the individual installer (.msi) download link under Xamarin.iOS -> Windows or Xamarin.Android -> Windows on http://store.xamarin.com/account/my/subscription/downloads.
Possible Fix 4: Repair Visual Studio installation
Open the Windows "Programs and Features" Control Panel.
Right click the relevant Microsoft Visual Studio entry, and select "Change"
Click the "Repair" button in the Visual Studio dialog that opens.
link : https://kb.xamarin.com/customer/portal/articles/1643349-missing-visual-studio-extensions-after-installation
The .xap that has been generated in Visual Studio 2010(Windows SDK 7.8) seems to have the one mentioned in the wiki (http://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx) which is for Visual Studio 2012.
If I submit the app will Microsoft process the xap or not ?
If you build that xap file using the Release build and if you correctly fill all info, your app can be submitted to the store.
i installed Xamarin Enterprise edition on my computer 9 days ago. It worked fine and i have crated some projects and tested it on Emulators. But after some times- today when i come back to work, restarted computer and tried to open Android project On visual studio. It says: The project type is not supported by this installation. What is going on. What i can do?
I use Visual Studio 2010.
I tried to open Tools-> Options-> Xamarin-> Android Settings
But it shows: An error occurred loading this property page
First uninstall the Xamarin.Android plugin from the Control Panel. Then, try to completely remove the extensions from the control panel.
Remove any residual files from: %LOCALAPPDATA%\Microsoft\VisualStudio\11.0\Extensions %PROGRAMFILES%\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Xamarin
Then, re-install Xamarin.Android from the following msi file:
Xamarin.Android on Windows
I have created a setup file using install shield limited edition for visual studio 2013. and its working. my problem is that, when my customer install the application on his machine he will be able to see the whole source code. as i saw in other application installed in windows there isn't any source code in , just a .exe file and some dll's. how couild i overcome this problem and how application that use only dll files work ?
this is my destination folder :
I've got monogame working in VS 2013 but I can't get the content pipeline to work. When I try to import an existing Content pipeline Project I get the following error.
And I can't create a new project since the templates arent installed in 2013.
Since I am running windows 8 I cannot install XNA (installer stops saying it requires Win 7 or Vista). Reading here: https://github.com/mono/MonoGame/wiki/MonoGame-Content-Processing
It seems XNA is required..?
EDIT
Fex answer gets the templates installed in VS 2013 and I can create a new MonoGame windows Project. But I still cant create or open content projects as they crash with this error
Download this zip - it contains script by Eric Mattison and some other things.
Zip - sendspace link
Extract EricMattisonScript, read and do what Instructions file says.
Extract MonoGame.zip to: My documents folder/Visual studio 2013/Templates/Project templates/Visual C#/
Extract XNA Game.zip Studio to location $Location where your visual studio 2013 is installed$ ( in my case D:/Program files (x86)/Microsoft Visual Studio 2013)/Common7/IDE/Extensions
Launch "devenv.exe /Setup" in command line with administrator priviliages (it is in IDE directory)
Not sure will it work on your pc - in my case it worked.
EDIT:
edited script - try this edited script, be sure you have XNAGS40_setup in same folder and that you run it with administrator priviliages
You can use the content pipeline of SharpDX.
You put your content in the Content folder of the SharpDX solution. Build that solution and then you move the .xnb files generated to the content folder of your MonoGame project.
You could also just use a post buid event to copy the files for you.
You actually can install XNA Game Studio 4.0 Refresh on Windows 8 and 8.1. The issue is that the GFWL it tries to install won't work. So obtain a usable Distributable package, such as from a GFWL game (I believe MS also offers a standalone package), install that, THEN install XNAGS4 Refresh.
CORRECTION: I failed to mention that this does not actually install the necessary project/solution/filetypes into VS2012. See the next section for useful solutions.
ADDITIONAL INFO: At the renamed XNA CodePlex page (http://mxa.codeplex.com), there are downloads for versions of Visual Studio beyond 2010 (10.0). These downloads are ZIP files that include installers for each separate package that XNA4 installs, ending with the VS extension package installer for the relevant version of Visual Studio.
In addition, MonoGame at this point (two years later) no longer requires any XNA elements to load and compile in Visual Studio or Xamarin Studio/MonoDevelop. The tools that MonoGame uses to replace XNA Content Projects can also import them for conversion to MonoGame Content Projects.
If I'm right the Content Pipeline project is at the core a Windows Phone 7 XNA project. Since VS2013 it became unable to create or edit Windows Phone 7 nor XNA projects and thereby unable for you to open the Content Pipeline project.
For so as far as I know to create/compile the Pipeline you'll need VS2012 or VS2010.
VS2010 has XNA bundled within and for VS2012 to work you would need to download the Windows Phone SDK to enable XNA development. (this is also what I use for my Pipeline)