Skip to content

outputDirectoryName can never be overwritten #8271

@ronjahofinger

Description

@ronjahofinger

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

( G e n C o m m a n d ) o " (GraphQLCodeGenerationRoot)"
see

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

Line 125 in ed5ac28

var outputDir = args.OutputDir ??

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @michaelstaib@ronjahofinger

        Issue actions

          outputDirectoryName can never be overwritten · Issue #8271 · ChilliCream/graphql-platform