Quellcode durchsuchen

[Blazor] Update template to only include inspectUri when using Web assembly (#48519)

Javier Calvarro Nelson vor 2 Jahren
Ursprung
Commit
4eae56d8f7

+ 6 - 0
src/ProjectTemplates/Web.ProjectTemplates/content/Components-CSharp/Properties/launchSettings.json

@@ -18,7 +18,9 @@
         "commandName": "Project",
         "dotnetRunMessages": true,
         "launchBrowser": true,
+      //#if (UseWebAssembly)
         "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
+      //#endif
         "applicationUrl": "http://localhost:5000",
         "environmentVariables": {
           "ASPNETCORE_ENVIRONMENT": "Development"
@@ -30,7 +32,9 @@
         "commandName": "Project",
         "dotnetRunMessages": true,
         "launchBrowser": true,
+        //#if (UseWebAssembly)
         "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
+        //#endif
         "applicationUrl": "https://localhost:5001;http://localhost:5000",
         "environmentVariables": {
           "ASPNETCORE_ENVIRONMENT": "Development"
@@ -40,7 +44,9 @@
       "IIS Express": {
         "commandName": "IISExpress",
         "launchBrowser": true,
+        //#if (UseWebAssembly)
         "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
+        //#endif
         "environmentVariables": {
           "ASPNETCORE_ENVIRONMENT": "Development"
         }