Skip to content
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

[Feature] ability to run "dotnet watch build" #845

Open
mehrangta opened this issue Apr 9, 2024 · 2 comments
Open

[Feature] ability to run "dotnet watch build" #845

mehrangta opened this issue Apr 9, 2024 · 2 comments
Labels
enhancement New feature or request needs-triage This issue has yet to be looked over by a core team member

Comments

@mehrangta
Copy link

Is your feature request related to a problem? Please describe.
I'm trying to make a classlib, but when using "dotnet watch" it simply throws error.

Describe the solution you'd like
Ability to run "dotnet watch build" via serve command

Describe alternatives you've considered
Create an unofficial executor

Additional context

@mehrangta mehrangta added enhancement New feature or request needs-triage This issue has yet to be looked over by a core team member labels Apr 9, 2024
@AgentEnder
Copy link
Member

Does nx build (myapp) --watch work?

@mehrangta
Copy link
Author

Does nx build (myapp) --watch work?

It doesn't.
I made this custom cmd which works:

{
    "$schema": "../../../node_modules/nx/schemas/project-schema.json",
    "name": "main",
    "targets": {
        "watch": {
            "executor": "nx:run-commands",
            "options": {
                "cwd": "{projectRoot}",
                "command": "dotnet watch build"
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage This issue has yet to be looked over by a core team member
Projects
None yet
Development

No branches or pull requests

2 participants