I spent ~4 hours investigation and still can't find out how to run published application ( dotnet publish
)
Now I can download sources to my remote machine, then call dotnet build
and dotnet run
- then my app runs as intended. But I want to publish just DLL's (or *.so ?) to my VPS without source files.
What official docs says? To define command in project.json
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel --server.urls http://unix:/var/aspnet/HelloMVC/kestrel.sock",
}
But it is obsolette, isn't it?
What about default samples?
In default VS2015 sample solution they use publish-iis, Full .NET framework and IIS server, but there is nothing about deployment on linux.
postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
Here is my dotnet info
.NET Command Line Tools (1.0.0-preview1-002702)
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: Windows
OS Version: 10.0.10586
OS Platform: Windows
RID: win10-x64
.NET Core RC2