krauthaufen / Adaptify

MIT License
38 stars 3 forks source link

`addToProject` for adaptify tool #34

Open haraldsteinlechner opened 1 year ago

haraldsteinlechner commented 1 year ago

this one adds the option to patch project files while running adaptify locally using --addToProject. The approach is as follows:

for robustness, this is in a separate library and only referenced in the adaptify tool.

haraldsteinlechner commented 1 year ago

after some tweaking it seems to work just fine. We are currently in testing phase in PRo3D: https://github.com/pro3d-space/PRo3D/pull/273

EDIT: i released it as a prerelease package

haraldsteinlechner commented 1 year ago

i just added --hideGenFiles option which hides .g.fs files in project files using Visible="false" attributes. Unfortunately it is a bit hacky since Microsoft.Build.Construction seems not to support the attribute. Anyhow, this looks quite promising... i deployed it as 1.2.0-prerelease3