-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
dotnet-watch support for publish subprocess #38340
Comments
Btw, I use the last 8.0 version downloadable on dotnet.microsoft.com and I tried with the latest 6.x version. |
What exactly is the command you're using that doesn't work? |
As I see, Steps to reproduce (I'm trying to let it publish the application on source change):
As we see, it doesn't publish ( PS: installed SDKs:
|
I could see the same behavior after upgrading from dotnet sdk 7.0.4XX to 8.0.101. This broke a whole workflow for our team, because building your own auto-publish on change is not trivial to get right. |
This looks like a bug that was introduced in .NET 8.0 SDK. I get the expected behavior with |
Looks like sdk/src/BuiltInTools/dotnet-watch/CommandLineOptions.cs Lines 150 to 152 in a0949af
@case303 can you describe the use case for |
We use it to auto update the input of a system test tool. We need |
Thanks @baronfel, Similar to what's described here and #36918, essentially
dotnet watch documentation states:
Possible this could be plaguing other child commands? |
Almost certainly yes - in .NET 8 the command was pretty drastically rewritten. I don't think the arbitrary command use case was taken into account. @tmat it's very reasonable that arbitrary commands should be used with |
I would be grateful if the arbitrary command use case would be supported again. I had a script called Also, the wasm directory in my server project was added to Watch in the csproj. This way, my wasm project would cause the server project to auto build, after a wasm change. Yes, I did have two terminals with Further, sometimes, I would have my server project rsync the published single file to a remote Linux box and then use ssh to run the app remotely. Doing this made it possible to have a code --> compile --> publish --> deploy --> run loop that was automated and fast. This worked really well.
dotnet publish --configuration Debug
if [ -d "../Linux/adminwasm" ]; then
mv -i ../Linux/adminwasm "$FORDELETE"/adminwasm
fi
cp -a -i bin/Debug/net8.0/publish/wwwroot ../Linux/adminwasm
<ItemGroup>
<EmbeddedResource Include="adminwasm\**" />
<Watch Include="adminwasm\**" />
<Watch Include="adminwasm" />
</ItemGroup> |
Type of issue
Other (describe below)
Description
Hello !
I have a particular use case where I need dotnet-watch to use the publish sub process but the CLI tool does not take the argument described in the docs.
This arg is also present in the readme of dotnet-watch in the sdk but when I run
dotnet watch -?
I only have :Is this a planned change of the tool not even described in the sdk readme or an error ?
Thanks !
Lucas
Page URL
https://learn.microsoft.com/fr-fr/dotnet/core/tools/dotnet-watch
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/tools/dotnet-watch.md
Document Version Independent Id
218d2a4d-2ff3-8e4d-1f06-bbb3710878fe
Article author
tdykstra
Metadata
The text was updated successfully, but these errors were encountered: