Template from svt.caspar.dll

I am using svt.caspar.dll and Svt.Network.dll for retrieving media and templates. These are working fine in server 2.07 and 2.1.
But in server 2.2 I am not getting it. My codes in vb.net for getting templates in a listbox are as follows.

lsttemplate.Items.Clear()
CasparDevice.RefreshTemplates()
Threading.Thread.Sleep(1000)
For Each File In CasparDevice.Templates.All
lsttemplate.Items.Add((Replace((File.FullName), “”, “/”)))
Next
lsttemplate.Refresh()

I have started scanner.exe and getting templates list in console. Even casparcg official client showing template list. But not getting it on my client through dll.

When TLS is executed, and when I debug and I get
CasparDevice.Templates.All.Count=0
CasparDevice.Templates.All.ToString=System.Collections.Generic.List`1[Casparcg.Core.Device.TemplateInfo]

I’m by no means an expert on this workflow, but I believe Server 2.2 uses the Media Scanner for this: https://github.com/CasparCG/media-scanner

It looks like the format of the dat returned over TLS has changed. This is likely confusing that lib, but somehow not the client. This might want to be corrected in media-scanner as it is a breaking change

2.1:

200 TLS OK
"CasparCG_Flash_Templates_Example_Pack_1/ADVANCEDTEMPLATE1" 30327 20180313193300 flash
"CasparCG_Flash_Templates_Example_Pack_1/ADVANCEDTEMPLATE2" 49578 20180313193300 flash

2.2 (media-scanner):

200 TLS OK
CASPARCG_FLASH_TEMPLATES_EXAMPLE_PACK_1/ADVANCEDTEMPLATE1
CASPARCG_FLASH_TEMPLATES_EXAMPLE_PACK_1/ADVANCEDTEMPLATE2

@Julusian CLS response for both 2.1 and 2.2 stable are similar. But media file also doesn’t come with svt.caspar.dll . Is it going to be corrected? How other dotnet clients are managing to get media files from server 2.2 using svt.caspar.dll.

I am not getting media list or template list from svt.caspar.dll in my vb dot net client.
So used following method to do this.

For Clips

 Dim webClient As New System.Net.WebClient
 Dim result As String = webClient.DownloadString("http://" & frmmediaplayer.cmbhost.Text & ":8000/cls")
 Dim bb() = Split(result, vbNewLine)

For templates

 Dim webClient As New System.Net.WebClient
 Dim result As String = webClient.DownloadString("http://" & frmmediaplayer.cmbhost.Text & ":8000/tls")
 Dim bb() = Split(result, vbNewLine)

Here we get an array of string as bb()