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

The msbuild pack target should have a public hook for running user targets before itself #5143

Closed
stephan-tolksdorf opened this issue Apr 28, 2017 · 0 comments · Fixed by NuGet/NuGet.Client#1647

Comments

@stephan-tolksdorf
Copy link

The Build and Clean targets have public subtargets BeforeBuild and BeforeClean that can be used to ensure that custom targets are evaluated before the Build or Clean target, see https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-extend-the-visual-studio-build-process

The Pack target currently lacks such a subtarget. _IntermediatePack could be used within a BeforeTasks attribute to reliably hook into the beginning of the pack job, but the name of that target suggests that it is a private implementation detail.

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

Successfully merging a pull request may close this issue.

4 participants