slowcheetah

Tools for previewing configuration file transformations

蹲街弑〆低调 提交于 2019-12-03 09:02:45
问题 Are there any tools or Visual Studio 2010 extensions which allow me to view the output of a configuration file transformation short of having to publish the entire project? Is the process which performs the transformation directly invokable? Edit After a little more Googling I came across this: Step 4: Generating a new transformed web.config file for “Staging” environment from command line Open Visual Studio Command prompt by going to Start --> Program Files –> Visual Studio v10.0 –> Visual

How to transform log4net config like web.config?

陌路散爱 提交于 2019-12-03 08:17:16
问题 From my .csproj file: <Content Include="log4net.config"> <SubType>Designer</SubType> </Content> <Content Include="log4net.Release.config"> <DependentUpon>log4net.config</DependentUpon> </Content> <Content Include="log4net.Debug.config"> <DependentUpon>log4net.config</DependentUpon> </Content> <Content Include="log4net.Live.config"> <DependentUpon>log4net.config</DependentUpon> </Content> <Content Include="log4net.Demo.config"> <DependentUpon>log4net.config</DependentUpon> </Content> At the

App.config replacements for unit tests

不问归期 提交于 2019-12-03 06:04:39
问题 my continuous integration server (TeamCity) is configured to run all the unit tests in our app on build. Prior to running those tests, i need to change some of the appSettings to make them valid for our CI server. I'm achieving something similar for my web project by using the deployment project provided with Visual Studio. Can i do the same for a Test project? Thanks, Gonzalo 回答1: It's possible to use Web.config Transformations for App.config files through a workaround. You simply have to

Tools for previewing configuration file transformations

杀马特。学长 韩版系。学妹 提交于 2019-12-03 00:37:30
Are there any tools or Visual Studio 2010 extensions which allow me to view the output of a configuration file transformation short of having to publish the entire project? Is the process which performs the transformation directly invokable? Edit After a little more Googling I came across this : Step 4: Generating a new transformed web.config file for “Staging” environment from command line Open Visual Studio Command prompt by going to Start --> Program Files –> Visual Studio v10.0 –> Visual Studio tools –> Visual Studio 10.0 Command Prompt Type “MSBuild “Path to Application project file (

How to transform log4net config like web.config?

血红的双手。 提交于 2019-12-02 20:53:26
From my .csproj file: <Content Include="log4net.config"> <SubType>Designer</SubType> </Content> <Content Include="log4net.Release.config"> <DependentUpon>log4net.config</DependentUpon> </Content> <Content Include="log4net.Debug.config"> <DependentUpon>log4net.config</DependentUpon> </Content> <Content Include="log4net.Live.config"> <DependentUpon>log4net.config</DependentUpon> </Content> <Content Include="log4net.Demo.config"> <DependentUpon>log4net.config</DependentUpon> </Content> At the bottom of my .csproj file: <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import

app.config Transformations

房东的猫 提交于 2019-12-02 17:33:56
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 2010 to build our solutions in a Continuous Integration manner. You can use the XML transformation

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

风格不统一 提交于 2019-12-02 14:10:11
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.XmlConfig> In TeamCity I have many system properties: system.HlrFtpPutDir H:\ReleasePath1 system

Slowcheetah installed but there's no transform option

天大地大妈咪最大 提交于 2019-12-01 19:36:03
问题 I have a .NET 4.5 project with MVC 5 and EF 6, in Visual Studio 2013. I want to have transforms for app.config. I've installed the SlowCheetah project via NuGet, and (supposedly)[https://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5] now I should be able to right-click on App.config and see the option Add Transform. But I don't. Does anyone know what are the possible reasons for this? I've checked that the package is installed in both projects in my solution,

tracking NullReferenceExceptions in sitecore

谁说胖子不能爱 提交于 2019-12-01 16:43:19
问题 i'm trying to track a NullReferenceException that shows up on sitecore 6.5 at loading any webpage: [NullReferenceException: Object reference not set to an instance of an object.] Sitecore.Diagnostics.Log.Error(String message, Exception exception, Type ownerType) +133 Sitecore.Diagnostics.Log.Error(String message, Type ownerType) +45 Sitecore.Configuration.Factory.LoadAutoIncludeFiles(ConfigPatcher patcher, String folder) +680 Sitecore.Configuration.Factory.LoadAutoIncludeFiles(XmlNode element

The “SlowCheetah.Xdt.TransformXml” task could not be loaded from the assembly

青春壹個敷衍的年華 提交于 2019-11-30 10:55:26
问题 After installing Slow Cheeath (v. 2.5.10.3) to two projects in my solution, I am receiving the following error: "The "SlowCheetah.Xdt.TransformXml" task could not be loaded from the assembly C:\Users \User\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.2\SlowCheetah.Xdt.dll. Could not load file or assembly 'file:///C:\Users\User\AppData\Local\Microsoft\MSBuild \SlowCheetah\v2.5.10.2\SlowCheetah.Xdt.dll' or one of its dependencies. The system cannot find the file specified. Confirm that