You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MSBuild process assumes generated file in project root, not at generation site #36
The Generator generates correct files for me, and places them right by the side of the .csx file.
However, the compile process fails and expects the file in the project root.
I'd rather have the file right beside the .csx file, or in another subdirectory.
This will create the file in ANOTHER subdirectory (generator/generated/Streams.g.cs), and then the MSBuild task will look for the file in 'P:\fennECS\fennecs\generated\Streams.g.cs' (again 1 directory too high)
Running this from the Root of the project (with the files cluttering the root), this works according to the documentation.
However, the build task does not seem to care about dependencies, and runs in full every time the solution is built (instead of tracking which, if any, .csx files were changed). This adds a significant chunk of compilation time that strongly affects test-driven development workflows.
Activity
thygrrr commentedon Nov 14, 2024
The command line generator does the same, also placing the file at the project root (except the naming is different - Streams.generated.cs)
thygrrr commentedon Nov 14, 2024
If I write the source like this:
This will create the file in ANOTHER subdirectory (generator/generated/Streams.g.cs), and then the MSBuild task will look for the file in 'P:\fennECS\fennecs\generated\Streams.g.cs' (again 1 directory too high)
thygrrr commentedon Nov 14, 2024
Running this from the Root of the project (with the files cluttering the root), this works according to the documentation.
However, the build task does not seem to care about dependencies, and runs in full every time the solution is built (instead of tracking which, if any, .csx files were changed). This adds a significant chunk of compilation time that strongly affects test-driven development workflows.
thygrrr commentedon Nov 14, 2024