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

AdditionalFilesToRemoveFromTarget feature isn't removing files #52

Closed
muso31 opened this issue Mar 5, 2019 · 9 comments · Fixed by #53
Closed

AdditionalFilesToRemoveFromTarget feature isn't removing files #52

muso31 opened this issue Mar 5, 2019 · 9 comments · Fixed by #53
Milestone

Comments

@muso31
Copy link

muso31 commented Mar 5, 2019

This feature doesnt appear to remove any files from the webroot

Configuration can be found here https://github.com/muso31/Helixbase/blob/master/src/Website/code/Properties/PublishProfiles/Local.pubxml#L21

@richardszalay
Copy link
Owner

Just to clarify before I dive into this, AdditionalFilesToRemoveFromTarget only removes files if they aren't going to get published (ie. it's an old, since-renamed, assembly). It also won't work with publishUrl being a URL.

Based on the above, do you think the feature itself is still an issue?

@muso31
Copy link
Author

muso31 commented Mar 8, 2019

Providing AdditionalFilesToRemoveFromTarget is a webroot clean... I've got the publishUrl set to a path. If I rename a binary in the webroot and then publish with hpp the assembly still exists in the webroot even though it should be caught in the wildcard in the publish profile

@muso31
Copy link
Author

muso31 commented Mar 8, 2019

@richardszalay
Copy link
Owner

No, bin\Helixbase.*.dll is correct. Sounds like a bug.

(I'm assuming you haven't run your rename script, right? That wouldn't catch the old file name)

@muso31
Copy link
Author

muso31 commented Mar 8, 2019

Yep all vanilla, no rename!

@richardszalay
Copy link
Owner

I'll take a look. Btw, if you set define a EnablePackageProcessLoggingAndAssert property as true, the files to be removed will be emitted to AdditionalFilesToRemoveFromPublish.txt in the obj\Release\Package\Logs (from memory) directory

@rkeitel
Copy link

rkeitel commented Jul 10, 2019

It doesn't work. I also tried to set EnablePackageProcessLoggingAndAssert to true, but the file AdditionalFilesToRemoveFromPublish.txt is missing after publishing.

@richardszalay
Copy link
Owner

richardszalay commented Jul 10, 2019

@rkeitel What version of HPP are you using, and what is your publishing target (package, filesystem, etc)?

Oh, and are you using packages.config or PackageReference?

@richardszalay
Copy link
Owner

richardszalay commented Jul 11, 2019

@rkeitel Also, is DeleteExistingFiles set to true in your publish profile? HPP's remove additional files functionality only runs if WPP isn't going to just nuke everything (as there's be no point). There was also a bugfix for this behavior in 1.5.2 so make sure you're using at least that.

Also, be careful about commenting on closed issues since I might not see it. Create a new one if you're experiencing bugs that are supposed to be resolved.

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 a pull request may close this issue.

3 participants