You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npx nx g @nx-dotnet/core:application -d services/apps/DevApiGateway --solutionFile App.sln --language C# --template web --tags app --dry-run
Note the location of the generated files:
Executing Command: dotnet "new""web""--language""C#""--name""App.Services.Apps.DevApiGateway""--output""apps/services/apps/DevApiGateway""--dry-run"
File actions would have been taken:
Create: apps/services/apps/DevApiGateway/App.Services.Apps.DevApiGateway.csproj
Create: apps/services/apps/DevApiGateway/Program.cs
Create: apps/services/apps/DevApiGateway/Properties/launchSettings.json
Create: apps/services/apps/DevApiGateway/appsettings.Development.json
Create: apps/services/apps/DevApiGateway/appsettings.json
Note the added apps/ prefix
Expected Behavior
The directory passed to --directory would be honored for the @nx-dotnet/core:application generator in the same way it is honored for the @nx-dotnet/core:library
I would expect the following output:
Executing Command: dotnet "new""web""--language""C#""--name""App.Services.Apps.DevApiGateway""--output""services/apps/DevApiGateway""--dry-run"
File actions would have been taken:
Create: services/apps/DevApiGateway/App.Services.Apps.DevApiGateway.csproj
Create: services/apps/DevApiGateway/Program.cs
Create: services/apps/DevApiGateway/Properties/launchSettings.json
Create: services/apps/DevApiGateway/appsettings.Development.json
Create: services/apps/DevApiGateway/appsettings.json
Note the absence of the apps/ directory prefix
Github Repo
No response
Steps to Reproduce
Executing the command:
npx nx g @nx-dotnet/core:application -d services/apps/DevApiGateway --solutionFile App.sln --language C# --template web --tags app --dry-run
Note the location of the generated files:
Executing Command: dotnet "new""web""--language""C#""--name""App.Services.Apps.DevApiGateway""--output""apps/services/apps/DevApiGateway""--dry-run"
File actions would have been taken:
Create: apps/services/apps/DevApiGateway/App.Services.Apps.DevApiGateway.csproj
Create: apps/services/apps/DevApiGateway/Program.cs
Create: apps/services/apps/DevApiGateway/Properties/launchSettings.json
Create: apps/services/apps/DevApiGateway/appsettings.Development.json
Create: apps/services/apps/DevApiGateway/appsettings.json
Current Behavior
Note the added
apps/
prefixExpected Behavior
The directory passed to
--directory
would be honored for the@nx-dotnet/core:application
generator in the same way it is honored for the@nx-dotnet/core:library
I would expect the following output:
Note the absence of the
apps/
directory prefixGithub Repo
No response
Steps to Reproduce
Note the added
apps/
prefixNx Report
nx.json
Failure Logs
No response
Additional Information
I think if an explicit directory is specified the full directory should be used and the
apps/
prefix should not be included.The text was updated successfully, but these errors were encountered: