MAC java
第一步:從微軟官網下載:https://www.visualstudio.com/vs/visual-studio-mac/android
第二步:安裝軟件過程出現ios
Download the Mono Framework v4.8.0 archive to any directory on your disk, double-click it and follow the instructions on screen. Please accept all the defaults during the installation, including the target drive.shell
Download the Android SDK for Mac OS X version 24.4.1, open the downloaded archive and copy the contents of the folder found at its root directory (most probably named android-sdk-macosx) to the /Users/cong/Library/Developer/Xamarin/android-sdk-macosx directory.數據庫
Click here in order to start the Android SDK Manager application. In the GUI make sure the following components are installed or selected for installation:macos
Once all the required components are selected (you can select others as well, if you wish) start the installation.If you cannot see /Users/cong/Library/Developer/Xamarin/android-sdk-macosx in Finder please click here to reveal the directory in Finder.windows
Download the Android NDK for Mac OS X version r10e, open the downloaded archive and copy the contents of its root directory (most probably named android-ndk-r10e) to the /Users/cong/Library/Developer/Xamarin/android-ndk directory.mvc
When the Android SDK installation is finished you might want to start the Android Emulator Manager and create as many emulator images as you might need for your development. This step can be performed at any time, on an as-needed basis.app
Download the Visual Studio for Mac Preview v7.0.0 archive to any directory on your disk, double-click it and then drag and drop the Visual Studio for Mac Preview icon to the Applications folder.框架
Download the Xamarin.Android v7.1.0 archive to any directory on your disk, double-click it and follow the instructions on screen. Please accept all the defaults during the installation, including the target drive.
Download the Xamarin.iOS v10.4.0 archive to any directory on your disk, double-click it and follow the instructions on screen. Please accept all the defaults during the installation, including the target drive.
Download the Xamarin.Mac v3.0.0 archive to any directory on your disk, double-click it and follow the instructions on screen. Please accept all the defaults during the installation, including the target drive.
(這裏沒有用到移動端只須要下載:Mono Framework v4.8.0 archive Visual Studio for Mac Preview v7.0.0 archive 這2個包就能夠,其餘都是開發跨平臺包)
3、激動人性時刻到來,打開vs,界面很是簡潔,去除vs不少冗餘功能,感受舒服不少。。。。
4、新建一個mvc項目,會提示你要在線安裝支持mvc類庫,是從nuget下載dll??
Windows
若是將上面代碼放到windows系統,結果會怎麼樣呢?
環境:win10+vs2015 編譯正常,運行也正常
上面那些只是小試牛刀,下面是見證奇蹟時候,直接把以前項目【不鏈接數據庫】丟到mac vs運行
竟然報錯,完全把我驚呆了Operation is not supported on this platform. 這個操做不支持此平臺。。。這個是預覽版上bug?
對於出現問題,能夠用如下幾種方案
1:重啓vs,重啓電腦,卸載項目從新加載(成功一次,後來不知道爲啥不行。。。)
2:so上面有人說是debug模式問題,我切換編譯仍是報錯。(失敗)
3:google一下說多了pdb文件,我清理一下整個解決方案,把全部bin目錄刪除,編譯仍是報錯。。。(失敗)
4:切換目標框架 (成功一次,以後失敗就無法成功過了)
會不會是Mono4.5沒有所有移植過來類庫?因而這個設置一下4.5.1 4.5.2,我在windows是net4.5,編譯一下,依然報錯。 我切換4.6.1一下編譯 成功了。。。。
(然而我高興太早了,準備想重現這個問題操做,備份一下csproj文件,還原以前舊版本csproj,而後一路報錯下去解決不了,把正確csproj替換也不行)
5:mac上新建一個mvc項目,把代碼拷貝過去(若是全部方法試過都不行,此方案是百試百靈,強烈推薦)
6:我舊項目對比一下5新建項目csproj,改了一摸同樣也不行,fk(失敗,不知道爲啥)
本人在項目採用第5個方案,Sorry,時間有限,暫時分析不出報錯緣由具體在哪裏...
最後想說:vs在mac操做加入【未包括項目文件】很蛋疼。。
測試Demo:http://files.cnblogs.com/files/walleyekneel/VSForMacTest.zip
2 vs mac-工具體驗吐槽
3 vs mac-加入數據庫訪問項目
4 vs mac-ios開發
5 vs mac-安卓開發
6 vs mac netcore體驗