slowcheetah

JDT transform to modify N-th array element

好久不见. 提交于 2020-06-13 05:28:13
问题 I am trying to apply a JDT transform to a JSON document in order to modify a property in a N-th array element. Is that possible without having to replace the entire element or even the entire array? { "array": [ { name: "A", value: 0 }, { name: "B", value: 3.14 } ] } Is there a transform that gets me to the following? I want to alter the 2nd array element and only its "value" property. I don't want to search for it by "name" but rather access by index. { "array": [ { name: "A", value: 0 }, {

SlowCheetah transformations of QuartzNet config

℡╲_俬逩灬. 提交于 2020-02-24 17:35:30
问题 I am trying to set up transformation, using SlowCheetah , of a QuartzNet job configuration file. QuartzNet requires the xmlns attribute to be present on the job-scheduling-data node, but the presence of this attribute seems to stop SlowCheetah from running the transformations. Simplified, this is what my scheduling config looks like: <?xml version="1.0" encoding="UTF-8"?> <job-scheduling-data xmlns="http://quartznet.sourceforge.net/JobSchedulingData" xmlns:xsi="http://www.w3.org/2001

app.config Transformations

回眸只為那壹抹淺笑 提交于 2020-01-11 15:44:28
问题 I'm a huge fan of the addition of web.config transformations in Visual Studio 2010. See also Scott Hanselman's recent talk at MIX2011. What sucks is that this functionality (appears at least) to only be available to web projects. In our solution we have several Windows Services that connect to a different database dependant on the environment they are deployed under. Has anyone come up with a nice, tidy way of achieving similar 'app.config transformation' functionality? Note: We are using TFS

Transforming crossdomain.xml on publish in asp.net web application

大憨熊 提交于 2020-01-06 14:26:32
问题 I'm attempting to transform crossdomain.xml for different environments, just like regular web.config files. I've tried using SlowCheetah add-in for visual studio, but it doesn't play well with web applications. It kept publishing transform files along with the transformed file, which i didn't want. Moreover, it did that for web.config transformation as well. My other thought was to rename the file and all transforms to crossdomain.$(Configuration).config in hopes that VS would pick it up and

app.config transformations not applying

故事扮演 提交于 2020-01-06 08:21:46
问题 I'm having an issue with app.config transformations using SlowCheeta not applying on publish. It always uses dbTable, not dbTableLive. app.config <connectionStrings> <add name="db2" connectionString="metadata=res://*/db2.csdl|res://*/db2.ssdl|res://*/db2.msl;provider=System.Data.SqlClient;provider connection string="data source=server;initial catalog=db2Table;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> <add name="db"

app.config transformations not applying

落花浮王杯 提交于 2020-01-06 08:21:03
问题 I'm having an issue with app.config transformations using SlowCheeta not applying on publish. It always uses dbTable, not dbTableLive. app.config <connectionStrings> <add name="db2" connectionString="metadata=res://*/db2.csdl|res://*/db2.ssdl|res://*/db2.msl;provider=System.Data.SqlClient;provider connection string="data source=server;initial catalog=db2Table;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /> <add name="db"

Select node based on child node value in Web.config Transform

主宰稳场 提交于 2020-01-01 05:36:13
问题 I have the following XML in my web config and I would like to select an attribute for removal using web.config transforms, but I would like to select the element for removal based on the value of one of the child elements. My web.config is something like this: <configuration> <sitecore> <scheduling> <agent type="Sitecore.Tasks.DatabaseAgent"> <param desc="database">core</param> </agent> <agent type="Sitecore.Tasks.DatabaseAgent"> <param desc="database">master</param> </agent> </scheduling> <

Using msbuild I want to update a config file with values from teamcity

坚强是说给别人听的谎言 提交于 2019-12-20 08:25:02
问题 I have some XML that looks something like this: <?xml version="1.0" encoding="utf-8"?> <XmlConfig instancetype="XmlConfig, Processing, Version=1.0.0.0, Culture=neutral"> <item> <key>IsTestEnvironment</key> <value>True</value> <encrypted>False</encrypted> </item> <item> <key>HlrFtpPutDir</key> <value>C:\DevPath1</value> <encrypted>False</encrypted> </item> <item> <key>HlrFtpPutCopyDir</key> <value>C:\DevPath2</value> <encrypted>False</encrypted> </item> .... </Provisioning.Lib.Processing

SlowCheetah not transforming file on build

喜欢而已 提交于 2019-12-18 11:11:50
问题 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.