I'm getting abiquity issues when using the auto generated code from the StrawberryShake.CodeGeneration.CSharp.Analyzers. First time using this package so I might have done something silly.
Image of error in visual studio CS0121
I've tried reinstalling the nuget package and reinstalling the tool.
For reference my project properties are as follows:
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Authentication.WebAssembly.Msal" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
<PackageReference Include="Refit" Version="6.3.2" />
<PackageReference Include="StrawberryShake.CodeGeneration.CSharp.Analyzers" Version="12.15.2" />
<PackageReference Include="StrawberryShake.Transport.Http" Version="12.15.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Shared\GrafanaUtilities.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Generated\" />
</ItemGroup>
<ItemGroup>
<GraphQLConfig Include="Queries\Queries.graphql" />
</ItemGroup>
</Project>
Update: I managed to get arround the error currently by flagging the generated code not to do anything during compile (It appears as though the code is being placed in some temp directory as well as in the "Generated" folder in the project.)
If there is a way to prevent the temp file that would be great to know. For anyone else facing the same issue hope this helps.