How do I get VS Installer to transform appsetting.json file as per SlowCheetah file transformations in an .net6 desktop app?

Terry Carnes 0 Reputation points
2023-02-06T22:32:31.06+00:00

I am working with a C# Windows Forms App .NET 6.0. We have several different environments (dev, qat, etc) and I have created SlowCheetah transform files for each of them. When I compile in the various environments, the appsettings.json file which is created and placed in the ...\bin\<Environment>\net6.0-windows folder contains the proper translations.

However, when we create the .msi files (or if I right-click and select install on the Setup project) I get the original appsettings.json file without the correct substitutions.

What am I missing? It appears that the MS VS Setup project is not acknowledging the SlowCheetah transform files which work fine when I compile (F5).

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,820 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,343 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,194 questions
{count} votes