「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
ここでは、dotnetでビルドする手順を説明する。
ここでは、Visual Studioでビルドする手順のみ説明する(dotnetでもビルドできるが)。
ここでは、dotnetでビルドする手順を説明する。
xxxxx@xxxxx:~/test_project$ dotnet new web The template "ASP.NET Core Empty" was created successfully. This template contains technologies from parties other than Microsoft, see https://aka.ms/template-3pn for details. Processing post-creation actions... Running 'dotnet restore' on /home/xxxxx/test_project/test_project.csproj... Restoring packages for /home/xxxxx/test_project/test_project.csproj... Generating MSBuild file /home/xxxxx/test_project/obj/test_project.csproj.nuget.g.props. Generating MSBuild file /home/xxxxx/test_project/obj/test_project.csproj.nuget.g.targets. Restore completed in 30.51 sec for /home/xxxxx/test_project/test_project.csproj. Restore succeeded. xxxxx@xxxxx:~/test_project$ ls obj Program.cs Startup.cs test_project.csproj wwwroot xxxxx@xxxxx:~/test_project$
※ dotnet new webの中で dotnet restorが自動実行される。
xxxxx@xxxxx:~/test_project$ dotnet run Hosting environment: Production Content root path: /home/xxxxx/test_project Now listening on: http://localhost:5000 Application started. Press Ctrl+C to shut down. xxxxx@xxxxx:~$ curl http://localhost:5000/ Hello World!xxxxx@xxxxx:~$
可能であれば、ブラウザから、
を呼び出してみても良し。
ここでは、Visual Studioでビルドする手順のみ説明する(dotnetでもビルドできるが)。
プラットフォームに依存しないので、CentOSの手順と同じになる。