Ich habe Setup eine Ubuntu VM, so dass es eine ASP.Net Core-Dummy-Anwendung über Ketrel und nginx anhand der InformationenDeploy und Run: Visual Studio 2015 .ASP.Net Core-Anwendung auf Linux .. Wie
laufen kannhttps://www.microsoft.com/net/core#ubuntu und https://docs.asp.net/en/latest/getting-started.html
Wenn ich das tue ich laufe
dotnet run
im Stammverzeichnis der Anwendung, die
enthältbin
obj
Program.cs
Startup.cs
project.json
Das alles funktioniert gut.
In der Zwischenzeit habe ich auch VS2015 Setup und produziert eine "Hallo Welt" ASP.Net Core-Anwendung unter Windows mit. https://docs.microsoft.com/en-us/dotnet/articles/core/tutorials/using-on-windows
Es läuft gut aus dem Debugger.
Allerdings möchte ich dies auf der Ubuntu VM ausführen, die ich eingerichtet habe.
Als ich das Projekt das Stammverzeichnis veröffentlichen nicht die entsprechenden Dateien in dem Projekt enthält ich oben erstellt und läuft Donet Lauf oder Dotnet nicht wiederherstellen, wie
> [email protected]:~/PublishOutput$ dotnet restore warn : The
> folder '/home/bts/PublishOutput' does not contain a project to
> restore. [email protected]:~/PublishOutput$
[email protected]:~/PublishOutput$ dotnet run
The current project is not valid because of the following errors:
/home/bts/PublishOutput(1,0): error DOTNET1017: Project file does not exist '/home/bts/PublishOutput/project.json'.
Inhalt des Verzeichnisses PublishOutput folgt, wird wie folgt
[email protected]:~/PublishOutput$ ls
> AssName.dll
> AssName.pdb
> Class.deps.json
> Class.dll
> Class.pdb
> Class.runtimeconfig.json
> Microsoft.AspNetCore.Diagnostics.Abstractions.dll
> Microsoft.AspNetCore.Diagnostics.dll
> Microsoft.AspNetCore.Hosting.Abstractions.dll
> Microsoft.AspNetCore.Hosting.dll
> Microsoft.AspNetCore.Hosting.Server.Abstractions.dll
> Microsoft.AspNetCore.Http.Abstractions.dll
> Microsoft.AspNetCore.Http.dll Microsoft.AspNetCore.Http.Extensions.dll
> Microsoft.AspNetCore.Http.Features.dll
> Microsoft.AspNetCore.HttpOverrides.dll
> Microsoft.AspNetCore.Server.IISIntegration.dll
> Microsoft.AspNetCore.Server.Kestrel.dll
> Microsoft.AspNetCore.WebUtilities.dll
> Microsoft.Extensions.Configuration.Abstractions.dll
> Microsoft.Extensions.Configuration.dll
> Microsoft.Extensions.Configuration.EnvironmentVariables.dll
> Microsoft.Extensions.DependencyInjection.Abstractions.dll
> Microsoft.Extensions.DependencyInjection.dll
> Microsoft.Extensions.FileProviders.Abstractions.dll
> Microsoft.Extensions.FileProviders.Physical.dll
> Microsoft.Extensions.FileSystemGlobbing.dll
> Microsoft.Extensions.Logging.Abstractions.dll
> Microsoft.Extensions.Logging.Console.dll
> Microsoft.Extensions.Logging.dll Microsoft.Extensions.ObjectPool.dll
> Microsoft.Extensions.Options.dll
> Microsoft.Extensions.PlatformAbstractions.dll
> Microsoft.Extensions.Primitives.dll Microsoft.Net.Http.Headers.dll
> refs System.Diagnostics.Contracts.dll System.Net.WebSockets.dll
> System.Text.Encodings.Web.dll web.config
Gibt es irgendwo eine dokumentierte Methode, die detailliert beschreibt, wie eine ASP.Net Core-Anwendung unter Windows VS2015 erstellt und veröffentlicht wird und sie dann auf einem Ubuntu-Computer bereitgestellt und ausgeführt wird?
Vielen Dank - das war eine große Hilfe. – Hughgo