-
I think it's very possible that the generator needs to use some other projects in the solution. If it is limited to net standard, the referenced project needs also to target net standard. And is it a good idea to use multi-target to solve this temporarily? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@acaly The generator project needs to target Note that multi-targeting will require your projects to be built multiple times for each target, which may slow your build times. Consider also extracting only the core pieces the generator relies on into a separate |
Beta Was this translation helpful? Give feedback.
@acaly The generator project needs to target
netstandard2.0
if you plan to run it inside Visual Studio (VS is built on .NET Framework). You can certainly use multi-targeting of the dependent projects if you need to reference them from your generator to achieve that.Note that multi-targeting will require your projects to be built multiple times for each target, which may slow your build times. Consider also extracting only the core pieces the generator relies on into a separate
netstandard
assembly that both the generator and yournetcore
targeting projects can reference.