有一周时间没有更新博客了,最近这段时间真是苦不堪言,上周四晚上,一杯水将我的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 安装的更多相关文章

  1. Visual Studio for Mac 安装无响应或者无法连接网络等解决方法

    1.无法连接到网络 2.点击安装和更新无响 这两种情况造成的原因都是由于被墙的原因,第一种情况有部分可以通过fq解决,第二种情况是我遇到过的 反正我全局也失败 这里给出一个我自己用过的解决方案 查看控 ...

  2. Visual Studio for Mac 安装时无法连接到网络等问题

    问题: 1.下载 vs for mac 离线安装包 离线下载地址https://download.microsoft.com/download/3/d/4/3d42f40f-4f0a-4613-920 ...

  3. visual studio for mac 安装文件

    安装步骤参考: http://jingyan.baidu.com/article/00a07f3869b81082d028dca8.html 所需安装文件:[注 我只下载了javajdk, 需要and ...

  4. Xamarin+Prism开发详解四:简单Mac OS 虚拟机安装方法与Visual Studio for Mac 初体验

    Mac OS 虚拟机安装方法 最近把自己的电脑升级了一下SSD固态硬盘,总算是有容量安装Mac 虚拟机了!经过心碎的安装探索,尝试了国内外的各种安装方法,最后在youtube上找到了一个好方法. 简单 ...

  5. visual studio for mac的安装初体验

    微软2016 Connect 大会发布了visuo studio for mac的pre版本,由于工作原因,现在工作环境是mac,虽然开发现在是在用python,但一直关注着.net的发展,于是自己很 ...

  6. 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 ...

  7. Visual Studio for Mac离线安装教程

    Visual Studio for Mac离线安装教程 可以在线安装,也可以离线安装(本次安装博主使用离线,在线安装失败了) 据说翻个墙就可以,有条件的就翻吧 没条件的我于是选择离线安装………… 离线 ...

  8. Visual Studio for Mac 简介

    2016-12-13 Hutchinson 微软中国MSDN 在 11 月举行的 Connect(); 上,Microsoft 将推出 Visual Studio for Mac 预览版.这是一个激动 ...

  9. Install Visual Studio For Mac Preview

    在Hack News上看到Visual Studio For Mac Preview的链接,上面有许多评论,纪录下尝鲜安装过程. 第一次尝试 VisualStudioforMacPreviewInst ...

随机推荐

  1. ORACLE中RECORD、VARRAY、TABLE的使用具体解释

     1     说明 1.1       RECORD 定义记录数据类型. 它类似于C语言中的结构数据类型(STRUCTURE).PL/SQL提供了将几个相关的.分离的.基本数据类型的变量组成一个总 ...

  2. vue_router打包(webpack)

    把组件按组分块 有时候我们想把某个路由下的所有组件都打包在同个异步 chunk 中.只需要 给 chunk 命名,提供 require.ensure第三个参数作为 chunk 的名称: require ...

  3. 2.5 使用ARDUINO做主控,手机发送短信控制开关LED

    需要准备的硬件 MC20开发板 1个 https://item.taobao.com/item.htm?id=562661881042 GSM/GPRS天线 1根 https://item.taoba ...

  4. mysql终结篇

    一.mysql中not null unique和primary key 的区别 1.not null unique 是给一个字段设置非空且唯一的特性,当表中字段没有设置primary key的主键特性 ...

  5. MVC4 中使用 Area 和 注意的地方

    在MVC项目中经常会使用到Area来分开不同的模块让项目结构更加的清晰. 步骤如下:  项目 –> 添加 -> 区域 (Area)  输入 Admin 添加成功后 Area包含:创建一个空 ...

  6. 基于 普通及Lambda方式实现策略模式

    什么是策略模式 策略模式代表了解决一类算法的通用解决方案,你可以在运行时选择使用哪种方案.比如如何使用不同的条件(比如苹果的重量,或者颜色 )来筛选库存中的苹果.你可以将这一模式应用到更广泛的领域 , ...

  7. 解决PowerDesigner 反向工程没有注释(备注)

    1. 列注释 原来代码: {OWNER, TABLE, S, COLUMN, DTTPCODE, LENGTH, SIZE, PREC, COMPUTE, NOTNULL, IDENTITY, DOM ...

  8. mtime、atime、ctime基本解释

    不罗嗦 Access time.Modify time.Change time,也就是访问时间.修改时间和状态时间. >修改时间:文件的内容被最后一次修改的时间,我们经常用的ls -l命令显示出 ...

  9. SOA宣言和微服务特点

    如果从概念层来看,我更喜欢把SOA归为企业架构的范畴,从企业架构出发把业务分解为不同业务域的服务,关注系统间的服务互联互通的规范,并不关心如何实现.也就是说在企业架构上使用SOA支撑业务,而在方案架构 ...

  10. perspective 能玩点什么

    今天看又在看张鑫旭的博客,本来是在玩 transform:Matrix() 的,有讲到单个变化的矩阵设置,但多个变化的就不是那么回事了. 不过这都不是事啦,人生嘛,显然总会有些难关不是轻易能过去的,反 ...