© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
3 replies
Joreyk ( IXLLEGACYIXL )

❔ VS doesnt like my Source Generator, idk why

I have a source generator which works, it creates a empty partial class but VS complains about it
idk what this stop symbol means or what it does

the generator works and dotnet build works without warnings or errors

in the project i reference the project like that but this doesnt seem right either
  <ItemGroup>
    <ProjectReference Include="..\BfnXmlReaderLibrary\BfnXmlReaderLibrary.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
    <ProjectReference Include="..\BfnXmlReaderLibrary\BfnXmlReaderLibrary.csproj"/>
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\BfnXmlReaderLibrary\BfnXmlReaderLibrary.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false"/>
    <ProjectReference Include="..\BfnXmlReaderLibrary\BfnXmlReaderLibrary.csproj"/>
  </ItemGroup>

important here is that the xml reader library has the source generator AND normal classes so its not a pure source generator library
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

source generator
C#CC# / help
3y ago
❔ Source generator & protobuf
C#CC# / help
4y ago
Source generator not working?
C#CC# / help
12mo ago
Source Generator IDE interaction
C#CC# / help
14mo ago