Does anyone know how to install MonoGame on Mac. I have been looking around for a while and I can't find any guides. I have Mono and MonoDevelop up and running fine, but I cannot figure out how to install MonoGame. Thanks.
In general with MonoGame:
Download the source code off GitHub
Start a new project
Add Existing Project for MonoGame.YourPlatform.csproj and Lidgren.Network.YourPlatform.csproj
Add a reference to MonoGame with your new project
There really isn't anything to "install".
Just to update this post for modern (post MonoDevelop and .SLN,the new SDK structure) times.
The directions for VS Code and Apple Silicon are answered in this question.
Only continue reading on Intel(x64) Macs.
For Visual Studio for Mac setup and instructions:
Install Visual Studio for Mac
Install MonoGame extension for Visual Studio for Mac
Since version 3.8, the packages are NuGet based; simply update the NuGet packages in the references for the latest version.
The new dotnet SDK structure with framework and X64 vs ARM(Apple Silicon) caveats are expanded upon in this [question].
Related
When trying to connect to Mac on Visual Studio on Windows, I'm told that the version on the Mac is different and am asked by VS if I want it to install Mono on the Mac.
But the version on the Mac is newer.
From experience, I've seen that trying to do that created more trouble rather than help.
So I'd like to search for how to update the Mono version on Windows/VS, but I can't seem to find anywhere an option to do that. So I want to find out what version is "installed" on VS.
If you're going to be working predominantly on a windows machine, then let it install whatever version the visual studio wants. Sometimes windows visual studio will use a different version than mac visual studio. The environment you're working in should dictate what version you use.
I am trying to switch from Visual Studio to Rider. For that, I need Rider to be able to import a third-party SDK (ArcGIS Pro SKD from Esri). This is available in the Visual Studio Marketplace but not in Rider. I also have a vsix installer package for offline installation. There is no ArcGIS plugins in the Rider marketplace, and if installing it looks like Rider wants it in some packaged form. The SDK installation contains all sorts of librarys and templates. If i can't install them, it basically renders Rider a useless tool for me.
What are my options here? I am basically assuming that a VS plugin should work in Rider. Is this Assumption flawed?
Esri only supports VS 2017 and 2019.
https://github.com/Esri/arcgis-pro-sdk/wiki#requirements
You cannot use a .vsix installer with rider so you are out of luck with regard to official channels. You could try creating your own build target in Rider following this guide.
You want your Rider build target to point to
"C:\Program Files (x86)\MSBuild\Esri\ESRI.ArcGIS.AddIns.11.targets"
or whatever the equivalent is for the version of the Esri SDK you are using.
Good luck.
I'm starting to use MonoGame and use a MacOS Mojave. I downloaded version 3.7.1 from the official website along with the standalone pipeline(THOUGH I DOWNLOADED PIPELINE ONLY FOR ADDITIONAL TOOLS).
After installation I opened VS 2019 and checked the project template and no new MonoGame template.
I thought that it should work right away? Do I need to download an older VS version?
It doesn't seem to work for now, but you cann use one of the those two work around:
1) If you already have VS2017 installed, you can copy the templates to the 2019 folder and they will appear in the laqunch.
%USERPROFILE%\Documents\Visual Studio 2017\Templates\ProjectTemplates\Visual C#\MonoGame
to
%USERPROFILE%\Documents\Visual Studio 2019\Templates\ProjectTemplates\Visual C#\MonoGame
2) You can create it using the following commands:
dotnet new --install MonoGame.Templates.CSharp
dotnet new mgdesktopgl -o MyGame
I updated Visual Studio on Mac and after it tried to start, it told me I need to install Mono and directed me to a web page for that. I installed Mono. Now every time I launch Visual Studio, it just says
Could not launch Visual Studio
This application requires Xamarin.Mac native library side-by-side.
Please download and install the latest version of Mono.
I tried restarting but that didn't help.
What now?
(I'm running the latest macOS, and updated XCode if that matters. Mono is 5.4.0.201.)
New EDIT:(2022)
Users are saying there's a better way than uninstalling and reinstalling. I haven't tested it myself. See comments and answers for more information.
Previous EDIT:
Uninstalling and reinstalling is still the only way as the answer suggests, on: 2019:
March
July
August
September
The fastest and easiest way will be to uninstall and reinstall Visual Studio.
I have just ran into the same problem. I did follow the alert instructions and installed the newest mono framework from Mono websites (6.10.0). After this still the same issue. So I downloaded and ran VS4M installer and it said, it need version 6.8 of Mono framework and it did offer me to download and install this "update". So i went ahead. Still the same warning after launching VS.
Desperately enough after reading this thread I started looking for uninstall instructions (on official site). I did not want to use the script to auto-uninstall as I rather do it all by myself just for ensuring it will be everything done properly. So manual uninstall said to delete the Visual Studio app from /Application folder first. I did it. And woala: All the sudden the new app called "Visual Studio (old)" appeared (or maybe it was there already but I did not notice? Anyway, it was there). It was certainly weird, but I ran it. And it did work! Working instance of Visual Studio! I did check the updates and there was one for the app only. That was my first step straight after launching. It did download the new update and installed it correctly. Now I have end up with fully working and fully updated version of VS4M!
Conclusion:
Use VS4M installer to install all updates and necessarities to run VS4M. After this go to your /Application folder and delete "Visual Studio" app. The "Visual Studio (old)" app should appear. Run this app and update it straight away. (you might have to rename it afterwards from "Visual Studio (old)" to "Visual Studio")
Did you try going to the Applications folder? You'll see a Visual Studio.app file there and you can run Visual Studio by opening that.
I have sovled the problem by brew install --cask mono-mdk rather than brew install mono, in case anyone is installing mono through brew.
I`ve installed Xamarin (Xamarin studio, Xamarin.Android) But there are some problems with building even the simpliest project(just create new project->Build->Get an error).
After some googling I found that I`m not the only one experiencing such problems.
The only solution I found is to revert to an earlier version of Xamarin.Android. But how do I do this? Can anyone help, please?
Current version of Xamarin.Android is 4.8.0
Desired version to rollback to is 4.6.6
I've talked to Xamarin about downgrading. It's not straight-forward. You will need to uninstall everything from Add and Remove Programs and then re-install directly from the following .msi's:
JDK 1.6: http://download.xamarin.com/Installer/MonoForAndroid/jdk-6u39-windows-i586.exe
Android SDK: http://dl.google.com/android/installer_r22-windows.exe
GTK#: http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.21.msi
Xamarin Studio: http://download.xamarin.com/studio/Windows/XamarinStudio-4.0.8.msi
Xamarin.Android for Visual Studio and Xamarin Studio: http://download.xamarin.com/MonoforAndroid/Windows/mono-android-4.6.08007.msi
Xamarin.iOS for Visual Studio: http://download.xamarin.com/MonoTouchforVisualStudio/Windows/mtvs-1.1.200.0.msi
I downgraded monodroid multiple times because of issues with performance. I did not have to uninstall and re-install everything.
Control Panel > Programs and Features > Uninstall Xamarin.Android.#.#.####
Download msi http://download.xamarin.com/MonoforAndroid/Windows/mono-android-4.6.08007.msi
Install
easiest way of doing is as described here
Download links
Links for the recent individual installer packages can be found on https://store.xamarin.com/account/my/subscription/downloads.
In most cases, uninstalling is not even neccessary. just download the version you want to install and it will handle uninstall-install together.