D
D
Daniil Demidko2016-12-31 17:15:57
.NET
Daniil Demidko, 2016-12-31 17:15:57

Running .Net Core apps?

I compile a .NET Core project and get Example.dll and Example.runtimeconfig.json as output.
The problem is that the command dotnet Example.dllstarts the application only if there is an Example.runtimeconfig.json file in the same directory, otherwise it throws an error:

A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Users\Admin\Desktop\'.

I only need one executable.
How to do it?
Compiled naturally in Release.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Silin, 2016-12-31
@byme

dotnet publish You can read
more here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question