graphql-platform
graphql-platform copied to clipboard
Strawberry Shake does not work out of the box for MAUI
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
For any recurrence build, the code generate would generate duplicated outputs for the Generated
and the internal StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator
Steps to reproduce
- Create the default MAUI application from template
- Add Strawberry Shake to the projects
- Build for the first time, notice it should be successful for the first time
- Do a rebuild, notice this time it fails due to duplicated symbols
Relevant log output
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\MauiProgram.cs(19,14,19,33): error CS1061: 'IServiceCollection' does not contain a definition for 'AddConferenceClient' and no accessible extension method 'AddConferenceClient' accepting a first argument of type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)
1>Done building project "MauiWithGraphQL.csproj" -- FAILED.
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(215,6,215,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(238,6,238,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(232,6,232,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(227,6,227,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(206,6,206,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(6,6,6,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(145,6,145,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(74,6,74,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(726,6,726,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(260,6,260,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(298,6,298,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(353,6,353,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(379,6,379,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(363,6,363,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(221,127,221,132): error CS0102: The type 'IGetSessions_Sessions' already contains a definition for 'Nodes'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(382,59,382,70): error CS0102: The type 'IConferenceClient' already contains a definition for 'GetSessions'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(235,38,235,43): error CS0102: The type 'IGetSessions_Sessions_Nodes' already contains a definition for 'Title'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(209,71,209,79): error CS0102: The type 'IGetSessionsResult' already contains a definition for 'Sessions'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(388,6,388,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(356,107,356,119): error CS0111: Type 'IGetSessionsQuery' already defines a member called 'ExecuteAsync' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(357,98,357,103): error CS0111: Type 'IGetSessionsQuery' already defines a member called 'Watch' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(399,6,399,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(500,6,500,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(478,6,478,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(391,16,391,29): error CS0111: Type 'SessionEntity' already defines a member called 'SessionEntity' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(396,38,396,43): error CS0102: The type 'SessionEntity' already contains a definition for 'Title'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(520,6,520,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\Generated\ConferenceClient.StrawberryShake.cs(299,26,299,42): error CS8646: 'IOperationRequestFactory.Create(IReadOnlyDictionary<string, object?>?)' is explicitly implemented more than once.
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\Generated\ConferenceClient.StrawberryShake.cs(299,26,299,42): error CS8646: 'IOperationRequestFactory.ResultType' is explicitly implemented more than once.
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(366,76,366,88): error CS0102: The type 'ConferenceClient' already contains a definition for '_getSessions'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(367,16,367,32): error CS0111: Type 'ConferenceClient' already defines a member called 'ConferenceClient' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(372,45,372,55): error CS0102: The type 'ConferenceClient' already contains a definition for 'ClientName'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(373,66,373,77): error CS0102: The type 'ConferenceClient' already contains a definition for 'GetSessions'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(263,17,263,41): error CS0111: Type 'GetSessionsQueryDocument' already defines a member called 'GetSessionsQueryDocument' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(267,48,267,56): error CS0102: The type 'GetSessionsQueryDocument' already contains a definition for 'Instance'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(268,54,268,58): error CS0102: The type 'GetSessionsQueryDocument' already contains a definition for 'Kind'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(269,65,269,69): error CS0102: The type 'GetSessionsQueryDocument' already contains a definition for 'Body'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(270,53,270,57): error CS0102: The type 'GetSessionsQueryDocument' already contains a definition for 'Hash'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(271,47,271,55): error CS0111: Type 'GetSessionsQueryDocument' already defines a member called 'ToString' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(77,16,77,55): error CS0111: Type 'GetSessions_Sessions_SessionsConnection' already defines a member called 'GetSessions_Sessions_SessionsConnection' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(148,16,148,50): error CS0111: Type 'GetSessions_Sessions_Nodes_Session' already defines a member called 'GetSessions_Sessions_Nodes_Session' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(9,16,9,33): error CS0111: Type 'GetSessionsResult' already defines a member called 'GetSessionsResult' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(153,38,153,43): error CS0102: The type 'GetSessions_Sessions_Nodes_Session' already contains a definition for 'Title'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(85,127,85,132): error CS0102: The type 'GetSessions_Sessions_SessionsConnection' already contains a definition for 'Nodes'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(14,71,14,79): error CS0102: The type 'GetSessionsResult' already contains a definition for 'Sessions'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(87,47,87,53): error CS0111: Type 'GetSessions_Sessions_SessionsConnection' already defines a member called 'Equals' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(155,47,155,53): error CS0111: Type 'GetSessions_Sessions_Nodes_Session' already defines a member called 'Equals' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(16,47,16,53): error CS0111: Type 'GetSessionsResult' already defines a member called 'Equals' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(175,48,175,54): error CS0111: Type 'GetSessions_Sessions_Nodes_Session' already defines a member called 'Equals' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(36,48,36,54): error CS0111: Type 'GetSessionsResult' already defines a member called 'Equals' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(107,48,107,54): error CS0111: Type 'GetSessions_Sessions_SessionsConnection' already defines a member called 'Equals' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(195,46,195,57): error CS0111: Type 'GetSessions_Sessions_Nodes_Session' already defines a member called 'GetHashCode' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(56,46,56,57): error CS0111: Type 'GetSessionsResult' already defines a member called 'GetHashCode' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(127,46,127,57): error CS0111: Type 'GetSessions_Sessions_SessionsConnection' already defines a member called 'GetHashCode' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(784,23,784,44): error CS0102: The type 'ConferenceClientServiceCollectionExtensions' already contains a definition for 'ClientServiceProvider'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(481,115,481,125): error CS0102: The type 'GetSessionsResultInfo' already contains a definition for '_entityIds'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(482,48,482,56): error CS0102: The type 'GetSessionsResultInfo' already contains a definition for '_version'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(483,16,483,37): error CS0111: Type 'GetSessionsResultInfo' already defines a member called 'GetSessionsResultInfo' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(490,78,490,86): error CS0102: The type 'GetSessionsResultInfo' already contains a definition for 'Sessions'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(492,105,492,114): error CS0102: The type 'GetSessionsResultInfo' already contains a definition for 'EntityIds'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(493,38,493,45): error CS0102: The type 'GetSessionsResultInfo' already contains a definition for 'Version'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(494,65,494,76): error CS0111: Type 'GetSessionsResultInfo' already defines a member called 'WithVersion' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(503,63,503,75): error CS0102: The type 'GetSessions_Sessions_Nodes_SessionFromSessionEntityMapper' already contains a definition for '_entityStore'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(504,16,504,73): error CS0111: Type 'GetSessions_Sessions_Nodes_SessionFromSessionEntityMapper' already defines a member called 'GetSessions_Sessions_Nodes_SessionFromSessionEntityMapper' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(509,51,509,54): error CS0111: Type 'GetSessions_Sessions_Nodes_SessionFromSessionEntityMapper' already defines a member called 'Map' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(301,89,301,107): error CS0102: The type 'GetSessionsQuery' already contains a definition for '_operationExecutor'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(302,16,302,32): error CS0111: Type 'GetSessionsQuery' already defines a member called 'GetSessionsQuery' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(307,78,307,88): error CS0102: The type 'GetSessionsQuery' already contains a definition for 'global::StrawberryShake.IOperationRequestFactory.ResultType'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(308,120,308,132): error CS0111: Type 'GetSessionsQuery' already defines a member called 'ExecuteAsync' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(314,105,314,110): error CS0111: Type 'GetSessionsQuery' already defines a member called 'Watch' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(320,58,320,71): error CS0111: Type 'GetSessionsQuery' already defines a member called 'CreateRequest' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(325,58,325,71): error CS0111: Type 'GetSessionsQuery' already defines a member called 'CreateRequest' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(330,99,330,105): error CS0111: Type 'GetSessionsQuery' already defines a member called 'global::StrawberryShake.IOperationRequestFactory.Create' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(660,6,660,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(675,6,675,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(663,16,663,38): error CS0111: Type 'SessionsConnectionData' already defines a member called 'SessionsConnectionData' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(669,38,669,48): error CS0102: The type 'SessionsConnectionData' already contains a definition for '__typename'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(672,100,672,105): error CS0102: The type 'SessionsConnectionData' already contains a definition for 'Nodes'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\Generated\ConferenceClient.StrawberryShake.cs(400,26,400,50): error CS8646: 'IOperationResultDataFactory.Create(IOperationResultDataInfo, IEntityStoreSnapshot?)' is explicitly implemented more than once.
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\Generated\ConferenceClient.StrawberryShake.cs(400,26,400,50): error CS8646: 'IOperationResultDataFactory.ResultType' is explicitly implemented more than once.
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(729,131,729,150): error CS0111: Type 'ConferenceClientServiceCollectionExtensions' already defines a member called 'AddConferenceClient' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(744,92,744,114): error CS0111: Type 'ConferenceClientServiceCollectionExtensions' already defines a member called 'ConfigureClientDefault' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(402,63,402,75): error CS0102: The type 'GetSessionsResultFactory' already contains a definition for '_entityStore'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(403,153,403,211): error CS0102: The type 'GetSessionsResultFactory' already contains a definition for '_getSessions_Sessions_Nodes_SessionFromSessionEntityMapper'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(404,16,404,40): error CS0111: Type 'GetSessionsResultFactory' already defines a member called 'GetSessionsResultFactory' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(410,81,410,91): error CS0102: The type 'GetSessionsResultFactory' already contains a definition for 'global::StrawberryShake.IOperationResultDataFactory.ResultType'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(411,34,411,40): error CS0111: Type 'GetSessionsResultFactory' already defines a member called 'Create' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(426,72,426,96): error CS0111: Type 'GetSessionsResultFactory' already defines a member called 'MapIGetSessions_Sessions' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(446,128,446,174): error CS0111: Type 'GetSessionsResultFactory' already defines a member called 'MapIGetSessions_Sessions_NodesNonNullableArray' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(462,77,462,118): error CS0111: Type 'GetSessionsResultFactory' already defines a member called 'MapNonNullableIGetSessions_Sessions_Nodes' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(472,83,472,89): error CS0111: Type 'GetSessionsResultFactory' already defines a member called 'global::StrawberryShake.IOperationResultDataFactory.Create' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(678,76,678,84): error CS0102: The type 'ConferenceClientEntityIdFactory' already contains a definition for '_options'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(680,49,680,54): error CS0111: Type 'ConferenceClientEntityIdFactory' already defines a member called 'Parse' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(689,38,689,44): error CS0111: Type 'ConferenceClientEntityIdFactory' already defines a member called 'Format' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(697,50,697,70): error CS0111: Type 'ConferenceClientEntityIdFactory' already defines a member called 'ParseSessionEntityId' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(702,39,702,60): error CS0111: Type 'ConferenceClientEntityIdFactory' already defines a member called 'FormatSessionEntityId' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(787,20,787,41): error CS0111: Type 'ConferenceClientServiceCollectionExtensions.ClientServiceProvider' already defines a member called 'ClientServiceProvider' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(792,28,792,38): error CS0111: Type 'ConferenceClientServiceCollectionExtensions.ClientServiceProvider' already defines a member called 'GetService' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(797,25,797,32): error CS0111: Type 'ConferenceClientServiceCollectionExtensions.ClientServiceProvider' already defines a member called 'Dispose' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(523,63,523,75): error CS0102: The type 'GetSessionsBuilder' already contains a definition for '_entityStore'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(524,70,524,83): error CS0102: The type 'GetSessionsBuilder' already contains a definition for '_idSerializer'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(525,130,525,148): error CS0102: The type 'GetSessionsBuilder' already contains a definition for '_resultDataFactory'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(526,127,526,140): error CS0102: The type 'GetSessionsBuilder' already contains a definition for '_stringParser'
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(527,16,527,34): error CS0111: Type 'GetSessionsBuilder' already defines a member called 'GetSessionsBuilder' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(535,77,535,82): error CS0111: Type 'GetSessionsBuilder' already defines a member called 'Build' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(576,61,576,70): error CS0111: Type 'GetSessionsBuilder' already defines a member called 'BuildData' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(590,79,590,111): error CS0111: Type 'GetSessionsBuilder' already defines a member called 'DeserializeIGetSessions_Sessions' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(606,101,606,156): error CS0111: Type 'GetSessionsBuilder' already defines a member called 'UpdateIGetSessions_Sessions_NodesEntityNonNullableArray' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(622,50,622,100): error CS0111: Type 'GetSessionsBuilder' already defines a member called 'UpdateNonNullableIGetSessions_Sessions_NodesEntity' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(648,39,648,67): error CS0111: Type 'GetSessionsBuilder' already defines a member called 'DeserializeNonNullableString' with the same parameter types
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(715,6,715,51): error CS0579: Duplicate 'global::System.CodeDom.Compiler.GeneratedCode' attribute
1>C:\Users\steve\source\repos\MauiWithGraphQL\MauiWithGraphQL\StrawberryShake.CodeGeneration.CSharp.Analyzers\StrawberryShake.CodeGeneration.CSharp.Analyzers.CSharpClientGenerator\ConferenceClient.StrawberryShake.cs(718,16,718,45): error CS0111: Type 'ConferenceClientStoreAccessor' already defines a member called 'ConferenceClientStoreAccessor' with the same parameter types
1>Done building project "MauiWithGraphQL.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Additional Context?
By disabling generated code emission the build will work, however by doing this you would lose IntelliSense, and the error message without having any build errors actually, is very annoying.
Product
Strawberry Shake
Version
12.9.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
/remove stale
Also getting errors in Maui build. Severity Code Description Project File Line Suppression State Error SS0006 Method not found: 'Microsoft.Extensions.DependencyInjection.ServiceProvider Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(Microsoft.Extensions.DependencyInjection.IServiceCollection)'. MauiApp2 (net6.0-android) 1 Active
Severity Code Description Project File Line Suppression State Error SS0006 All operations must be named. MauiApp2 C:\Users\rstath698\source\repos\MauiApp2\MauiApp2\CSC 1