Visual Studio for Mac 安装
有一周时间没有更新博客了,最近这段时间真是苦不堪言,上周四晚上,一杯水将我的MBP报废掉了,开机状态,键盘进水,当场就关机了,很担心当时爆炸了,幸好还只是关机,然后就。。。没有然后了。第二天插电源可以开机,不插电源没法开机,拿到百邦售后服务检测,结果电源已坏,主办多处有烧的痕迹,给我报价,总共需要花4300元,我心已崩溃,不知所言,我说算了吧,不修了,修的钱足够可以买一台新的电脑。电脑刚买一年,就这样报废了,更可怜的是上上周刚换的硬盘,花了1500大洋,真是痛心不已,晚上坐上回山东的高铁,百邦给我打电话说要回收,中间多次要价,最终报废电脑以3800块钱的价格成交,值不值的也就这样了吧,可是不能没有本本用啊,当机立断,看了看转转上的新机,挑了一台价格便宜的,全新未拆的2016款MBP+TouchBar ,13寸+8G+256G,以11000的价格收入囊中,省掉了2888块钱,也算是可以,卖家是老乡山东人,也痛快,虽我是一名.Net开发人,但是偏爱苹果,有点外貌协会,毅然决然的选择了苹果,由于是USB-C接口,又买了一个转接头,才插上了我的U盘,移动硬盘,虽然做什么都有点麻烦,但是比起喜欢,这又算得了什么。
今天的内容是如何安装VS for Mac,我不知道你们安装时是否也遇到问题,也不知道是不是我的网太垃圾的问题,想想还是有必要记录一下吧,不能保证以后会重新装,因为我有点强迫症,要想装什么东西,都必须要全装,不管我是不是能用到,看着那一个个的红色感叹号我就难受,安装步骤:
1、首先安装Visual Studio for Mac Preview Installer(下载地址大家去官网下载就可以了),如图:
下一步,点击安装:
勾选同意继续安装,会出来如下界面:
大家可以通过此图看到安装发生错误,具体文本如下:
It was not possible to complete an automatic installation. This might be due to a problem with your network, proxy servers or an unsolvable installation conflict. At this point, you can continue the installation by manually downloading and installing the independent pieces. The list below shows each component that you need to install.
Mono Framework
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. Java SDK
Mac OS X uses its own version of Java and in order to install it you need to start the terminal app and type the following command:
javac -version
After typing it you should see a Mac OS X system popup which will guide you to install the Java software.
Android SDK
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/allen/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: Android SDK Tools
Android SDK Platform-tools
Android SDK Build-tools
Android API 15
Android API 19
Android API 21
Once all the required components are selected (you can select others as well, if you wish) start the installation.
If you cannot see /Users/allen/Library/Developer/Xamarin/android-sdk-macosx in Finder please click here to reveal the directory in Finder. 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/allen/Library/Developer/Xamarin/android-ndk directory. 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. Visual Studio for Mac Preview
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. Xamarin.Android
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. Xamarin.iOS
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. Xamarin.Mac
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.
出现这样的错误,解决办法就是按照提示内容,将所需要下载的模块下载下来单独安装就好了,在这里有两个地方是需要注意的,是关于Android SDK和Android NDK的放置问题,其他的只要下载下dmg文件直接单独安装就可以,重点说一下Android SDK和Android NDK。
首先Android SDK 下载完成后,我这里是这样一个压缩包:android-sdk_r24.4.1-macosx.zip 直接解压,将解压后里面的内容放到上面橙色的提示的文件路径下:
/Users/allen/Library/Developer/Xamarin/android-sdk-macosx
可以看到此处两个文件目录是不一样的,在下载的包中缺少了platform-tools文件夹,由于我们是需要手动配置Android SDK的位置,需要打开VS for Mac ,
当我直接使用下载的包解压后的文件的时候,配置的sdk会提示无法在此位置找到SDK,猜测应该是platform-tools文件,此时可以运行tools文件里的android程序,进行下载sdk,可以不需要全部下载完成,在安装错误的提示内容中“
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.
”是这样写的,当然这句话的主要意思还是,你可能需要很多的模拟器镜像,可以进行安装,但这个操作任何时候都可以,所以这个地方,你可以先运行android,只安装一部分,我猜测应该是只要有了platform-tools文件就可以了,这个时候再配置s d k路径,就会提示在指定位置找到了SDK 了。
另外下面Java SDK(JDK)这个直接下载安装即可。
最有点折腾了就是这个Android NDK ,这个下载后是一个bin包,android-ndk-r10e-darwin-x86_64.bin,下载完后需要解压,解压并不是直接打开的方式解压,而是通过命令行解压,命令如下:
1、获取文件权限:
chmod a+x android-ndk-r10e-darwin-x86_64.bin 注意这时文件位于系统的根路径,执行完成后,执行下一条命令:
2、解压文件
./android-ndk-r10e-darwin-x86_64.bin 解压完成后是一个:android-ndk-r10e文件,将这个文件拷贝到:
/Users/allen/Library/Developer/Xamarin/android-ndk。目录下,如图:
然后在VS中配置NDK的位置:/Users/allen/Library/Developer/Xamarin/android-ndk/android-ndk-r10e
至此,大功告成。另外如果是IOS的开发,则需要安装Xcode,安装完成后,Apple SDK位置会自动配置完成。关于Android的各个系统版本的模拟器,需要自己运行Android SDK Manager 下载了。
这一篇博客只记录这些内容,这周要开始继续之前的.Net Core了,最近工作一直忙,电脑也加上报废了,浪费了好多时间,晚上继续还得安装Windows环境,实在是痛苦至极!!!
Visual Studio for Mac 安装的更多相关文章
- Visual Studio for Mac 安装无响应或者无法连接网络等解决方法
1.无法连接到网络 2.点击安装和更新无响 这两种情况造成的原因都是由于被墙的原因,第一种情况有部分可以通过fq解决,第二种情况是我遇到过的 反正我全局也失败 这里给出一个我自己用过的解决方案 查看控 ...
- Visual Studio for Mac 安装时无法连接到网络等问题
问题: 1.下载 vs for mac 离线安装包 离线下载地址https://download.microsoft.com/download/3/d/4/3d42f40f-4f0a-4613-920 ...
- visual studio for mac 安装文件
安装步骤参考: http://jingyan.baidu.com/article/00a07f3869b81082d028dca8.html 所需安装文件:[注 我只下载了javajdk, 需要and ...
- Xamarin+Prism开发详解四:简单Mac OS 虚拟机安装方法与Visual Studio for Mac 初体验
Mac OS 虚拟机安装方法 最近把自己的电脑升级了一下SSD固态硬盘,总算是有容量安装Mac 虚拟机了!经过心碎的安装探索,尝试了国内外的各种安装方法,最后在youtube上找到了一个好方法. 简单 ...
- visual studio for mac的安装初体验
微软2016 Connect 大会发布了visuo studio for mac的pre版本,由于工作原因,现在工作环境是mac,虽然开发现在是在用python,但一直关注着.net的发展,于是自己很 ...
- Visual Studio for Mac Preview离线下载安装
Visual Studio for Mac离线下载安装. 环境:OS X EI Caption 10.11.2 .NET Core SDK 1.1 需预先安装 .NET Core 1.1 SDK ma ...
- Visual Studio for Mac离线安装教程
Visual Studio for Mac离线安装教程 可以在线安装,也可以离线安装(本次安装博主使用离线,在线安装失败了) 据说翻个墙就可以,有条件的就翻吧 没条件的我于是选择离线安装………… 离线 ...
- Visual Studio for Mac 简介
2016-12-13 Hutchinson 微软中国MSDN 在 11 月举行的 Connect(); 上,Microsoft 将推出 Visual Studio for Mac 预览版.这是一个激动 ...
- Install Visual Studio For Mac Preview
在Hack News上看到Visual Studio For Mac Preview的链接,上面有许多评论,纪录下尝鲜安装过程. 第一次尝试 VisualStudioforMacPreviewInst ...
随机推荐
- JavaScript数据结构与算法-数组练习
一. 创建一个记录学生成绩的对象,提供一个添加成绩的方法,以及一个显示学生平均成绩的方法. // 创建一个记录学生成绩的对象 const Students = function Students () ...
- [转载]$(document).ready(function(){});
转载自:http://www.cnblogs.com/king-sheng/archive/2012/01/06/2313980.html $(document).ready(function() 页 ...
- 让VisualStudio Profiler捕捉执行的sql语句
启动Profiler之前设置一下Targets的属性就行,图中有说明.
- Ubuntu部署jmeter
一:ubuntu部署jdk 1:先下载jdk-8u74-linux-x64.tar.gz,上传到服务器,这里上传文件用到了ubuntu 下的 lrzsz. ubuntu下直接执行 sudo apt-g ...
- 修改impala表location
两种方式: 一.通过修改表DDL: alter table t_m_cc set location 'hdfs://heracles/user/video-mvc/hive/warehouse/t_m ...
- 007-搭建框架-开发AOP框架
一.代码地址 https://github.com/bjlhx15/smart-framework.git 二.代码编写 2.1.定义切面注解 增加Aspect注解 package com.lhx.s ...
- document.documentElement和document.body区别以及获取浏览器的宽高
原文:http://www.jb51.net/article/41410.htm 1.区别: body是DOM对象里的body子节点,即 <body> 标签: documentElemen ...
- Linux服务器iops性能测试-iozone
1. 选用工具: iozone 下载地址:http://www.iozone.org/ (直接下载rpm包) 2. 工具安装: 执行命令: rpm -ivh iozone-3-40 ...
- sublime text C++
几乎每一门编程语言都是从"Hello, world!"学起的, 刚学编程的时候感觉有点枯燥, 对它不够重视. 可是到后来慢慢发现, 几乎我学到的每一个知识点, 在最开始都是经过 h ...
- sublime text3自动同步左边栏颜色背景为编辑栏颜色
下面的步骤需要安装Package Control插件,如果你已经安装,可跳过本步骤,直接看第二步. 第一步:安装Package Control插件: 按Ctrl+`调出console(注:安装有QQ输 ...