CF5
CF5

Reputation: 1173

SlowCheetah not previewing transform on deployment profile

I have a webjob that I am looking to transform the app.config on. I have installed SlowCheetah and it works fine with a transform for release and debug versions. However if I try to use it with the transformations for specific deployment profiles to azure, I get nothing on the preview transform. The option is there, but nothing happens when I click it. This also means that the standard app.config is applied on deployment.

Any help would be great,

Thanks

Upvotes: 0

Views: 762

Answers (1)

Brando Zhang
Brando Zhang

Reputation: 28067

According to your description, I have installed the SlowCheetah and test it in my side, it works well.

So I suggest you could follow below steps to reinstall the SlowCheetah and try again.

1.Download it and install.

2.Add the app.config transform to your project, for example app.Debug.config and app.Release.config

3.Open your *.csproj file and you will find these lines (depending on the name and number of transformation you want :

<None Include="App.Release.config">
    <DependentUpon>App.config</DependentUpon>
    <TransformOnBuild>True</TransformOnBuild>
</None>
<None Include="App.Debug.config">
    <DependentUpon>App.config</DependentUpon>
    <TransformOnBuild>True</TransformOnBuild>
</None>

above these lines :

<None Include="App.config">
    <TransformOnBuild>true</TransformOnBuild>
    <SubType>Designer</SubType>
</None>

4. Reload your project and it should work.

The result is like this:

enter image description here


Update:

I guess you don't add the new build configuration to your web job application.

So you will find the preview is not work well.

I suggest you could follow below steps to add new build configuration.

1.Open configuration manager

enter image description here

2.Add new confiuration

enter image description here

3.Add transform

enter image description here

4.Preview

enter image description here

Upvotes: 3

Related Questions