-
Notifications
You must be signed in to change notification settings - Fork 224
Expose project build configuration in scripts section of project.json #887
Comments
👍 |
should add at least a I'll send a PR out containing this fix shortly. |
… scripts - provide `%project:Configuration%` and `%project:TargetFramework%` to scripts
… scripts - provide `%project:Configuration%` and `%project:TargetFramework%` to scripts
In the design meeting we need to discuss whether doing #2450 would eliminate or at least alleviate the need for the feature in this issue. |
Will run the *build *pack method per configuration and pass the configuration in. |
Assigning to Pawel because he needs this to unblock his other change |
Prebuild/postbuild scripts will now run for each configuration and framework while prepack/postpack scripts will run for each configuration. Required to fix #887
Hi guys, Can we actually run a different script depending on build configuration or architecture now then? If so how? Thanks. |
There are a few variables surfaced in the scripts section of project.json. However, the current build configuration is not among them.
The variable is useful in such a scenario: copying the output to a folder other than default output
It worth to mention that
kpm build
support multiple configurations in one build run. If this variable is exposed, the scripts need to be executed multiple times to match each configuration.The text was updated successfully, but these errors were encountered: