Skip to content

VS 2022 17.4.3 throw a exception at startup: The startup hook simple assembly name 'Watch.BrowserRefresh.dll' is invalid #45610

@ElderJames

Description

@ElderJames

Description

System.ArgumentException: 'The startup hook simple assembly name '\Program Files\dotnet\SDK\7.0.101\DotnetTools\dotnet-watch\7.0.101-servicing.22579.2\tools\net7.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'.'

image

Reproduction Steps

  1. Create a webapi project in VS 2022 17.4.3
  2. F5 to Debug

Expected behavior

Normal start

Actual behavior

Throw an Exception.

Regression?

No response

Known Workarounds

No response

Configuration

launchSettings.json:

{
  "$schema": "https://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:33747",
      "sslPort": 44308
    }
  },
  "profiles": {
    "http": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "launchUrl": "swagger",
      "applicationUrl": "http://localhost:5064",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "https": {
      "commandName": "Project",
      "dotnetRunMessages": true,
      "launchBrowser": true,
      "launchUrl": "swagger",
      "applicationUrl": "https://localhost:7210;http://localhost:5064",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "launchUrl": "swagger",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-hot-reloadThis issue is related to the Hot Reload feaature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions