AArnott / CodeGeneration.Roslyn

Assists in performing Roslyn-based code generation during a build.
Microsoft Public License
408 stars 59 forks source link

How Packaging my code generator,with extensions CodeGeneration.Roslyn #122

Closed hanxinimm closed 5 years ago

hanxinimm commented 5 years ago

image

if project reference it work better ,but when Packaging nuget, project install it, not work .

i use .net core

amis92 commented 5 years ago

Hi. I'm sorry, but I need some more details. What is your actual problem? What's working for you and what isn't?

hanxinimm commented 5 years ago

i create new project Hunter.Core.CodeGeneration with Implementation RichGeneration, when i packing it for other code generation project, the other project not work to generation code. i must be install CodeGeneration.Roslyn nuget, and copy Hunter.Core.CodeGeneration RichGeneration code to every code generation project, it work better!

amis92 commented 5 years ago

@hanxinimm As I understand it, you pack your code generator into a NuGet and it doesn't work.

Have you followed https://github.com/AArnott/CodeGeneration.Roslyn#packaging-up-your-code-generator-for-others-use ?

amis92 commented 5 years ago

Closed as deprecated