. NET Cross-platform tour: Upgrade the ASP. Web Core sample Site

Source: Internet
Author: User
Tags dotnet

ASP. NET Core sample site URL: http://about.cnblogs.com/

First install the latest version of the. NET Core operating environment, from the HTTPS://GITHUB.COM/DOTNET/CLI Readme in the "Ubuntu Installers" section to obtain the shared Host, shared Framework, S DK, respectively download and install:

wget https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/Latest/ Dotnet-host-ubuntu-x64.latest.debdpkg-i Dotnet-host-ubuntu-x64.latest.debwget https:// Dotnetcli.blob.core.windows.net/dotnet/beta/installers/latest/dotnet-sharedframework-ubuntu-x64.latest.debdpkg -I. Dotnet-sharedframework-ubuntu-x64.latest.debwget https://dotnetcli.blob.core.windows.net/dotnet/beta/ Installers/latest/dotnet-sdk-ubuntu-x64.latest.debdpkg-i Dotnet-sdk-ubuntu-x64.latest.deb

The dotnet CLI version after installation is 1.0.0-rc2-002496.

Then modify the Project.json file for the sample site project AboutUs:

1) in the frameworks " netstandardapp1.3 "instead" netcoreapp1.0 ", Imports by " portable-net45+win8 "instead" Portable-net45+wp80+win8+wpa81+dnxcore50 "

2) Add in Dependecies:

"Microsoft.NETCore.App": {    "type": "Platform",    "version": "1.0.0-rc2-23931"},

Then change the Aspnetcidev in Nuget.config to aspnetcirelease:

<Configuration>  <packagesources>    <Clear/>    <AddKey= "Aspnetci"value= "Https://www.myget.org/F/aspnetcirelease/api/v3/index.json" />    <AddKey= "nuget.org"value= "Https://api.nuget.org/v3/index.json" />  </packagesources></Configuration>

dotnet Restore, dotnet Run error occurred: The dependency Ix-async 1.2.5 does not a support framework. netcoreapp,version=v1.0. Have been stuck on this issue for a long time, until today to see this blog post ——. NET Core 1.0 RC2 Adventure, only to find the following solution:

Add "portable-net45+win8+wp8+wpa81" and "PORTABLE-NET45+WIN8+WP8" to "frameworks", "netcoreapp1.0", "imports".

"Frameworks": {  "netcoreapp1.0": {"    imports": [      "Portable-net45+wp80+win8+wpa81+dnxcore50",      " Portable-net45+win8+wp8+wpa81 ",      " PORTABLE-NET45+WIN8+WP8 "    ]  }}

After solving this problem, the upgrade succeeds!

. NET Cross-platform tour: Upgrade the ASP. Web Core sample Site

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.