Open pgrm opened 4 years ago
Hi. I haven't used dotnet asp-codegenerator
, but indeed indeed, there will always be issues when you use two different code generation frameworks.
RecordGenerator uses CodeGeneration.Roslyn
underneath: https://github.com/AArnott/CodeGeneration.Roslyn
I won't have time to debug how aspnet-codegenerator runs MSBuild targets, but it should be possible. Have you tried building the project via dotnet build
and then running dotnet aspnet-codegenerator identity --no-build
?
@amis92 thx for getting back to me, yes we tried that, and it's still saying Failed to compile the project in memory
- the aspnet-generator
is different from yours, as it should be rather similar to ef core migrations (which by the way work just fine), in the sense that the aspnet-generator
should simply scaffold some views / models / ... which will be afterwards committed into the repository.
Ok, I'll get in touch with the repository where the generator is hosted and ask there as well 😃
@pgrm Hello. I have this problem too. How did you solve this error?
Hello, when I run
dotnet aspnet-codegenerator identity
I get errors, that it can't find the auto generated constructors. Specifically:Failed to compile the project in memory
dotnet build
works of course, so I'm wondering if this is an issue with theaspnet-codegenerator
tool chain, or rather with the way theRecordGenerator
registers itself for the builds.Thanks for your help