Comments (7)
Last sentence: "The transformed foo.xml does not make it to the output folder for ClassLibraryA, it should." It should be ClassLibraryB, not A.
from slow-cheetah.
Sayed, Is this the issue where we are not using the item right to pass the location of the transformed item, or is the item missing altogether? Is the item set as type "Content" in the project, or is the item check to send to the build output "If Newer" or "Always"? These two items are supposed to control XML and other "content" types files. And, I am not sure, but I seem to recall that while we might be able to fix the "content" issue, the copy to build output may be something hard coded that looks at the project file, not the build outputs. (I may have that backwards.) [email protected] Date: Mon, 24 Sep 2012 12:36:37 -0700
From: [email protected]
To: [email protected]
Subject: Re: [slow-cheetah] Transforms are not going into output dir for referenced projects (#34)
Last sentence: "The transformed foo.xml does not make it to the output folder for ClassLibraryA, it should." It should be ClassLibraryB, not A.
—
Reply to this email directly or view it on GitHub.
from slow-cheetah.
No I think you are thinking of an issue relating to app.config where some tooling continues to pick the source app.config rather than using the TargetPath as they should.
In this case the user right-clicks and selects transform on a file other than app.config. After that the expectation is that the transformed file will make it to the output folder of the secondary output. This is the behavior that Copy to Output has today. I think I need to ensure that transformed files will be in that same set of files. I'll have to investigate it to find the correct fix.
from slow-cheetah.
This guy has an approach that may work better: http://blogs.clariusconsulting.net/kzu/how-to-apply-build-configuration-transformations-on-non-web-projects/
from slow-cheetah.
Thanks for the link. I have implemented this feature and it is now been released in 2.5 of SlowCheetah at http://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5.
If you have two projects
- ClassLibraryA
- WindowsFormsB
Both the ClassLibraryA and WindowsFormsB have app.config files, and they both use SlowCheetah. When you build WindowsFormsB the transformed app.config for WindowsFormsB is WindowsFormsB.dll.config and the transformed file ClassLibraryA.dll.config are both in the output directory of WindowsFormsB.
You can turn this behavior off by creating an MSBuild property (or env variable) ScAllowCopyReferencedConfig
to false.
If you try it and have issues please re-open this and I'll take a look at it.
from slow-cheetah.
Hello Sayid,
I'm not sure if this feature works exactly as you describe it.
Considering your scenario, where WindowsFormsB does have SlowCheetah installed, but ClassLibraryA DOES NOT have it.
According to my observations any .config in ClassLibraryA is stilled copied over to the output directory of WindowsFormsB. That result is unexpected since ClassLibraryA does not have SlowCheetah installed.
Thanks to you for including that flag to turn this behavior off! That's the workaround I'm using.
from slow-cheetah.
I have other .config files beside the app.config in my projectA that I would like included in the output folder of projectB where projectB is the one that I'm building and projectB references projectA.
This method includes the app.config files as projectA.dll.config, but I would like for a larger set of transormed files from one specific project to be included in the final output.
Is there any support for this at all currently?
from slow-cheetah.
Related Issues (20)
- VS 2017 extenstion should auto upgrade SlowCheetah NuGet HOT 1
- Add Transform would throw memory exception HOT 2
- Inconsistent line endings on generated transformation files HOT 1
- Doesn't work in WPF HOT 2
- SlowCheetah.Samples need to be updated HOT 1
- Package Not loading VS2012 HOT 5
- Transforms don't apply during build in Visual Studio 2015 HOT 4
- Share Transformation Files HOT 2
- "Add Transform" not appearing in VS2015 HOT 3
- unable to add transforms to web.config file
- Support for publishing on .NET Core HOT 2
- Support MSbuild variables in transforms? HOT 5
- Reminding me of wrong version HOT 3
- TeamCity build (MSBuild) - cannot delete nuget from packages folder - files in use HOT 1
- Transform is not applied when publishing a console application as an Azure Web Job HOT 2
- Warning that I do not have correct version of SlowCheetah nuget package installed HOT 1
- This repository is now depracated HOT 2
- Compilation error: src\Zen.Databases.DbUp\Zen.Databases.Db.csproj in teamcity HOT 2
- Consider to add support other config file,expect release.debug config file. HOT 1
- 'Preview Transform' does nothing when selected. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slow-cheetah.