Hi there,
this must be a bug, because this code worked for years now and all of a sudden it throws errors when debugging:
Private Function CreateTM()
Dim srcLang As String = "de-DE"
Dim trgLang As String = "en-US"
If FileExists(TMPath) = True Then
Console.WriteLine("TM already exists and will get overwritten.")
System.IO.File.Delete(TMPath)
End If
Console.WriteLine("Creating TM: " & TMPath)
Dim FileBasedTM As New Sdl.LanguagePlatform.TranslationMemoryApi.FileBasedTranslationMemory(TMPath, "", CultureInfo.GetCultureInfo(srcLang),_
CultureInfo.GetCultureInfo(trgLang), FuzzyIndexes.SourceWordBased, BuiltinRecognizers.RecognizeAll)
Return 0
End Function
The startup element in the .exe.config file is set to <startup useLegacyV2RuntimeActivationPolicy="true">
The error that is thrown is this one:
Can you please look into this urgently?
Thanks a lot in advance.
Tom