-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest version (0.9.1) results in many compile errors #83
Comments
I also have this issue after updating from 0.8.1 to 0.9.1 |
Hmmm. Hard to diagnose what's going on here unless the compiler version being referenced is enough to disable the source generator running. What version of the .NET SDK are you running? |
And a part of .csproj file:
|
I have .Net 9 installed, but the project is .Net 8 (whatever the latest is). On Windows. The project has a global.json to fix it to 8 also. |
I updated a .Net 8 project that was using 0.8.1 to the latest 0.9.1, and when the project is compiled, there are a ton of errors of the kind:
error CS0103: The name 'Slices' does not exist in the current context
Sample line where the error is generated:
var slice = Slices.Rx.ExportPrescriptionPDF.Create(prescriptionDetail);
I am also seeing several warnings about analyzers and source generators:
The RSG002 looks to be every .cshtml file that is being used as a slice.
Backing down to 0.8.1 clears the errors.
Looks like the SourceGenerator isn't working? Also, this is using VSCode (with the C# Sdk). Opening the project using VS2022 did return the same errors, but after several clean/rebuild cycles, it seems to fix the problem. (Yes, I've done a
dotnet clean
dotnet build
several times.Thanks
The text was updated successfully, but these errors were encountered: