@@ -79,39 +79,147 @@ Update references and deployment settings in your .csproj:
7979### Dependency Version Changes
8080Standalone integrations may require binding redirects. Example for ` App.config ` :
8181``` xml
82- <?xml version =" 1.0" encoding =" utf-8" ?>
82+ <?xml version =" 1.0" encoding =" utf-8" ?>
8383<configuration >
8484 <configSections >
85- <section name =" BestMatchServiceUrlsConfig " type =" Sdl.BestMatchServiceStudioIntegration.Common.UrlsConfig, Sdl.BestMatchServiceStudioIntegration.Common " />
85+ <section name =" log4net " type =" log4net.Config.Log4NetConfigurationSectionHandler, log4net " />
8686 </configSections >
87- <BestMatchServiceUrlsConfig GlobalApi =" https://api.cloud.trados.com" auth0 =" https://sdl-prod.eu.auth0.com" >
88- <LanguageConfig >
89- <Lang Code =" en" />
90- <Lang Code =" de" />
91- <Lang Code =" fr" />
92- <Lang Code =" es" />
93- <Lang Code =" ja" />
94- <Lang Code =" it" />
95- <Lang Code =" zh-CN" />
96- </LanguageConfig >
97- <HavingTroubleSigningIn url =" https://gateway.sdl.com/apex/communityknowledge?articleName=000001399" />
98- </BestMatchServiceUrlsConfig >
87+ <startup useLegacyV2RuntimeActivationPolicy =" true" >
88+ <supportedRuntime version =" v4.0" sku =" .NETFramework,Version=v4.8" />
89+ </startup >
90+
9991 <runtime >
100- <NetFx40_PInvokeStackResilience enabled =" 1" />
101- <legacyCorruptedStateExceptionsPolicy enabled =" true" />
102- <ThrowUnobservedTaskException enabled =" true" />
10392 <assemblyBinding xmlns =" urn:schemas-microsoft-com:asm.v1" >
10493 <dependentAssembly >
105- <assemblyIdentity name =" Microsoft.Extensions.DependencyModel" publicKeyToken =" adb9793829ddae60" culture =" neutral" />
106- <bindingRedirect oldVersion =" 0.0.0.0-7.0.0.0" newVersion =" 7.0.0.0" />
107- </dependentAssembly >
94+ <assemblyIdentity name =" System.Memory"
95+ publicKeyToken =" cc7b13ffcd2ddd51"
96+ culture =" neutral" />
97+ <bindingRedirect oldVersion =" 0.0.0.0-4.0.1.2"
98+ newVersion =" 4.0.1.2" />
99+ </dependentAssembly >
100+ <dependentAssembly >
101+ <assemblyIdentity name =" System.Runtime.CompilerServices.Unsafe"
102+ publicKeyToken =" b03f5f7f11d50a3a"
103+ culture =" neutral" />
104+ <bindingRedirect oldVersion =" 0.0.0.0-65535.65535.65535.65535"
105+ newVersion =" 6.0.0.0" />
106+ </dependentAssembly >
107+ <dependentAssembly >
108+ <assemblyIdentity name =" Microsoft.Extensions.Logging"
109+ publicKeyToken =" adb9793829ddae60"
110+ culture =" neutral" />
111+ <bindingRedirect oldVersion =" 0.0.0.0-65535.65535.65535.65535"
112+ newVersion =" 8.0.0.0" />
113+ </dependentAssembly >
114+ <dependentAssembly >
115+ <assemblyIdentity name =" Microsoft.Extensions.Logging.Abstractions"
116+ publicKeyToken =" adb9793829ddae60"
117+ culture =" neutral" />
118+ <bindingRedirect oldVersion =" 0.0.0.0-65535.65535.65535.65535"
119+ newVersion =" 8.0.0.2" />
120+ </dependentAssembly >
121+ <dependentAssembly >
122+ <assemblyIdentity name =" Microsoft.Extensions.Options"
123+ publicKeyToken =" adb9793829ddae60"
124+ culture =" neutral" />
125+ <bindingRedirect oldVersion =" 0.0.0.0-65535.65535.65535.65535"
126+ newVersion =" 8.0.0.2" />
127+ </dependentAssembly >
128+ <dependentAssembly >
129+ <assemblyIdentity name =" System.Collections.Immutable"
130+ publicKeyToken =" b03f5f7f11d50a3a"
131+ culture =" neutral" />
132+ <bindingRedirect oldVersion =" 0.0.0.0-65535.65535.65535.65535"
133+ newVersion =" 8.0.0.0" />
134+ </dependentAssembly >
135+ <dependentAssembly >
136+ <assemblyIdentity name =" System.Text.Encoding.CodePages"
137+ publicKeyToken =" b03f5f7f11d50a3a"
138+ culture =" neutral" />
139+ <bindingRedirect oldVersion =" 0.0.0.0-65535.65535.65535.65535"
140+ newVersion =" 8.0.0.0" />
141+ </dependentAssembly >
142+ <dependentAssembly >
143+ <assemblyIdentity name =" System.Threading.Tasks.Extensions"
144+ publicKeyToken =" cc7b13ffcd2ddd51"
145+ culture =" neutral" />
146+ <bindingRedirect oldVersion =" 0.0.0.0-4.2.0.1"
147+ newVersion =" 4.2.0.1" />
148+ </dependentAssembly >
149+ <dependentAssembly >
150+ <assemblyIdentity name =" System.Text.Json"
151+ publicKeyToken =" cc7b13ffcd2ddd51"
152+ culture =" neutral" />
153+ <bindingRedirect oldVersion =" 0.0.0.0-8.0.0.6"
154+ newVersion =" 8.0.0.6" />
155+ </dependentAssembly >
156+ <dependentAssembly >
157+ <assemblyIdentity name =" Microsoft.Bcl.AsyncInterfaces"
158+ publicKeyToken =" cc7b13ffcd2ddd51"
159+ culture =" neutral" />
160+ <bindingRedirect oldVersion =" 0.0.0.0-8.0.0.0"
161+ newVersion =" 8.0.0.0" />
162+ </dependentAssembly >
163+ <dependentAssembly >
164+ <assemblyIdentity name =" System.Diagnostics.DiagnosticSource"
165+ publicKeyToken =" cc7b13ffcd2ddd51"
166+ culture =" neutral" />
167+ <bindingRedirect oldVersion =" 0.0.0.0-8.0.0.1"
168+ newVersion =" 8.0.0.1" />
169+ </dependentAssembly >
170+ <dependentAssembly >
171+ <assemblyIdentity name =" Microsoft.Extensions.DependencyInjection.Abstractions"
172+ publicKeyToken =" adb9793829ddae60"
173+ culture =" neutral" />
174+ <bindingRedirect oldVersion =" 0.0.0.0-8.0.0.2"
175+ newVersion =" 8.0.0.2" />
176+ </dependentAssembly >
177+ <dependentAssembly >
178+ <assemblyIdentity name =" Microsoft.Extensions.DependencyInjection"
179+ publicKeyToken =" adb9793829ddae60"
180+ culture =" neutral" />
181+ <bindingRedirect oldVersion =" 0.0.0.0-8.0.0.0"
182+ newVersion =" 8.0.0.1" />
183+ </dependentAssembly >
108184 </assemblyBinding >
109185 </runtime >
110- <startup >
111- <supportedRuntime version =" v4.0" sku =" .NETFramework,Version=v4.8" />
112- </startup >
186+
187+ <log4net >
188+ <!-- Set levels to DEBUG for extended logging information -->
189+ <appender name =" RollingFile" type =" Sdl.Desktop.Logger.LocalUserAppDataFileAppender, Sdl.Desktop.Logger" >
190+ </appender >
191+ <!-- output to debug string -->
192+ <appender name =" OutputDebug" type =" log4net.Appender.OutputDebugStringAppender" >
193+ <layout type =" log4net.Layout.PatternLayout" >
194+ <conversionPattern value =" %date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
195+ </layout >
196+ </appender >
197+ <root >
198+ <level value =" INFO" />
199+ <appender-ref ref =" RollingFile" />
200+ <appender-ref ref =" OutputDebug" />
201+ </root >
202+ <logger name =" Sdl.TranslationStudio" >
203+ <level value =" INFO" />
204+ </logger >
205+ <logger name =" Sdl.Desktop" >
206+ <level value =" INFO" />
207+ </logger >
208+ <logger name =" Sdl.ProjectApi" >
209+ <level value =" INFO" />
210+ </logger >
211+ <logger name =" Licensing" >
212+ <level value =" INFO" />
213+ </logger >
214+ <!-- <logger name="Sdl.MultiTerm">
215+ <level value="DEBUG"/>
216+ </logger>-->
217+ </log4net >
113218</configuration >
114219```
220+ In most cases, this will be sufficient to enable proper interaction with the Studio APIs.
221+
222+ If the application still fails to work as expected, an alternative approach is to copy the entire configuration from the Trados Studio executable configuration file (` SdlTradosStudio.exe.config ` ) into your application's ` app.config ` . This ensures that all necessary runtime and binding settings are aligned with those expected by Studio.
115223<br />
116224
117225## Breaking API Changes
0 commit comments