Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fails to start with VSCode #952

Open
Labels
Milestone
@markatosi

Description

@markatosi
  • 0.2:
  • .Net 10:

Application fails to start when running through VSCode using Run and Debug with c# Dev kit

GatherBuildInfo: No testhost detected: BlazorApp1Probe scored for launch origin:   DotNet 3 vs. 0 ElectronProbe scored for package mode:   Unpackaged 4 vs. 0 PackagedEvaluated StartupMethod: UnpackedDotnetFirstdbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BlazorWasmHotReloadMiddleware[0]      Middleware loadedMicrosoft.AspNetCore.Watch.BrowserRefresh.BlazorWasmHotReloadMiddleware: Debug: Middleware loadedMicrosoft.AspNetCore.Watch.BrowserRefresh.BrowserScriptMiddleware: Debug: Middleware loaded. Script /_framework/aspnetcore-browser-refresh.js (16459 B).dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserScriptMiddleware[0]      Middleware loaded. Script /_framework/aspnetcore-browser-refresh.js (16459 B).dbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserScriptMiddleware[0]      Middleware loaded. Script /_framework/blazor-hotreload.js (799 B).Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserScriptMiddleware: Debug: Middleware loaded. Script /_framework/blazor-hotreload.js (799 B).[StartInternal]: startCmd: /Volumes/Repos_APFS/source/electron/BlazorApp1/bin/Debug/net10.0/osx-arm64/.electron/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron[StartInternal]: args: main.js -unpackeddotnet --trace-warnings -electronforcedport=8002 /Volumes/Repos_APFS/source/electron/BlazorApp1/bin/Debug/net10.0/osx-arm64/BlazorApp1.dlldbug: Microsoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware[0]      Middleware loaded: DOTNET_MODIFIABLE_ASSEMBLIES=debug, __ASPNETCORE_BROWSER_TOOLS=trueMicrosoft.AspNetCore.Watch.BrowserRefresh.BrowserRefreshMiddleware: Debug: Middleware loaded: DOTNET_MODIFIABLE_ASSEMBLIES=debug, __ASPNETCORE_BROWSER_TOOLS=trueinfo: Microsoft.Hosting.Lifetime[14]      Now listening on: http://localhost:8003Microsoft.Hosting.Lifetime: Information: Now listening on: http://localhost:8003Microsoft.Hosting.Lifetime: Information: Application started. Press Ctrl+C to shut down.info: Microsoft.Hosting.Lifetime[0]      Application started. Press Ctrl+C to shut down.info: Microsoft.Hosting.Lifetime[0]      Hosting environment: DevelopmentMicrosoft.Hosting.Lifetime: Information: Hosting environment: Developmentinfo: Microsoft.Hosting.Lifetime[0]      Content root path: /Volumes/Repos_APFS/source/electron/BlazorApp1Microsoft.Hosting.Lifetime: Information: Content root path: /Volumes/Repos_APFS/source/electron/BlazorApp1|| /Volumes/Repos_APFS/source/electron/BlazorApp1/bin/Debug/net10.0/osx-arm64/.electron/main.js:28|| if (app.commandLine.hasSwitch('manifest')) {||         ^|| || TypeError: Cannot read properties of undefined (reading 'commandLine')||     at Object.<anonymous> (/Volumes/Repos_APFS/source/electron/BlazorApp1/bin/Debug/net10.0/osx-arm64/.electron/main.js:28:9)||     at Module._compile (node:internal/modules/cjs/loader:1714:14)||     at Module._extensions..js (node:internal/modules/cjs/loader:1848:10)||     at Module.load (node:internal/modules/cjs/loader:1448:32)||     at Module._load (node:internal/modules/cjs/loader:1270:12)||     at c._load (node:electron/js2c/node_init:2:17993)||     at TracingChannel.traceSync (node:diagnostics_channel:322:14)||     at wrapModuleLoad (node:internal/modules/cjs/loader:244:24)||     at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:186:5)||     at node:internal/main/run_main_module:36:49|| || Node.js v22.19.0[StartInternal]: after run:info: Microsoft.Hosting.Lifetime[0]      Application is shutting down...Microsoft.Hosting.Lifetime: Information: Application is shutting down...2[StartInternal]: Process is not running: 2[StartInternal]: Exception: [StartInternal]: Exception: System.Exception: Failed to launch the Electron process.   at ElectronNET.Runtime.Services.ElectronProcess.ElectronProcessActive.StartInternal(String startCmd, String args, String directoriy)The program '[87635] BlazorApp1' has exited with code 0 (0x0).

Steps to Reproduce:

  1. Try to run application in VSCode via c# dev kit Solution explorer
  2. Right click project and select Debug | Start New Instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp