-
Notifications
You must be signed in to change notification settings - Fork 51
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
Transformed config in output directory but excluded from _PublishedWebsite folder #152
Comments
In case anyone is interested I've resolved this issue by forcing a transform after build. This results in the transformed XML being written into the published websites output folders:
This was added to the csproj of the website (at the bottom!). I also had to remove _WPPCopyWebApplication=True from my build configuration - which wasn't actually needed it turns out. |
Should we keep this issue open? It sounds like there is a legit bug here. If so could you re-open with steps for me to reproduce this? |
Hi Sayed, I'll try and get some time to write up the steps. I'll reopen this as soon as I have something more for you. Cheers, |
Replication Steps:
Just leave Retention Policy to be the default. So the only real configuration is pointing the build at the website and setting it to build the Release and Debug configurations.
log4net.Debug.log
log4net.Release.log
So in the output folder (...\Drop\Prototypes\SlowCheetahBugReplication\SlowCheetahBugReplication_20140709.2\Debug) I can see a log4net.cfg which has the following content:
However in the published website folder (...\Drop\Prototypes\SlowCheetahBugReplication\SlowCheetahBugReplication_20140709.2\Debug\ _PublishedWebsites\SlowCheetahBugReplication) I see a log4net.cfg with the following content:
As you can see the transformed log4net.cfg has made it into the output folder but not in the published website folder. The same is observed for the Release build. Here's the msbuild log for the debug build: http://pastebin.com/CujybsTJ Hopefully that helps. I can happily package up this solution (which I've built from scratch to demonstrate the issue) if you'd like it. Cheers, |
Sorry for the delay here. Thanks for the repro steps. No need for the sample. OK so this is relating to the I think if you publish with a publish profile (i.e. Let's keep this issue open. I'll update the title to indicate that this relates to |
Hello. I have the same problem, and I am using a publish profile. The transformed configs are found in my drop folder, but outside of the _PublishedWebsites. |
Hi, I'm having the same issue with version 2.5.15 and VS2013. |
Hi, I also faced this issue with SlowCheetah 2.5.48 and VS2015. |
Hi,
Hopefully someone can help as I've been trying to sort this for hours but I'm at a loss.
We have a web application project which uses SlowCheetah to transform a log4net.cfg for multiple environments.
As part of our setup we have a TFS2013 build server which produces our deployments (running using web publishing pipeline - _WPPCopyWebApplication=True). The build process builds for multiple environments are drops them into a drop folder.
Now I've configured the transforms for the environment builds, and indeed if I publish locally everything is working fine however when using the build server this is what I see:
For each environment in the output folder I can see the correctly transformed log4net.cfg however if I browse into the _PublishedWebsite folder the log4net.cfg there is the base one. I've confirmed it's copying the base (un-transformed one) by setting its Build Action to None and it stops being copied.
So my problem is - the correctly transformed log4net.cfg is copied to the output folder but then not copied into the _PublishedWebsite. Obviously the work around is to manually copy it before deployment but as we're currently in the middle of setting up Continual Deployment this really won't be an option going forward.
I've tried using this tutorial http://www.asp.net/mvc/tutorials/deployment/visual-studio-web-deployment/deploying-extra-files to include the log4net.cfg from the output directory into the _PublishedWebsite folder without much success.
If this issue is not a SlowCheetah issue but is likely an MsBuild/WPP problem then let me know and I'll move the question elsewhere. Just somewhat at a loss at the moment!
Cheers,
Richard
The text was updated successfully, but these errors were encountered: