Closed evan-buss closed 1 year ago
Temporary workaround is as follows:
strawberryshake.server/13.0.0-preview.80/build/StrawberryShake.Server.targets
find red lines and patch them:
@@ -27,9 +27,9 @@
<PropertyGroup>
<GenCommand>dotnet "$(GenTool)" generate "$(MSBuildProjectDirectory)"</GenCommand>
- <GenCommand>$(GenCommand) -o $(GraphQLCodeGenerationRoot)</GenCommand>
+ <GenCommand>$(GenCommand) -o "$(GraphQLCodeGenerationRoot)"</GenCommand>
<GenCommand Condition="'$(RootNamespace)' != ''">$(GenCommand) -n $(RootNamespace)</GenCommand>
- <GenCommand Condition="'$(GraphQLPersistedQueryOutput)' != ''">$(GenCommand) -q $(GraphQLQueryGenerationRoot)</GenCommand>
+ <GenCommand Condition="'$(GraphQLPersistedQueryOutput)' != ''">$(GenCommand) -q "$(GraphQLQueryGenerationRoot)"</GenCommand>
<GenCommand Condition="'$(GraphQLRequestHash)' != ''">$(GenCommand) -a $(GraphQLRequestHash)</GenCommand>
Do you want to do a PR? I can guide you through if you need help.
Is there an existing issue for this?
Describe the bug
I am trying to generate a GraphQL client with StrawberryShake and the source generation fails on
dotnet build
. The project path is nested within a folder calledVisual Studio 2022
which seems to be the issue. When I move the entire project to a path without any space characters it works correctly.I believe this is an issue with the CLI library based on the stack trace. When I run the source generator manually via
dotnet graphql generate
it works correctly.Is there any way to disable the automatic source generation on build so I can continue development in the meantime?
Steps to reproduce
~/Downloads/bad path/
StrawberryShake.Server
. (<PackageReference Include="StrawberryShake.Server" Version="13.0.0-preview.80" />
)dotnet build
.Relevant log output
Additional Context?
No response
Product
Strawberry Shake
Version
13.0.0-preview.80