Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Unable to use hotreload with --framework flag in command line #2

Closed
GiampaoloGabba opened this issue Dec 11, 2021 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@GiampaoloGabba
Copy link

Hello,
when using this plugin, the hotreload functionality for aspnetcore and blazor is not working.
Using the verbose flag i see this:
Did not find a HotReloadProfile or running a non-default command. Watching with legacy behavior.

If i launch dotnet watch manually from my terminal, everything works fine.

I noticed that adding the --framework flag breaks the hot-reload functionality in dotnet watch.

So if i try:
"C:\Program Files\dotnet\dotnet.exe" watch run --project D:/Test/Test.csproj --framework net6.0

hotreload doest not work, but with:

"C:\Program Files\dotnet\dotnet.exe" watch run --project D:/Test/Test.csproj

it works!

Maybe you can change the settings to add the --framework flag only if the user opts in, and remove it from default behaviour (so dotnet watch will take the default configured for the project).

@maartenba maartenba self-assigned this Dec 14, 2021
@maartenba maartenba added the enhancement New feature or request label Dec 14, 2021
@maartenba
Copy link
Owner

Fresh version uploaded, will be available in Rider soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants