-
Notifications
You must be signed in to change notification settings - Fork 253
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
Enabling GeneratePackageOnBuild deleted my entire history of packages #5676
Comments
This issue bit me today. All my project Relevant section in
I believe that one should err on the conservative side when performing destructive actions. Especially when Update: Right now I decided to replace
It works for my needs and no longer purges all packages in Ideally I would write For example: The The best advice I can come up with to improve the issue, is append all package file name variants to |
@ChickJ @sharwell thanks for your feedback. I have a PR out for this to make the clean target conservative - the limitation would be that it would only work for static package versions. it would not cover the scenario that @ChickJ mentioned when package versions change dynamically with each build. We would love to hear feedback about how common that scenario is, and based on that, we will make improvements to this in the future. The PR right now fixes the immediate problem of deleting packages that were not meant to be deleted. |
@rohit21agrawal Sorry I didn't get my review here earlier. The new implementation still isn't correct, with one limitation being the one you mentioned (this is an expected case, and specifically it is a case that MSBuild is designed to handle reliably). I posted details for the correct solution in the pull request. |
Using Visual Studio 2017 (15.3 Preview 6).
📝 The title of this is accurate. I kept a copy of ANTLR 3 builds going back to 2011 in the folder which was cleared. I can get it back, but it will not be easy since the storage location for them changed a few times over the years.
Steps to reproduce
<GeneratePackageOnBuild>
<PackageOutputPath>
to a directory containing common packages for several unrelated projectsExpected results
Project builds and places the generated package in that folder.
Actual results
All packages is the folder are deleted.
Additional information
The build process MUST adhere to the following limitations regarding packages to delete.
<PackageOutputPath>
<PackageOutputPath>
by the previous build of the projectThe text was updated successfully, but these errors were encountered: