SourceGenerator is not working with .net48 as nuget package reference
I have netstandard2.0 soruce generator project which I consume from .net6 and netstandard projects as nuget reference, it works fine with .net6 and netstandard but when I add nuget reference to net48 projetc, its not working, If I add project reference rather than nuget reference, it works in that case, thats weird behaviour I couldnt understand
![](https://utfs.io/f/0407dfd3-9ec8-4215-8dad-a17f66c89bf4-4pl4mu.png)
2 Replies
consumer of soruce generator, works fine with this .net version
![](https://utfs.io/f/6992cb22-eb3b-42e8-9b1a-73a0f191e7e3-4pl4mu.png)
.net48 reference which doesnt work in this setup
![](https://utfs.io/f/21cc32b6-7136-4b78-8c8b-8c920dd7ef44-4pl4mu.png)