I had try in my colleague's computer,It works. My computer had net runtime6.0.20 and SDK 6.0.200 I Can run program in bin file,broswer can open. Thank you for your answer first
The startup hook simple assembly name '\Program Files\dotnet\SDK\6.0.200\DotnetTools\dotnet-watch\6.0.200-rtm.22104.9\tools\net6.0\any\middleware\Microsoft.AspNetCore.Watch.BrowserRefresh.dll' is invalid. It must be a valid assembly name and it may not contain directory separator, space or comma characters and must not end with '.dll'.”
the solution of this problem is to repaire visual studio by Visual studio Installer Visual studio Installer
CodePudding user response:
the solution of this problem is to repair visual studio by Visual studio Installer