web.config-transform

MSDeploy setParameter not working

吃可爱长大的小学妹 提交于 2019-12-04 02:09:31
We are trying to integrate a 'build once, deploy anywhere' model in our build-deploy system. MSDeploy works wonders for this, cutting down build time dramatically with CRC checksum comparisons and ( for the most part ) it works just as well when using parameterisation to change applications web.configs depending on the environment we deploy to. I have the majority of these parameters nailed down, but a few elements and attributes never seem to change, no matter how many different ways I call them in the parameters.xml file. I have outlined three examples of this, here is the web.config file I

Relationship between solution configuration, publish profile, and web.config transforms

我只是一个虾纸丫 提交于 2019-12-03 07:07:39
I have the following setup in a Visual Studio 2013 ASP.NET Web API 2 project. Web.Develop.config web transform to set an app settings key value Web.Release.config web transform to remove an app settings key Develop.pubxml to map to the Web.Develop.config transform Release.pubxml to map to the Web.Release.config transform Details for each are found below. <!-- Web.Develop.config (Web Config Transform) --> <appSettings> <add key="ReportInputPath" value="DevelopPath" xdt:Transform="SetAttributes" xdt:Locator="Match(key)" /> </appSettings> <!-- Web.Release.config (Web Config Transform) -->

What TFS 2017 build task applies web.config transforms during TFS builds?

ぃ、小莉子 提交于 2019-12-02 09:31:46
问题 Some original info was changed to make the post more focused on the real issue after it was found. These are some of the details of the current environment. I listed these only because questions were raised in other posts to determine what was and was not working in the current environment: Upon check-in TFS 2017 successfully builds a web project on the build agent. A VS 2017 publish profile can manually transform the project properly The build machine artifact location includes both the

What TFS 2017 build task applies web.config transforms during TFS builds?

孤街浪徒 提交于 2019-12-02 04:06:12
Some original info was changed to make the post more focused on the real issue after it was found. These are some of the details of the current environment. I listed these only because questions were raised in other posts to determine what was and was not working in the current environment: Upon check-in TFS 2017 successfully builds a web project on the build agent. A VS 2017 publish profile can manually transform the project properly The build machine artifact location includes both the transform and profile files The artifact location is shown below: I have researched this in depth on

SlowCheetah not transforming file on build

无人久伴 提交于 2019-11-30 01:27:26
I have a project I am trying to use SlowCheetah for. I have created my config file (Test.web.config) and all the transformations I want to use (Debug_Mock.config, Debug_SQL.config, Release) in my Build configuration I have a post-build event is supposed to copy the transformed file into another directory but the file cannot be found (error xcopy exited with code 4) SlowCheetah doesn't seem to be transforming the file and placing it in the output directory (bin folder) like I would expect. Does anyone have any ideas as to why it is not happening, maybe a setting somewhere? FYI: This process

Is it possible to add security section in web.config to external file

你说的曾经没有我的故事 提交于 2019-11-29 23:22:34
问题 I need block a huge IP list via config file <security> <ipSecurity allowUnlisted="true"> <clear /> <add ipAddress="1.0.1.0" subnetMask="255.255.255.0" /> <add ipAddress="1.0.2.0" subnetMask="255.255.254.0" /> <add ipAddress="1.0.8.0" subnetMask="255.255.248.0" /> <add ipAddress="1.0.32.0" subnetMask="255.255.224.0" /> ... </ipSecurity> </security> Is it possible to add security section in web.config to external file ? 回答1: c:\Windows\system32\inetsrv\config\applicationHost.config change the

How do I make entity-framework migrations use web.config transforms?

守給你的承諾、 提交于 2019-11-29 14:39:36
When you apply any commands like 'update-database' 'add-migration' The EF uses the connection string in your main web.config even if you have configured web.debug.config and web.release.config with xml transformation This means, I have to go in and risk forgetting to change my true web.config back prior to a release. I think the only way to run web.config transformations locally is to use MSBuild with the following parameters, where [YourTransformationConfiguration] is the name of the configuration to use, e.g. Debug or Release: msbuild PathToProject /T:Package /P:Configuration=

Web.config Transformations in VS2008

帅比萌擦擦* 提交于 2019-11-28 10:43:16
问题 How can I perform web.config transformations using Visual Studio 2008? Someone had asked me if you can perform config transformations in Visual Studio 2008. I know you can as I do remember several articles on this. However, I can't seem to find any of the links as of now. Can anyone point to an article on Google/Bing/Search of the week and/or provide a quick sample so that I may pass it on? Everything I'm finding targets 2010. 回答1: There you go: Visual Studio 2008: http://blog.hmobius.com

How do I make entity-framework migrations use web.config transforms?

我们两清 提交于 2019-11-28 08:31:13
问题 When you apply any commands like 'update-database' 'add-migration' The EF uses the connection string in your main web.config even if you have configured web.debug.config and web.release.config with xml transformation This means, I have to go in and risk forgetting to change my true web.config back prior to a release. 回答1: I think the only way to run web.config transformations locally is to use MSBuild with the following parameters, where [YourTransformationConfiguration] is the name of the