mirror of
https://gitlab01.pm.org.ru/developers/tnt/dotnet/app01-dotnet-v7.git
synced 2026-01-12 09:04:39 +08:00
Update 4 files
- /App01/Dockerfile - /App01/ Properties/launchSettings.json - /App01/App01csproj - /App01/Program.cs
This commit is contained in:
commit
0f1e1faff6
13
App01/ Properties/launchSettings.json
Normal file
13
App01/ Properties/launchSettings.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"HelloWorldApp": {
|
||||||
|
"commandName": "Project",
|
||||||
|
"dotnetRunMessages": true,
|
||||||
|
"launchBrowser": true,
|
||||||
|
"applicationUrl": "http://localhost:5000",
|
||||||
|
"environmentVariables": {
|
||||||
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
9
App01/App01csproj
Normal file
9
App01/App01csproj
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
0
App01/Dockerfile
Normal file
0
App01/Dockerfile
Normal file
6
App01/Program.cs
Normal file
6
App01/Program.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
var app = builder.Build();
|
||||||
|
|
||||||
|
app.MapGet("/", () => "APP01 .NETv7 in Docker!");
|
||||||
|
|
||||||
|
app.Run();
|
||||||
Loading…
x
Reference in New Issue
Block a user