slow-cheetah icon indicating copy to clipboard operation
slow-cheetah copied to clipboard

XML-Files marked as "Content" and "Copy to output directory" are not transformed

Open forsti83 opened this issue 9 years ago • 4 comments

XML-Files marked as "Content" and "Copy to output directory" are not transformed during the build process. The file in the original folder gets tranformed, but the copied file in the output directory is the original file without the transformation.

forsti83 avatar Mar 26 '15 13:03 forsti83

I just created a new console application in Visual Studio 2013 and tried with the configuration you specified and the file is being transformed in the output folder. My sample project is at https://dl.dropboxusercontent.com/u/40134810/SlowCheetah/issue-171/ConsoleApplication3.zip if you want to try it out.

Can you give specific steps that I can follow to reproduce your issue?

sayedihashimi avatar Apr 14 '15 19:04 sayedihashimi

I have a ASP.NET MVC Website project with some config files (including transformations) in a "Config" folder. Some of them are linked files from other projects, but the problem exists for both types. The config files are marked as "Content" and "Copy to output directory" (only the base files, not the transformation files). If I choose one of my several profiles and publish the Website the transformation is successful in the "Config" folder but the copied files in the "bin\Config" are the original files without the transformation.

I will take a look at your sample project if I can find any differences to my approach.

Thank you for your help!

forsti83 avatar Apr 15 '15 06:04 forsti83

Hello, I get the same issue than forsti83. Is a workaround existing ? Please help ;)

Regards, Ludo

Ludogo avatar Jan 04 '16 10:01 Ludogo

If you configure a transform for the file, it should be copied to the output directory on transform. Do you need the file to be explicitly marked as "Copy to output directory"?

davilimap avatar Feb 10 '17 21:02 davilimap