visualstudioformac从入门到放弃1

walleyekneel walleyekneel     2022-08-14     717

关键词:

MAC 

第一步:从微软官网下载:https://www.visualstudio.com/vs/visual-studio-mac/

第二步:安装软件过程出现

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 -versionAfter 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/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.

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.

(这里没有用到移动端只需要下载: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体验

java从入门到放弃

 (1)Java入门变量与注释 用户输入if语句java中的循环while 查看详情

vex从放弃到入门

1.point模式intsnpt=npoints(1);intspt_num=fit(ch("cur_pos"),0,1,0,snpt-1);vectorcur_pos=point(1,"P",spt_num);@P+=cur_pos;ViewCode  2.detail模式intnpt_l=npoints(0);intnpt_r=npoints(1);intnpt_r1=fi 查看详情

深度学习:从入门到放弃

https://zhuanlan.zhihu.com/p/22976342 首发于深度学习:从入门到放弃写文章登录 FCN学习:SemanticSegmentation余俊1年前感谢@huangh12 @郑途 @麦田守望者对标签图像生成的研究和讨论,这几天研究了一下,补充如下。-------------------... 查看详情

elasticsearcho从入门到放弃:beats(代码片段)

文章目录一、Beats:1.Beats:1.1FileBeat简介1.2FileBeat的工作原理3.下载及安装:4.使用fileBeat采集xxx日志到es4.1配置FIleBeat4.1.1input配置4.1.2output配置4.2启动FileBeat4.3采集到数据4.4解决多行的问题:5.FileBeat是如何工作的5.1input和harvesters5.1.1... 查看详情

elasticsearcho从入门到放弃:beats(代码片段)

文章目录一、Beats:1.Beats:1.1FileBeat简介1.2FileBeat的工作原理3.下载及安装:4.使用fileBeat采集xxx日志到es4.1配置FIleBeat4.1.1input配置4.1.2output配置4.2启动FileBeat4.3采集到数据4.4解决多行的问题:5.FileBeat是如何工作的5.1input和harvesters5.1.1... 查看详情

深度学习---从入门到放弃pytorch基础(代码片段)

深度学习—从入门到放弃(一)pytorchTensor类似于numpy的array,pandas的dataframe;在pytorch里的数据结构是tensor,即张量tensor简单操作1.Flattenandreshape###Originalz:tensor([[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]])Flatte 查看详情

java从入门到放弃——04.数组

本文目标数组 1、数组  定义一个数组的三个姿势:    数组类型[]  数组名 =  new  数组类型[数组数量];    数组类型[]  数组名 =  new  数组类型[]对象1,对象2... 查看详情

ldap从入门到放弃

 OpenLDAP快速入门 一、Ldap简介  1、目录服务  目录是一个为查询、浏览和搜索而优化的专业分布式数据库,它呈树状结构组织数据,就好象Linux/Unix系统中的文件目录一样。  目录服务的组成:      1、目录... 查看详情

qml从入门到放弃第二卷

第二卷如何更快速的放弃,注重的是C++和QML的交互<1>记事本。。 (1)先测试下不在QML创建C++对象,仅仅在main.cpp添加一个属性函数供调用.TextStreamLoader.h#ifndefTEXTSTREAMLOADER_H#defineTEXTSTREAMLOADER_H#include<QObject>#include<QTextStr 查看详情

深度学习---从入门到放弃优化器(代码片段)

深度学习—从入门到放弃(四)优化器1.案例引入-MNIST手写数字识别现代深度学习优化中的许多核心思想(和技巧)可以在训练MLP以解决图像分类任务的中进行说明。在这里我们使用的是手写数字的MNIST数据集࿰... 查看详情

观察者模式(从放弃到入门)

观察者模式(从放弃到入门)观察者模式从放弃到入门需求1错误示范需求2观察者模式认识观察者模式需求3Java中自带的观察者模式思考源码ObservableObserver解析一些体会今天分享第二个模式,观察者模式。相信作Android... 查看详情

dynamicprogramming从入门到放弃

1.maxsum最大连续子序列和  用d[i]表示以i结束的子序列和的最大值,状态转移方程为d[i]=max{d[i-1]+a[i],a[i]},其中d[0]=a[0],然后对d[i]sort取最大值  #include<iostream>#include<cstdio>#include<algorithm>#include<cstring>usin 查看详情

app上架/更新,3.2.1问题被拒,从入门到放弃

身处在一个以包为王的苹果市场,手上掌握多少个包,间接就能获取多少用户。再尔包多壮人胆,机刷/万条评论走起,在被下架前,抢一波量就一波量,即使很倒霉,最坏的结果不就被清榜、降权,关键词排名下降,并没有影... 查看详情

apacheflink从入门到放弃——快速上手(java版)(代码片段)

目录1.环境准备和创建项目1.1软件准备及版本1.2IDEA下创建Java项目FlinkTutorial2.DataSetAPI批处理实现wordcount3.DataSetAPIVSDataStreamAPI4.DataStreamAPI流处理实现wordcount4.1有界的流处理4.2无界的流处理5.试炼项目代码链接1.环境准备和创建项目1.1... 查看详情

初识pytorch:从安装到入门,从入门到放弃(代码片段)

目录PyTorch安装配置安装验证PyTorchPyTorch是Facebook团队于2017年1月发布的一个深度学习框架,虽然晚于TensorFlow,也没有TensorFlow火,但目前已经与TensorFlow奇虎相当。而且PyTorch采用了Python语言的接口,可以说它才是Pytho... 查看详情

weex从入门到放弃

一、安装(1)npminstall-gweex-toolkit(2)weexinitawesome-project二、运行项目npmrundev:监测文件变化,执行package.json中的script下的dev,实际执行watch指定npmrunserve:启动服务器两者必须要一起运行,不然每次更改文件都得执行npmrunbuild,先编译,... 查看详情

volatile从入门到放弃

1.引言如果你对java的volatile有着疑虑请阅读本文,如果你想对volatile想有一个更深的了解,请阅读本文.本文主要讲的是volatile的写happen-before在volatile读之前所涉及相关的原理,以及在Hotspot中相关代码的实现.      ... 查看详情

java从入门到放弃·arraylist集合小练习

练习1(存储随机数字)题目:生成10个1~55之间的随机数,添加到集合中,并且遍历输出。先来解析一下这道题,给出思路1.需要存储10个整数,所以创建一个<Integer>的集合2.需要产生随机数,用到Random类3.产生10个随机数,使用... 查看详情