F
F
Festelo2016-12-14 21:29:24
.NET
Festelo, 2016-12-14 21:29:24

How to distribute a .NetCore application?

Good afternoon! Wrote a small program through Visual Studio, compiled it. Everything starts normally from the compilation folder via the dotnet file.dll command, but if you copy this file to another directory, an error is displayed

A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in

If you copy all the files from the folder "project\bin\Release\netcoreapp1.0" , deleting file.runtimeconfig.dev.json, and run through the same dotnet file.dll command, then it requires a lot (more than 11, then stopped looking) libraries from C:\\Users\\USER\\.nuget\\packages.
How can I share my program with other people who only have .Net Core Runtime installed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Silin, 2016-12-14
@Festelo

dotnet publish
UDP: Updated link. Now leads to the .Net Core Tools Preview 3 docks. Project.json is no longer there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question