© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•14mo ago•
26 replies
Okno

Compilation issue with source generator

Hello there, I am building a mapper source generator to learn Csharp. I am now testing it in a real project.
Unfortunately using it as a dependency seems to trigger the following compilation error:
/usr/local/share/dotnet/sdk/8.0.402/Roslyn/Microsoft.CSharp.Core.targets(85,5): error MSB6006: "csc.dll" exited with code 1. [/Users/pauldelafosse/Code/di-business-meta-app/di-business-file-import/BusinessFileImport.Infrastructure.Persistence/BusinessFileImport.Infrastructure.Persistence.csproj]
/usr/local/share/dotnet/sdk/8.0.402/Roslyn/Microsoft.CSharp.Core.targets(85,5): error MSB6006: "csc.dll" exited with code 1. [/Users/pauldelafosse/Code/di-business-meta-app/di-business-file-import/BusinessFileImport.Infrastructure.Persistence/BusinessFileImport.Infrastructure.Persistence.csproj]


I have looked up this error code but I am really unsure what could be done to diagnose this.

For reference the source generator repo is here: https://github.com/oknozor/CartographeAutomatique/tree/main

Any advice on how to troubleshot this would be appreciated.
GitHub
GitHub - oknozor/CartographeAutomatique: For now just a C# learning...
For now just a C# learning project. Contribute to oknozor/CartographeAutomatique development by creating an account on GitHub.
GitHub - oknozor/CartographeAutomatique: For now just a C# learning...
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
❔ Incremental Generator compilation error
C#CC# / help
3y ago
✅ Include Source Generator With Library
C#CC# / help
16mo ago
❔ Source generator & protobuf
C#CC# / help
4y ago