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