-
Notifications
You must be signed in to change notification settings - Fork 10.4k
dotnet watch on macOS throws error looking for exe #41776
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does |
Same |
Right, I think this behavior is expected then. The property you're setting in the project impacts the project's output when built. If you wish for a setting to only apply when publishing for a specific RID, you can either add a |
@DamianEdwards That's interesting, thanks for pointing that out. Note that the issue isn't present when building with Visual Studio for Mac (ARM). I added the condition attribute, though since it is on the property that's setting the RID,
|
You'll need to ensure you specify the RID when publishing, e.g. |
@DamianEdwards Thank you. I added the At the same time, I think adding |
I'm still slightly confused. Why can't you simply supply |
@DamianEdwards This sounded additive to my comment about |
Uh oh!
There was an error while loading. Please reload this page.
Is there an existing issue for this?
Describe the bug
I ran
dotnet watch --verbose
on SDK version 6.0.203, then updated to 6.0.300 and ran the command again. I got the same error each time. I am on macOS and the error seems to indicate it is trying to use a Windows executable.ref: #39073 (comment)
Expected Behavior
Hot reload should run without error after executing command
dotnet watch
Steps To Reproduce
dotnet watch
in the project directory and notice it works<DefaultAppHostRuntimeIdentifier>win-x64</DefaultAppHostRuntimeIdentifier>
dotnet watch --verbose
in the project directory and notice it throws the errorExceptions (if any)
.NET Version
6.0.300
Anything else?
.NET SDK (reflecting any global.json):
Version: 6.0.300
Commit: 8473146e7d
Runtime Environment:
OS Name: Mac OS X
OS Version: 12.4
OS Platform: Darwin
RID: osx.12-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.300/
Host (useful for support):
Version: 6.0.5
Commit: 70ae3df4a6
.NET SDKs installed:
6.0.101 [/usr/local/share/dotnet/sdk]
6.0.200 [/usr/local/share/dotnet/sdk]
6.0.201 [/usr/local/share/dotnet/sdk]
6.0.202 [/usr/local/share/dotnet/sdk]
6.0.203 [/usr/local/share/dotnet/sdk]
6.0.300 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
The text was updated successfully, but these errors were encountered: