Selaa lähdekoodia

更新 .gitignore 和 launchSettings.json 配置

在 .gitignore 文件中,添加了 ASALocalRun/ 和 healthchecksdb 目录,以及多个 merge 脚本文件。
在 Hotline.Api.csproj 文件中,删除了 Properties\launchSettings.json 文件的引用。
在 launchSettings.json 文件中,添加了新的 JSON 配置,定义了 Hotline.Api 的启动设置,包括命令名称、是否显示 dotnet 运行消息、是否启动浏览器、启动 URL、应用程序 URL 和环境变量。
xfe 2 viikkoa sitten
vanhempi
commit
c15b689f79

+ 0 - 1
.gitignore

@@ -348,4 +348,3 @@ healthchecksdb
 /merge_245_test.ps1
 /merge_dev.ps1
 /merge_snapshot_test.ps1
-/src/Hotline.Api/Properties/launchSettings.json

+ 0 - 3
src/Hotline.Api/Hotline.Api.csproj

@@ -33,9 +33,6 @@
   </ItemGroup>
 
   <ItemGroup>
-    <None Update="Properties\launchSettings.json">
-      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
-    </None>
     <None Update="Template\AssignmentForm.doc">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>

+ 15 - 0
src/Hotline.Api/Properties/launchSettings.json

@@ -0,0 +1,15 @@
+{
+  "$schema": "https://json.schemastore.org/launchsettings.json",
+  "profiles": {
+    "Hotline.Api": {
+      "commandName": "Project",
+      "dotnetRunMessages": true,
+      "launchBrowser": true,
+      "launchUrl": "swagger",
+      "applicationUrl": "http://localhost:50100",
+      "environmentVariables": {
+        "ASPNETCORE_ENVIRONMENT": "Development"
+      }
+    }
+  }
+}