简体   繁体   中英

.NET core CLI -> run ERROR

I have a little bit of problem with dotnet core CLI.

When I am in a project directory and type:

dotnet restore
dotnet publish

It creates published version of my code. And it says that my project is in **PROJECT NAME** -> /Users/**NAME**/hwapp/bin/Debug/netcoreapp1.1/hwapp.dll .

After typing dotnet run it runs my code but when I step to that directory with my dll file compiled and run that dll with dotnet run command i get the following error.

错误

Can some please explain me what I am doing wrong?

dotnet run is a development tool meant to run msbuild projects (eg csproj ), not execute built applications.

Use dotnet hwapp.dll to run a built application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM