vs2017. NET core on the Ubuntu16.04 of the storm

Source: Internet
Author: User
Tags dotnet

March 7, 2017, VS2017 officially released, Inside of. NET core is the v1.1.1 version. Cross-platform, in order to achieve this great goal, in the long process, embarrassed by the pit and pit ... Finally, haha, success.

Share it, those pits.

1. VMware 12.5

Start, with the VMWARE11, installed is the Ubuntu14.04.

First pit:Ubuntu I'm a 32-bit .... Comrades, the. NET core can only be installed on 64-bit. At first do not know, with Http://www.microsoft.com/net/core#linuxubuntu on the teaching, over and over the outfit, while also scold Linux download slow. Later anxious, want to get a VPN ... Just can't pretend, later ah ... Enlightened, found that 32-bit Linux is not installed.

Note that Ubuntu must be installed in 64-bit, recommended 16.04 (do not know how many bits?) sudo uname--m, if return i686, congratulations, is 32 bit, and I need to reload.

Second pit : Ubuntu16.04 in VMware cannot share folders.

Next vmware12.5, oh, other versions can also be shared? Oh, please look at the next pit. If the pit is the same as mine, do it:

1) After the vmware12.5 is started, start the Ubuntu16.04 virtual machine again.

2) on the lower right side of VMware, there are two optical drive icons, click on the right, select Load Linux.iso under the VMware installation path, note that is the installation path of VMware under Win7 Oh (oh, I use the same win7,win10)

3) in Ubuntu Open CD-ROM, you will find that there is a vmware-tools compression package, double-click, unzip to the home directory (this directory has operation permissions OH), find inside a vmware-install.pl file, terminal inside run, OK. Vmware11 version, also tried so, is unable to share. Inside the Linux.iso under the Ubuntu16.04, feel incomplete ....  Is my character?? It's sad, my goose.

4) VMware Virtual machine, right click ubuntu16.04, will find the shared folder function, set up, OK.

A third pit: VS2017 Build a net Core console program that generates a DLL?

Gee, how does this pit make me think of a hen giving birth to a duck? Words, I just saw when, silly, a bit of subversion of my more than 10-year development concept. So, vs2017 inside, can F5 run, no Vs2017 can do?

Hey, I changed the dll suffix to exe .... x x x, double-click after the run, the day hit five thunder, the pile of anomalies called a strong view. No, pull. Later found the MS Manual, others said, net Core bar, is a cross-platform east, this is the grade, not like the previous cat Ah dog, double-click on the line, now to have knight demeanor, to use terminal, Win7 to use: Run, cmd dotnet d:\mydir\ Myfile.dll Enter.

Fourth Pit: Ubuntu16.04 How to install net core?

This one... Linux, download a dongdong, the old strength, but also the Foreigner's website, but also the big guy, motionless hundred m ... I think, according to Ms Tutorial (Http://www.microsoft.com/net/core#linuxubuntu), sudo apt-get update to se years ... Oh, there is a good east of this address, there is a connection, all Linux downloads

Can first use the browser down, and then manually installed, how good ah. Oh, I did so, in Ubuntu, under an SDK, and then, unzip to the home directory, and then ... Found a manual installation of the core of the article, according to his argument, first build a directory under/usr/share: dotnet, and then copy all the extracted files to/usr/share/dotnet directory, and then Ln-i/usr/share/dotnet/ Dotnet/usr/bin

is to build a connection under the/usr/bin, OK. Test, under Terminal, enter: dotnet run Enter, display: welcome. NET core! Oh, beautiful. And then.... Then, enter:

Dotnet/mnt/hgfs/mydir/myfile.dll thundered .... Ray came, a bunch of err, what no System namespace ... So many mistakes, see make you wonder if my code is wrong?

Wrong, there is a problem with installing the net Core SDK manually. What's wrong? Sorry, I did not go into the study, the cost of Kung fu ah. What to do? Ms Tutorial, or to honestly do ah.

1) Step: sudo sh-c ' echo ' Deb [ARCH=AMD64] https://apt-mo.trafficmanager.net/repos/dotnet-release/xenial main ">/etc/ Apt/sources.list.d/dotnetdev.list '

2) Step: sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 417a0893

3) Step: sudo apt-get update

Update is slow, slow, it doesn't matter, even if you turn off VMware, the next time you go to Ubuntu, you can call sudo apt-get update directly.

The Pit is here: the update failed . Cough, hello, hello, comrades notice ah, this, about the update failed to do it ha, I know there are two cases, ah, this network does not count the ha. Hey, this one who throws eggs, so do not cherish the grain .... One is, your unbuntu is 32-bit, mentioned above, reload a 64-bit retry. One is that the browser can access the URL in the update failure, so why does the update fail?

It doesn't make any sense. Because, you have a firewall. The port of the browser is normal, which port does sudo apt-get update use? No research, certainly not 80, hehe, Win7 the operating system of the firewall shut down, OK.

4) Step: sudo apt-get install dotnet-dev-1.0.1

This, you have to have enough. Enough... Patience, can be repeated in the outfit, before you collapse, congratulations, success.

Knock

Dotnet run to test one.

Dotnet/mnt/hgfs/mydir/myfile.dll haha .... You did it.

vs2017. NET core on the Ubuntu16.04 of the storm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.