0

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?

ItamarG3
  • 4,092
  • 6
  • 31
  • 44
WutchZone
  • 154
  • 1
  • 3
  • 13

1 Answers1

2

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.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
Martin Ullrich
  • 94,744
  • 25
  • 252
  • 217