Skip to content

outputDirectoryName can never be overwritten #8271

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

Open
ronjahofinger opened this issue May 5, 2025 · 0 comments
Open

outputDirectoryName can never be overwritten #8271

ronjahofinger opened this issue May 5, 2025 · 0 comments

Comments

@ronjahofinger
Copy link

Product

Hot Chocolate

Version

15.1.3

Link to minimal reproduction

#8250

Steps to reproduce

It happens in every solution with this version

What is expected?

If I overwrite outputDirectoryName it will be set as I want

What is actually happening?

output file will always be set in Line 58

Relevant log output

Additional context

I don't know if this is a bug or if it's intended. I don't think it is well-made.

In "StrawberryShake.Server" Version "15.1.3" you cannot generate the files as it used to be because you cannot overwrite outputDirectoryName in the config file. Now the generated data just lands in obj directory, see code:

outputDirectoryName can never be overwritten in config file because output file will always be set in Line 58

graphql-platform/src/StrawberryShake/MetaPackages/Common/MSBuild/StrawberryShake.targets

Line 58 in ed5ac28

$(GenCommand) -o "$(GraphQLCodeGenerationRoot)"
see

graphql-platform/src/StrawberryShake/Tooling/src/dotnet-graphql/GenerateCommand.cs

Line 125 in ed5ac28

var outputDir = args.OutputDir ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants