-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Labels
Description
Describe the bug
When generating a library, the newly-added section of workspace.json includes a serve target. This target invokes dotnet run under the hood, which is not supported for library projects. The serve target should only be added to application projects.
To Reproduce
Steps to reproduce the behavior:
- Create a new Nx workspace
- Generate a new class library with
npx nx generate @nx-dotnet/core:lib my-lib --template classlib --language C# - Open
workspace.jsonand find the section formy-lib. - The
architectkey includes aservetarget, which will always fail when run.
Expected behavior
A serve target should not be included for library projects. Only the build target should be scaffolded (plus a test target if a test template was specified).
Environment:
- OS: Windows
- Browser: N/A
- Version: 0.2.0
- Affected Packages:
@nx-dotnet/core
Reactions are currently unavailable