Skip to content
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

Source generation error with Visual Studio #1

Closed
geertdoornbos opened this issue Feb 1, 2024 · 1 comment
Closed

Source generation error with Visual Studio #1

geertdoornbos opened this issue Feb 1, 2024 · 1 comment

Comments

@geertdoornbos
Copy link

The source generation does not work with Visual Studio. It does work when using netstandard 2.0.

<TargetFramework>netstandard2.0</TargetFramework>

This issue does not seem to be fixed.

Documentation shows a warning: Currently only .NET Standard 2.0 assemblies can be used as Source Generators.

Nice demo btw 👍

@mhdbouk
Copy link
Owner

mhdbouk commented Feb 1, 2024

Oh, that’s interesting. I tried netstandard2.1 and it worked. I thought the documentation was not updated (as usual 😅), but it was Rider doing the job. I didn’t know that Visual Studio would not work.
Thank you for the heads up. I will update the code with netstandard2.0

mhdbouk added a commit that referenced this issue Feb 1, 2024
Update the target framework to `netstandard2.0` to support Visual Studio as well.
Linked issue: #1
@mhdbouk mhdbouk closed this as completed Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants