Comments (6)
in the csproj file I found the following changes.
-
A new PropertyGroup Node Added under Project Node
<PropertyGroup>
<SlowCheetahTargets Condition=" '$(SlowCheetahTargets)'=='' ">$(LOCALAPPDATA)\Microsoft\MSBuild\SlowCheetah\v1\SlowCheetah.Transforms.targets</SlowCheetahTargets>
</PropertyGroup> - A new TransformOnBuild Node Added at Project/ItemGroup/Content[@include="Web.config"] <TransformOnBuild>true</TransformOnBuild>
-
and for each tranform file a new "IsTransformFile" Node added under
Project/ItemGroup/Content[@include="Web.1.debug.config"]
<IsTransformFile>True</IsTransformFile> -
A new Import Node Added under Project Node(at the end of file)
<Import Project="$(SlowCheetahTargets)" Condition="Exists('$(SlowCheetahTargets)')" />
All the changes can be un done except the 3rd one if we want to keep the "Preview transform" action live.
from slow-cheetah.
Interesting thanks, I wasn't aware of this behavior. I will take a look at this but probably not until a week or two. Currently I'm away from home and focused some speaking that I'm doing.
from slow-cheetah.
In this case I do agree that we could prevent adding those items to the project file if we are considering only web.config. For other files we need to update the project to ensure that they get transformed. In your case are you discussing previewing of web.config specifically? I want to make sure that I understand your issue before working to solve it.
from slow-cheetah.
Yes, I am discussing for previewing only.
from slow-cheetah.
I verified that for the Preview command it will not modify the project. I did make a change to exclude the "Add Transform" command for web.config since it has its own "Add Config Transform" command which will not modify the project. This change was made in commit a067a73. I've got a new build available at https://dl.dropbox.com/u/40134810/SlowCheetah/SlowCheetah-a067a7375d.zip. I would appreciate if you verify it. For now I'm going to close this item because I think it's resolved. Let me know if I mis-understood anything or didn't fix it correctly.
from slow-cheetah.
The fix to this has been released at http://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5/.
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.