❔ Docker dotnet msbuild fails when using source generator reference
I have a solution with two projects. An aspnet api 'MyApiProject' and a regular class library 'MyLibraryProject'. The library project references a source generator NuGet package 'MyGenerator' I created in a separate solution.
When I build and run the solution in visual studio everything works fine but when I build it through docker it is failing because the class file that is generated "could not be found".
Relevant extract from the docker output:
Relevant parts of my docker file looks like this:
All of this makes me think that its not running the source code generator during the build.
When I build and run the solution in visual studio everything works fine but when I build it through docker it is failing because the class file that is generated "could not be found".
Relevant extract from the docker output:
Relevant parts of my docker file looks like this:
All of this makes me think that its not running the source code generator during the build.