slowcheetah

Slowcheetah Transforms for Azure Webjobs

青春壹個敷衍的年華 提交于 2019-12-12 14:33:27
问题 In my experience, Slowcheetah does not work with Azure Webjobs. I'm just looking for confirmation as to whether this is the case (or not). Cheers 回答1: I've used this tutorial and it work fine : SlowCheetah VS 2015. Keep in mind that a webjob is just a console app (and more...) Add the slowcheetah nuget package to your webjob project. Add the app.config transform to your project, for example app.Debug.config and app.Release.config Edit your *.csproj file and add these lines (depending on the

Recommended way to build a .NET project with selectable configurations

£可爱£侵袭症+ 提交于 2019-12-11 07:33:00
问题 Suppose I have a .NET project that builds successfully. Now, I need to selectively build to different environments, such as DEV, QA, and PROD. Each require their own config files (app.config for instance) to contain corresponding connection strings and other settings. I've looked at simple pre-build scripting, such as this one from Scott Hanselman. It works, but my problem is that the pre-build step modifies the source. Simply building the project will overwrite source files and unnecessarily

Web.config transformation with SlowCheetah and ASP.NET Web site project

元气小坏坏 提交于 2019-12-08 19:28:46
问题 I'm trying to use SlowCheetah XML Transforms with an ASP.NET Web site project (not an ASP.NET Web Application Project) in Visual Studio 2010. When I right click on the Web.config file in my ASP.NET Web site project, I don't see " Add Transform " item in the contextual menu. (Note: it works well when a try with an ASP.NET Web Application Project). Is it possible to use SlowCheetah with an ASP.NET Web site project ? Or it's impossible "by design" because this kind of project has limitations ?

Can you call Slow Cheetah from the command line?

亡梦爱人 提交于 2019-12-07 18:00:27
问题 Can you call Slow Cheetah from the command line? I am looking to add a post build event to transform my config file for a variety of different environments. Cheers Dee 回答1: I had an issue with AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll" Changing that to AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.targets" Allows it to run more dynamically without having to

Development and Production databases

淺唱寂寞╮ 提交于 2019-12-07 11:32:18
问题 I and my team are currently doing a project, where we are using Entity Framework 4.1 (Code First). We want to write some tests, but we don't want them to run on our primary database, as we have a team in Singapore writing a client for what we do, and they are hitting that database constantly. So to avoid disturbance when running our tests, we would like to have a different database for testing. How do we handle a second database when using Entity Framework? We want a solution that is semi

Can multiple build configs share one config transformation?

匆匆过客 提交于 2019-12-07 05:11:02
问题 I'm using SlowCheetah for XML transforming a bunch of config files in a project. However, this same solution is part of a load balanced setup, where some config values differ between the different servers (two, in this case). I have the following build configs Debug Release Release.Test Release.Prod1 Release.Prod2 Almost everything in Release.Prod1 and Release.Prod2 is identical, except for some values in one of the config files. Is there any way I can have a file like Something.Release.Prod

Unable to Remove Web.Config Nodes using Transform

元气小坏坏 提交于 2019-12-06 18:47:33
问题 I have a web.config containing rewrite rules like this: <system.webServer> <rewrite> <rules><!-- Some rules here --></rules> </rewrite> </system.webServer> For a particular deployment configuration, I want to remove the <rewrite> node entirely. I tried doing this: <system.web> <rewrite xdt:Transform="RemoveAll" /> </system.web> Based on this documentation: http://msdn.microsoft.com/en-us/library/dd465326.aspx but the <rewrite> node remains. What am I missing? 回答1: Hmm I just tried this here

Can multiple build configs share one config transformation?

北战南征 提交于 2019-12-05 11:17:22
I'm using SlowCheetah for XML transforming a bunch of config files in a project. However, this same solution is part of a load balanced setup, where some config values differ between the different servers (two, in this case). I have the following build configs Debug Release Release.Test Release.Prod1 Release.Prod2 Almost everything in Release.Prod1 and Release.Prod2 is identical, except for some values in one of the config files. Is there any way I can have a file like Something.Release.Prod.Config to be used on both of these build configs instead of having two identical files ( Something

Unable to Remove Web.Config Nodes using Transform

大兔子大兔子 提交于 2019-12-05 00:40:01
I have a web.config containing rewrite rules like this: <system.webServer> <rewrite> <rules><!-- Some rules here --></rules> </rewrite> </system.webServer> For a particular deployment configuration, I want to remove the <rewrite> node entirely. I tried doing this: <system.web> <rewrite xdt:Transform="RemoveAll" /> </system.web> Based on this documentation: http://msdn.microsoft.com/en-us/library/dd465326.aspx but the <rewrite> node remains. What am I missing? Sayed Ibrahim Hashimi Hmm I just tried this here is my transform file. <configuration xmlns:xdt="http://schemas.microsoft.com/XML

SlowCheetah executes after post-build events

房东的猫 提交于 2019-12-04 03:28:43
问题 I use SlowCheetah to transform my app.configs. I have a multi-project solution where one of the projects executes a post-build event where the output of the bin is copied elsewhere. I've found that SlowCheetah does it's transforms after the post-build event, so the app.config I'm copying is the pre-transformed version. Does anyone have a suggestion of how I can execute my copy after the SlowCheetah transforms? Is this going to require that I write a custom build task? 回答1: If you are using