Moving projects between MonoDevelop and Visual Studio 2012 - visual-studio-2012

I need to be able to open a project with MonoDevelop, work on it, save it, and then open the same project with Visual Studio 2012, work on that as well, save the changes, and open with MonoDevelop again.
How would I go about doing something like that? Is there some way to export a MonoDevelop project to Visual Studio?

MonoDevelop uses the same project and solution file format as Visual Studio so you should be able to switch between the two.
If in doubt use version control for your files then you can easily undo any changes.

Related

Android Studio won't open Projects

I recently uninstalled and reinstalled Android Studio and cannot get any of my old projects to open. All my previous projects now read "no content" when I load them in the program. What steps should I take to fix this?
Instead of trying to open an existing Android Studio project, use 4th option in the welcome screen - "Import project (Eclipse ADT, Gardle, etc)". That should do.

Open Jint solution correctly

I need to open the Jint solution downloaded from here :
https://github.com/sebastienros/jint
(i've downloaded the zip with all the files, later i decompressed them and then i try to open the solution's file using visual studio)
Visual Studio (both 2012 Express and 2013 Express) tell me that the main project is not compatibile, i have tried Microsoft Visual Studio Version Selector but still not working.
Anybody can tell me why this happen and how i can open and view that solution with all its projects properly loaded?
Here a screen of my situation :
This project targets the Portable Framework. You might need to install the Windows Phone SDK or some other component depending on your version of Visual Studio. Please refer to this page for more details.

Why am I not able to open a VS project

I have a Visual Studio project that I created in my previous PC (32-bit if that makes any difference). I recently got a new PC (64-bit) and I am trying to open the project and I am seeing the following error:
Unsupported
This version of Visual Studio does not have the following project types installed or does not support them. You can still open these projects in the version of Visual Studio in which they were originally created.
- ONew, "C:\temp\onb\ONewSln\ONew\ONew.csproj"
No changes required
These projects can be opened in this version of Visual Studio without changing them. They will continue to open in Visual Studio 2010 SP1 and in this version of Visual Studio.
- ONewWeb, "C:\temp\onb\ONewSln\ONewWeb\ONewWeb.csproj"
- ONewSln, "C:\temp\onb\ONewSln\ONewSln.sln"
Screenshot:
Is there a add-on or visual studio component that I have to download to make it work?
Please help me resolve the issue.
After doing some research and spending hours banging my head against the wall, I figured out how to resolve the issue.
You have to install Microsoft Office Developer Tools for Visual Studio 2012.
Open up the Web Platform Installer and if you don’t have it installed, download and install it. Search for Office Developer Tools and install it.
This will enable you to open the project without any issue.
Usually you can open VS2010 SP1 files in VS2012. But after opening and on compiling you may get some errors of missing packages. Then you have to install the missing packages. Check this out: Visual Studio 2012 compatibilty.
Some solutions, projects, files, and other assets that you created in Visual Studio 2010 Service Pack 1 (SP1) will run without modification in Visual Studio 2012, but others have to be upgraded. The above document describes how various kinds of assets behave in these two versions of Visual Studio.
If you use both Visual Studio 2012 and Visual Studio 2010 SP1, you can create and modify projects and files in either version as long as you don't add features that require Visual Studio 2012.
VS2012 may convert projects when you first open them, but the changes are (except noted in the document linked) backward compatible with VS2010.

How to choose which version of Visual Studio gets pulled up by default?

I have VS 2012 and 2013 installed on my system.
I have a 2012 project that I want to get pulled up in VS 2013 when I double-click it from the Windows Explorer.
Is this possible?
If you only want specific slns to open in 2013, you can open the sln file in a text editor, and change the line
# Visual Studio 2012
to
# Visual Studio 2013
Note that it will ask you to upgrade the projects to 2013 when you open it for the first time. If you want all of 2013's compiler features you will have to upgrade, but if you chose not to it will still load in the 2013 IDE and you get some of the IDE related features.
Right click any solution file and select Open with... option. Use Visual Studio Version Selector as the default program to use for Visual Studio solution files.

Autocomplete when editing android layouts in Visual Studio with Xamarin

I'm currently running a latest Xamarin.Android trial installation with up-to-date Visual Studio 2012.
When opening .axml file in visual studio I can see a visual designer and can use it normally, when I switch to the "Source" tab I can see a perfectly fine layout xml with syntax highlighted and whatnot.
The problem is, that auto-complete can only suggest XML comment and CDATA elements, nothing else.
Is there a way to turn android-aware auto-complete in Visual Studio? I recall Xamarin Studio being able to auto-complete layouts, but when opening a solution, which was edited in Visual Studio, Xamarin Studio also fails to auto-suggest.
Any ideas? Thanks in advance.
EDIT: Switched to the paid version and the problem still persists in both Xamarin and Visual Studios.
In Xamarin studio you may simply right-click on axml file and select - "Open with/Source Code Editor"
Unfortunately, i can't check it in Visual Studio.
Actually you can easily add the Intellisense-like feature in visual studio for your android layout.
The step by step tutorial is here https://kb.xamarin.com/customer/portal/articles/1920119-how-do-i-enable-intellisense-in-android-axml-files-
After so many struggles, the only solution, which worked out for me after all, was to use IntelliJ IDEA or Eclipse to edit my android layouts, and writing code-behind in Xamarin Studio. Ditching Xamarin and going back to development with Java worked out even better.
For our project the best solution was to use
- VS to edit cs code
- Android studio to work with styles, layouts,...
How do we work:
Assume the project located in C:\projects\fun
Create an Android project in C:\projects\fun\AndroidStudio
Using bat script bellow create symlinks to resources folder and AndroidManifest.xml
script.bat
mklink /J C:\projects\fun\AndroidStudio\app\src\main\res C:\projects\fun\Resources
mklink /H C:\projects\fun\AndroidStudio\app\src\main\AndroidManifest.xml C:\projects\fun\Properties\AndroidManifest.xml
it doesn't require to use axml instead of xml files, designer works fine, preview too.
The Autocomplete work only on files with .axml extension.
If your file type is xml you can create new file with axml extension and copy the content of the xml old file to the new axml file (sometimes just renaming the file don't work)

Resources