-
Notifications
You must be signed in to change notification settings - Fork 18
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 doesn't work when publishing from VS #61
Comments
Is your profile's publishUrl a file path or a web address? The feature is implicitly only supported if it's a file path |
The publishUrl is a file path. |
Argh, you're killing me 🤣 I'll try to take a look, but if you could create a small repro and email it to me ([email protected]) it will make diagnosing/fixing it quicker. |
I can't create a repo because it is a customer project. But here you have the relevant configuration files: |
@rkeitel Thanks for raising this, I can reproduce. For what it's worth, if you enable autopublish you won't hit this problem (which is why I've never seen it before) For now you can use the following workaround at the end of your Local.pubxml: <!-- Temporary workaround for https://github.com/richardszalay/helix-publishing-pipeline/issues/62 -->
<Target Name="_CollectAdditionalFilesToRemoveFromTarget"
Condition="'$(BuildingInsideVisualStudio)' == 'true'"
DependsOnTargets="CollectAdditionalFilesToRemoveFromTarget"
BeforeTargets="_CopyWebApplication" /> |
Summary: When expicitly publishing within VS the IDE's internal optimisations mean that a number of targets don't get run. Since appears to include WebFileSystemPublish, CollectAdditionalFilesToRemoveFromTarget never runs. I think this hasn't been raised before because autopublish is not affected by it since it runs the targets by name. Still, we should create a new ticket that verifies each of the features when publishing from within VS. |
Cool, the workaround works great. Thank you very much :-) |
Excellent. I'll keep this issue open until I release a new version with the fix. |
I noted another problem. Deleting additional assemblies is working (e.g. |
I'm not sure if that glob is valid. Have you tried |
Yes, I tried |
Can you try |
All files are in |
Interesting. Ok, let try to reproduce. |
Even using your original config of I've attached the sample project I used (which is just Helixbase with your config). Can you try it and see if you can reproduce it? |
You are right. The problem was that my App_Config folder had wrong security permissions. So all problems are solved. Thank you very much :-) |
Ah good news. I'll close this issue once I've published a new version with the first fix. |
Included in the v1.5.5 release |
This feature doesn't appear to remove any files from the web root. See issue 52.
I'm using version 1.5.4 of HPP. The publishing target is the local file system. The VS project uses package references.
DeleteExistingFiles
is set tofalse
.EnablePackageProcessLoggingAndAssert
is set totrue
, but the log fileAdditionalFilesToRemoveFromPublish.txt
is not created inobj\Release\Package\Logs
.The text was updated successfully, but these errors were encountered: