Visual Studio for mac从入门到放弃1
MAC
第一步:从微软官网下载:https://www.visualstudio.com/vs/visual-studio-mac/
第二步:安装软件过程出现
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.
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 -versionAfter typing it you should see a Mac OS X system popup which will guide you to install the Java software.
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:
- 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/cong/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/cong/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.
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个包就可以,其他都是开发跨平台包)
三、激动人性时刻到来,打开vs,界面非常简洁,去除vs很多冗余功能,感觉舒服很多。。。。
四、新建一个mvc项目,会提示你要在线安装支持mvc类库,是从nuget下载dll??
五 运行 微软66666
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体验
Visual Studio for mac从入门到放弃1的更多相关文章
- Visual Studio for Mac 简介
2016-12-13 Hutchinson 微软中国MSDN 在 11 月举行的 Connect(); 上,Microsoft 将推出 Visual Studio for Mac 预览版.这是一个激动 ...
- Xamarin+Prism开发详解四:简单Mac OS 虚拟机安装方法与Visual Studio for Mac 初体验
Mac OS 虚拟机安装方法 最近把自己的电脑升级了一下SSD固态硬盘,总算是有容量安装Mac 虚拟机了!经过心碎的安装探索,尝试了国内外的各种安装方法,最后在youtube上找到了一个好方法. 简单 ...
- 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的安装初体验
微软2016 Connect 大会发布了visuo studio for mac的pre版本,由于工作原因,现在工作环境是mac,虽然开发现在是在用python,但一直关注着.net的发展,于是自己很 ...
- Install Visual Studio For Mac Preview
在Hack News上看到Visual Studio For Mac Preview的链接,上面有许多评论,纪录下尝鲜安装过程. 第一次尝试 VisualStudioforMacPreviewInst ...
- Visual Studio for Mac 初体验
你喜爱的 IDE,现在可用于 Mac 来自:https://www.visualstudio.com/zh-hans/vs/visual-studio-mac/ 惊不惊喜?意不意外?惊喜但不意外,因为 ...
- 在Visual Studio for Mac中使用fastlane管理iOS的provision
Xamarin开发中,最烦的就是provision的管理了. 全手工的话,要先创建一个key,上传后生成cert文件,再创建provision.如果在手机上调试,还要把手机加到provision中去. ...
- 解决Visual Studio For Mac Restore失败的问题
之前就了解到微软出了mac版的VS,没太多的关注,自己也就是使用 DotNet Core SDK + VS Code 做一些小demo. 前两天发布了DotNet Core 2.0 ,Visual S ...
- 【深色模式】macOS Mojave+Visual Studio for Mac+FineUICore多图赏析!
全面开启深色模式,今早成功升级到 macOS Mojave,下面就来欣赏一下吧. 点击图片,查看大图 1. 下载 macOS Mojave 2. 安装成功,开启深色模式 3. 来一张桌面截图 4. 开 ...
随机推荐
- 通过BeanFactoryPostProcessor来获取bean
一.现在我们很多时候都在spring的容器中,进行bean的提取和操作,但是配置里面首先需要扫描相应的包来实现相关bean的注入 但是问题来了.如果我们在另外一个线程需要用的时候,并且没有配置扫描该类 ...
- python打造文件包含漏洞检测工具
0x00前言: 做Hack the box的题.感觉那个平台得开个VIp 不然得凉.一天只能重置一次...mmp 做的那题毒药是文件包含漏洞的题,涉及到了某个工具 看的不错就开发了一个. 0x01代码 ...
- 765. Couples Holding Hands
▶ n 对夫妻共 2n 个人随机坐成一排,“交换其中某两人的位置” 称为一次操作,求最少的操作此次数,使 n 对夫妻两人都相邻.初始座位为非负整数列 D1n-1,其中值为 2k 和 2k+1 的两个元 ...
- ASPxGridView删除、添加、修改成功后,弹出提示对话框的方法
分为几步: 1.在aspx文件中添加 function EndCallBack(s, e) { if (s.cpAlertMsg != "" && s.cpA ...
- lammps模拟化学反应(1)
1. Can I use lammps to chemical reaction systems?Please note that you can only get as good an answer ...
- java文档打包成压缩包并且下载
需求,根据产品ID查询产品详情,产品详情会返回产品的一些文案,以及图片的url.需要做成,将文案信息记录在一个txt文档中,然后图片下载到文件夹,最后下载到本地,下载后自动删除刚才生成的文件夹以及文件 ...
- 图片放大镜——jQuery插件Cloud Zoom
下载地址:cloud_zoom.rar 图片放大镜效果是一种不错的效果,多应用于电子商务.图片展示等网站,给用户带来更好的体验.实现这种效果的代码不少,今天要给大家介绍的是 Cloud Zoom,它是 ...
- Vue.js基础知识
<!DOCTYPE html> <html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml&q ...
- Vue 路由缓存
问题 在路由切换时不需要每次 点击都刷新子路由 尤其是在form表单的情况下 不能让用户 输入一半之后点击其他页面 再点回来 表单数据不见了 解决方案 vue 2.0 之中 有k ...
- Golang作用域—坑
先举个栗子,全局作用域变量,与 := 符号声明赋值新变量 package main import "fmt" var a = "GG" func main() ...