[英]ASP.NET 5 : Is the “dotnet” command replacing “dnu” and “dnx” commands?
Today, I was following multiple tutorial to run a C# application on Linux but always got stuck at the command dnu restore
which was returning me a not found
error. 今天,我正在按照多个教程在Linux上运行C#应用程序,但总是遇到命令dnu restore
,它返回了一个not found
错误。 Later on, I found out this page which seems to indicate that the new command is dotnet restore
and when I tried it, it worked. 后来,我发现这个页面似乎表明新命令是dotnet restore
,当我尝试它时,它工作。
Are the dnu
and dnx
commands completely replaced? 是否完全替换了dnu
和dnx
命令?
Also, is there some documentation somewhere about the dotnet
commands? 另外,有关于dotnet
命令的某些文档吗?
Is the
dotnet
command replacingdnu
anddnx
commands?dotnet
命令是否替换了dnu
和dnx
命令?
Yes. 是。 They are introducing new command line toolchain, ASP.NET 5 will transition to the new tools for RC2. 他们正在引入新的命令行工具链, ASP.NET 5将过渡到RC2的新工具。 This is already in progress. 这已经在进行中。 There will be a smooth transition from DNX to these new .NET Core components. 从DNX到这些新的.NET Core组件将平稳过渡。
Are the
dnu
anddnx
commands completely replaced? 是否完全替换了dnu
和dnx
命令?
No. You can use dnu
and dnx
, if you follow this instruction Installing .NET Core on Linux . dnx
。如果您按照此说明在Linux上安装.NET Core ,则可以使用dnu
和dnx
。
Is there some documentation somewhere about the dotnet commands? 有关dotnet命令的某些文档吗?
CLI Repo / Intro to .NET Core CLI - v1.0.0 CLI Repo / .NET Core CLI简介 - v1.0.0
Here the basic things 这里基本的东西
1 dnu restore
& dnx run
works for version 1.0.0-rc1-update2 coreclr x64
(check using dnvm list
) and project.json
file needs minimum 1 dnu restore
& dnx run
适用于版本1.0.0-rc1-update2 coreclr x64
(使用dnvm list
检查)和project.json
文件需要最少
"compilationOptions": {
"emitEntryPoint": true
},
"frameworks":{
"dnxcore50":{
"dependencies": {
"System.Console":"4.0.0-*"
}
}
}
2 dotnet restore
& dotnet run
works for version 1.0.0-rc2-23811
and project.json file needs minimum 2 dotnet restore
& dotnet run
适用于版本1.0.0-rc2-23811
,project.json文件需要最少
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"NETStandard.Library": "1.0.0-rc2-23811"
},
"frameworks": {
"dnxcore50": { }
}
Along with this need NuGet.config
file. 随之NuGet.config
需要NuGet.config
文件。
Now, based on How project.json
file configured and dnvm
active set, you need to use command. 现在,基于如何配置project.json
文件和dnvm
活动集,您需要使用命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.