WutchZone
WutchZone

Reputation: 154

.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.

ERROR

Can some please explain me what I am doing wrong?

Upvotes: 0

Views: 678

Answers (1)

Martin Ullrich
Martin Ullrich

Reputation: 100751

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

Use dotnet hwapp.dll to run a built application.

Upvotes: 2

Related Questions