Compile TCA directly from source

We have recently switch from the G120 to the SCM20260E, but we have trouble flashing the tca file from our production test software using the following DLLs.
GHIElectronics.Bootloader.Interface.dll
GHIElectronics.TinyCLR.Debugger.dll

Is there an example of how to flash the tca file from a .net framework application.?

How do i get this to work.?

My code.

uint[] ApplicationKey = new uint[] { 0x901c3bb8, 0xb3234a68, 0xa9ffef0a, 0x59e5fc3d };
Byte[] tcaData = null;
Byte[] tcaData2 = null;

if (File.Exists(filePath1))
{
    tcaData = File.ReadAllBytes(filePath1);
}

tcaData2 = new Byte[tcaData.Length - 0x400];

Array.Copy(tcaData, 0x400, tcaData2, 0, tcaData.Length - 0x400);

GHIElectronics.Bootloader.Interface.Xtea xtea = new Xtea(ApplicationKey);

xtea.Decrypt(tcaData, 0, tcaData.Length);

if (mFDevice.Deploy(tcaData))
{
    Console.WriteLine("Update Ok");
    mFDevice.Execute(0);
}

To be clear, everything is working well for you and can load using the config tool? But you need to load using your own application instead of the config tool?

Where can the GHIElectronics Config dll’s be found for TinyCLR 2.0 for creating a .net app for automating the deployment process? The original post referenced using TinyCLR 1.0 Dlls that came with TinyCLR Config.