Right now the builders are created in the same project where the decorated classes live in.
Given that the Attributes and the SourceGenerator and already split in two NuGet packages, I would like to be able to decorate the classes in the production project, but create the Data Builders in the test project.
Example:
TestApp
- Dependencies
- Packages
- DataBuilderGenerator.Attributes
Person.cs
TestApp.Tests
After building the solution:
TestApp.Tests
This way, production code is not polluted with testing code.
Do you have any directions on how to achieve this?
Right now the builders are created in the same project where the decorated classes live in.
Given that the Attributes and the SourceGenerator and already split in two NuGet packages, I would like to be able to decorate the classes in the production project, but create the Data Builders in the test project.
Example:
TestApp
Person.csTestApp.Tests
After building the solution:
TestApp.Tests
PersonBuilder.csThis way, production code is not polluted with testing code.
Do you have any directions on how to achieve this?