Skip to content

Conversation

@haraldsteinlechner
Copy link
Collaborator

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

  • run everything normally, but log all model and model.g files
  • in a second step Microsoft.Build is used to patch the project accordingly (if needed and the .g files is not yet present)

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

…es of a project into the project (only available in local mode)
… 312)

- removed parallel option (seemed to be problematic because of locked files, not sure yet)
- naive relative path normalization for relative paths
@haraldsteinlechner
Copy link
Collaborator Author

haraldsteinlechner commented Dec 22, 2022

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

EDIT: i released it as a prerelease package

…cleans up the project and prevents users from editing .g files (or other stuff). On the downside, there could be problems with the order of the files (a file requesting a generated model added inbetween the model and the .g file afterwards).
@haraldsteinlechner
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants