本地Dos命令行中,cd到你的项目目录下,生成,
dotnet {U_Project_Name}.dll
发布
dotnet publish
,然后将发布的文件夹中的文件全部拷贝到服务器中,至此,问题出现;
The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc2-3002702' was not found.
- Check application dependencies and target a framework version installed at:
C:\Program Files\dotnet\shared\Microsoft.NETCore.App
- The following versions are installed:
1.0.0
1.0.3
- Alternatively, install the framework version '1.0.0-rc2-3002702'.
x
解决方案
分清Runtime和SDK的区别,开始我服务器也安装的SDK(还安装不止一个版本!),然后就一直报错,
然后我安装了DotNetCore.1.0.0.RC2-Runtime-x64.exe,再次在服务器上"dotnet {U_Project_Name}.dll",就可以了!!!