Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre/post build events to the Build page #7119

Merged
5 commits merged into from
Apr 14, 2021

Conversation

drewnoakes
Copy link
Member

@drewnoakes drewnoakes commented Apr 13, 2021

Fixes #5953

Add build event interception support for unevaluated value. Previously, the interception code for pre/post build event properties only handled requests for the evaluated value of these properties. For the new Project Properties UI we need both the evaluated and unevaluated values.

Also previously, requests for the evaluated property value were actually returning the unevaluated property value.

Document use of properties/tasks for pre/post build events.

Adds entries to the Build page for events.

image

Produces:

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
  <Exec Command="echo &quot;Pre-build&quot; &#xD;&#xA;echo &quot;Configuration: $(Configuration)&quot;" />
</Target>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
  <Exec Command="echo &quot;Post-build&quot; &#xD;&#xA;echo &quot;Configuration: $(Configuration)&quot;" />
</Target>
Microsoft Reviewers: Open in CodeFlow

Previously, the interception code for pre/post build event properties only handled requests for the _evaluated_ value of these properties. For the new Project Properties UI we need both the evaluated _and_ unevaluated values.

Also previously, requests for the evaluated property value were actually returning the unevaluated property value.

This commit adds proper support for both kinds of value.
@drewnoakes drewnoakes added Feature-Rules/Properties Feature-Project-Properties-Designer The new project property pages which replace the legacy AppDesigner labels Apr 13, 2021
@drewnoakes drewnoakes added this to the 16.10 milestone Apr 13, 2021
@drewnoakes drewnoakes requested a review from a team as a code owner April 13, 2021 13:14
@ghost ghost added the Feature-Codespaces Running Visual Studio in a cloud environment label Apr 13, 2021
// meaning that the properties had access to a full range of property values for use in their
// bodies.
//
// Is SDK projects, it's not possible to define a property in the project after the common
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is SDK project ...
Do you mean "In SDK projects"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks!

@drewnoakes drewnoakes force-pushed the fix-5953-build-events branch from a25a97f to 9bc3629 Compare April 14, 2021 01:27
@drewnoakes drewnoakes added auto-merge Set on a PR to have msftbot merge once requirements are met. and removed Feature-Codespaces Running Visual Studio in a cloud environment labels Apr 14, 2021
@drewnoakes drewnoakes mentioned this pull request Apr 14, 2021
32 tasks
@ghost ghost merged commit 9a1ca91 into dotnet:main Apr 14, 2021
@drewnoakes drewnoakes deleted the fix-5953-build-events branch April 14, 2021 02:02
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Set on a PR to have msftbot merge once requirements are met. Feature-Project-Properties-Designer The new project property pages which replace the legacy AppDesigner Feature-Rules/Properties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a "Build Events" page back-end for VS Online
2 participants