From fe3d242677a83fd910310f80d9c38dd63a7c56aa Mon Sep 17 00:00:00 2001 From: v-mdriml Date: Mon, 5 Mar 2018 13:21:31 +0100 Subject: [PATCH 1/4] LOC CHECKIN | vs-threading Microsoft/v15.6 | 2018-03-05 --- ...oft.VisualStudio.Threading.Analyzers.cs.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.de.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.es.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.fr.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.it.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.ja.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.ko.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.pl.xlf | 18 ++++++++---------- ....VisualStudio.Threading.Analyzers.pt-BR.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.ru.xlf | 18 ++++++++---------- ...oft.VisualStudio.Threading.Analyzers.tr.xlf | 18 ++++++++---------- ...isualStudio.Threading.Analyzers.zh-Hans.xlf | 18 ++++++++---------- ...isualStudio.Threading.Analyzers.zh-Hant.xlf | 18 ++++++++---------- .../Microsoft.VisualStudio.Threading.cs.xlf | 2 +- .../Microsoft.VisualStudio.Threading.de.xlf | 2 +- .../Microsoft.VisualStudio.Threading.es.xlf | 2 +- .../Microsoft.VisualStudio.Threading.fr.xlf | 2 +- .../Microsoft.VisualStudio.Threading.it.xlf | 2 +- .../Microsoft.VisualStudio.Threading.ja.xlf | 2 +- .../Microsoft.VisualStudio.Threading.ko.xlf | 2 +- .../Microsoft.VisualStudio.Threading.pl.xlf | 2 +- .../Microsoft.VisualStudio.Threading.pt-BR.xlf | 2 +- .../Microsoft.VisualStudio.Threading.ru.xlf | 2 +- .../Microsoft.VisualStudio.Threading.tr.xlf | 2 +- ...icrosoft.VisualStudio.Threading.zh-Hans.xlf | 2 +- ...icrosoft.VisualStudio.Threading.zh-Hant.xlf | 2 +- 26 files changed, 117 insertions(+), 143 deletions(-) diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.cs.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.cs.xlf index 6978353df..2b1024a37 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.cs.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.cs.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Službu Visual Studio {0} je třeba používat explicitně v hlavním vlákně. -Nejprve zavolejte ThreadHelper.ThrowIfNotOnUIThread() nebo počkejte na JoinableTaskFactory.SwitchToMainThreadAsync(). - Please verify the translation’s accuracy as the source string was updated after it was translated. + Typ {0} by se měl používat explicitně v hlavním vlákně. +Zavolejte metodu {1}() nebo nejdříve počkejte na dokončení volání metody JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - Použití služeb VS z vlákna uživatelského rozhraní - Please verify the translation’s accuracy as the source string was updated after it was translated. + Vyvolání typů s jedním vláknem z hlavního vlákna Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Použijte raději AsyncLazy<T>. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + Kontroly spřažení vláken by měly být bez podmínek. Assert thread affinity unconditionally - Assert thread affinity unconditionally + Vyhodnotit spřažení vláken bez podmínek The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + Typ {0} by se měl používat explicitně v hlavním vlákně. +Nejdříve počkejte na dokončení volání metody JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.de.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.de.xlf index 84e993f15..5f666c0ee 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.de.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.de.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Der Visual Studio-Dienst "{0}" sollte explizit im Hauptthread verwendet werden. -Rufen Sie "ThreadHelper.ThrowIfNotOnUIThread()" auf, oder warten Sie zuerst auf "JoinableTaskFactory.SwitchToMainThreadAsync()". - Please verify the translation’s accuracy as the source string was updated after it was translated. + Der Typ "{0}" muss explizit im Hauptthread verwendet werden. +Rufen Sie "{1}()" auf, oder warten Sie zuerst auf "JoinableTaskFactory.SwitchToMainThreadAsync()". {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - VS-Dienste aus dem UI-Thread verwenden - Please verify the translation’s accuracy as the source string was updated after it was translated. + Singlethread-Typen im Hauptthread aufrufen Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Verwenden Sie stattdessen "AsyncLazy<T>". Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + Überprüfungen der Threadaffinität dürfen keine Bedingungen umfassen. Assert thread affinity unconditionally - Assert thread affinity unconditionally + Threadaffinität ohne Bedingungen bestätigen The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + Der Typ "{0}" muss explizit im Hauptthread verwendet werden. +Warten Sie zuerst auf "JoinableTaskFactory.SwitchToMainThreadAsync()". {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.es.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.es.xlf index d1d09ffa8..fe0a727d2 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.es.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.es.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - El servicio "{0}" de Visual Studio debe usarse explícitamente en el subproceso principal. -Llame a ThreadHelper.ThrowIfNotOnUIThread() o el elemento await JoinableTaskFactory.SwitchToMainThreadAsync() en primer lugar. - Please verify the translation’s accuracy as the source string was updated after it was translated. + El tipo "{0}" debe usarse en el subproceso principal de forma explícita. +Llame a {1}() o use await JoinableTaskFactory.SwitchToMainThreadAsync() primero. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - Use servicios de VS desde el subproceso de IU - Please verify the translation’s accuracy as the source string was updated after it was translated. + Invocar tipos uniproceso en el subproceso principal Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Use AsyncLazy<T> en su lugar. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + Las comprobaciones de afinidad de subproceso deben ser incondicionales. Assert thread affinity unconditionally - Assert thread affinity unconditionally + Declarar afinidad de subproceso incondicionalmente The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + El tipo "{0}" debe usarse en el subproceso principal de forma explícita. +Use await JoinableTaskFactory.SwitchToMainThreadAsync() primero. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.fr.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.fr.xlf index 65a16a595..3951d7abf 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.fr.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.fr.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Le service Visual Studio "{0}"doit être utilisé sur le thread principal de manière explicite. -Appelez ThreadHelper.ThrowIfNotOnUIThread() ou attendez d'abord JoinableTaskFactory.SwitchToMainThreadAsync(). - Please verify the translation’s accuracy as the source string was updated after it was translated. + Le type "{0}"doit être utilisé sur le thread principal de manière explicite. +Appelez {1}() ou attendez d'abord JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - Utiliser les services VS à partir du thread d’interface utilisateur - Please verify the translation’s accuracy as the source string was updated after it was translated. + Appeler les types à thread unique sur le thread principal Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Utilisez AsyncLazy<T> à la place Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + Les vérifications d'affinité de thread doivent être inconditionnelles. Assert thread affinity unconditionally - Assert thread affinity unconditionally + Effectuer l'assertion de l'affinité de thread de manière inconditionnelle The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + Le type "{0}"doit être utilisé sur le thread principal de manière explicite. +Attendez d'abord JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.it.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.it.xlf index 1dde34ccc..1683aff0f 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.it.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.it.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Il servizio "{0}" di Visual Studio non deve essere usato sul thread principale in modo esplicito. -Chiamare prima ThreadHelper.ThrowIfNotOnUIThread() o await JoinableTaskFactory.SwitchToMainThreadAsync(). - Please verify the translation’s accuracy as the source string was updated after it was translated. + Il tipo "{0}" deve essere usato sul thread principale in modo esplicito. +Chiamare {1}() o usare prima await JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - Usa i servizi di Visual Studio dal thread dell'interfaccia utente - Please verify the translation’s accuracy as the source string was updated after it was translated. + Richiamare tipi a thread singolo sul thread principale Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ In alternativa, usare AsyncLazy<T>. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + I controlli di affinità dei thread non devono essere condizionali. Assert thread affinity unconditionally - Assert thread affinity unconditionally + Asserisci l'affinità dei thread in modo non condizionale The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + Il tipo "{0}" deve essere usato sul thread principale in modo esplicito. +Usare prima await JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ja.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ja.xlf index 5a79c4e0a..b19280252 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ja.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ja.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Visual Studio サービス "{0}" は、明示的にメイン スレッドで使用する必要があります。 -ThreadHelper.ThrowIfNotOnUIThread() を呼び出すか、まず JoinableTaskFactory.SwitchToMainThreadAsync() を待機してください。 - Please verify the translation’s accuracy as the source string was updated after it was translated. + 型 "{0}" は、明示的にメイン スレッドで使用する必要があります。 +{1}() を呼び出すか、まず JoinableTaskFactory.SwitchToMainThreadAsync() を待機してください。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - UI スレッドから VS サービスを使用する - Please verify the translation’s accuracy as the source string was updated after it was translated. + メイン スレッドでシングルスレッド型を呼び出す Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Use AsyncLazy<T> instead. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + スレッド アフィニティ チェックは、無条件である必要があります。 Assert thread affinity unconditionally - Assert thread affinity unconditionally + スレッド アフィニティを無条件でアサートする The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + 型 "{0}" は明示的にメイン スレッドで使用する必要があります。 +まず JoinableTaskFactory.SwitchToMainThreadAsync() を待機してください。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ko.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ko.xlf index da317e3a1..7d0ef8e32 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ko.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ko.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - 주 스레드에서 Visual Studio 서비스 "{0}"을(를) 명시적으로 사용해야 합니다. -ThreadHelper.ThrowIfNotOnUIThread()를 호출하거나, 우선 JoinableTaskFactory.SwitchToMainThreadAsync()를 대기합니다. - Please verify the translation’s accuracy as the source string was updated after it was translated. + 주 스레드에서 형식 "{0}"을(를) 명시적으로 사용해야 합니다. +{1}()을(를) 호출하거나, 우선 JoinableTaskFactory.SwitchToMainThreadAsync()를 대기합니다. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - UI 스레드의 VS 서비스를 사용합니다. - Please verify the translation’s accuracy as the source string was updated after it was translated. + 주 스레드에서 단일 스레드 형식을 호출 Change return type to Task @@ -179,17 +177,17 @@ Use AsyncLazy<T> instead. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + 스레드 선호도 검사는 비조건부여야 합니다. Assert thread affinity unconditionally - Assert thread affinity unconditionally + 무조건 스레드 선호도 어설션 The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + 주 스레드에서 형식 "{0}"을(를) 명시적으로 사용해야 합니다. +우선 JoinableTaskFactory.SwitchToMainThreadAsync()를 대기합니다. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.pl.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.pl.xlf index 49cbfcafc..4d26f1524 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.pl.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.pl.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Usługa programu Visual Studio „{0}” powinna być używana w wątku głównym w sposób jawny. -Najpierw wywołaj metodę ThreadHelper.ThrowIfNotOnUIThread() lub oczekuj na metodę JoinableTaskFactory.SwitchToMainThreadAsync(). - Please verify the translation’s accuracy as the source string was updated after it was translated. + Typ „{0}” powinien być używany w wątku głównym w sposób jawny. +Najpierw wywołaj metodę {1}() lub zaczekaj na metodę JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - Używaj usług programu VS z wątku interfejsu użytkownika - Please verify the translation’s accuracy as the source string was updated after it was translated. + Wywołuj typy jednowątkowe w wątku głównym Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Zamiast tego używaj klasy AsyncLazy<T>. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + Testy koligacji wątku powinny być bezwarunkowe. Assert thread affinity unconditionally - Assert thread affinity unconditionally + Bezwarunkowo potwierdź koligację wątku The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + Typ „{0}” powinien być używany w wątku głównym w sposób jawny. +Najpierw zaczekaj na metodę JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.pt-BR.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.pt-BR.xlf index 0c1fe4c8d..543a0c7a1 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.pt-BR.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.pt-BR.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - O serviço do Visual Studio "{0}" deve ser usado em um thread principal explicitamente. -Chame ThreadHelper.ThrowIfNotOnUIThread() ou espere primeiro pelo JoinableTaskFactory.SwitchToMainThreadAsync(). - Please verify the translation’s accuracy as the source string was updated after it was translated. + O tipo "{0}" deve ser usado no thread principal de forma explícita. +Chame{1}() ou espere antes JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - Use serviços do VS do thread de interface do usuário - Please verify the translation’s accuracy as the source string was updated after it was translated. + Invoque os tipos single-threaded no thread principal Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Em vez disso, use AsyncLazy<T>. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + As verificações de afinidade de thread devem ser incondicionais. Assert thread affinity unconditionally - Assert thread affinity unconditionally + Declarar a afinidade de thread de forma incondicional The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + O tipo "{0}" deve ser usado no thread principal de forma explícita. +Espere antes JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ru.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ru.xlf index 91377a8c7..0a2802ab5 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ru.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.ru.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Службу Visual Studio "{0}" следует явно использовать в основном потоке. -Сначала вызовите ThreadHelper.ThrowIfNotOnUIThread() или используйте await в JoinableTaskFactory.SwitchToMainThreadAsync(). - Please verify the translation’s accuracy as the source string was updated after it was translated. + Используйте тип "{0}" явно в основном потоке. +Сначала вызовите {1}() или используйте await в JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - Использование служб VS в потоке пользовательского интерфейса - Please verify the translation’s accuracy as the source string was updated after it was translated. + Использование однопоточных типов в основном потоке Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Use AsyncLazy<T> instead. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + Проверки сходства потоков должны быть безусловными. Assert thread affinity unconditionally - Assert thread affinity unconditionally + Утверждайте сходства потоков безусловно The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + Используйте тип "{0}" явно в основном потоке. +Сначала используйте await в JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.tr.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.tr.xlf index 7f4b91f1e..bf83b4601 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.tr.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.tr.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - "{0}" Visual Studio hizmeti, ana iş parçacığında açık olarak kullanılmalıdır. -ThreadHelper.ThrowIfNotOnUIThread() çağırın veya önce JoinableTaskFactory.SwitchToMainThreadAsync() bekleyin. - Please verify the translation’s accuracy as the source string was updated after it was translated. + "{0}" türü, ana iş parçacığında açık olarak kullanılmalıdır. +{1}() çağırın veya önce JoinableTaskFactory.SwitchToMainThreadAsync() bekleyin. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - UI iş parçacığından VS hizmetlerini kullanın - Please verify the translation’s accuracy as the source string was updated after it was translated. + Ana iş parçacığındaki tek iş parçacıklı türleri çağırın Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Bunun yerine AsyncLazy<T> kullanın. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + İş parçacığı benzeşim denetimleri koşulsuz olmalıdır. Assert thread affinity unconditionally - Assert thread affinity unconditionally + İş parçacığı benzeşimini koşulsuz olarak onayla The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + "{0}" türü, ana iş parçacığında açık olarak kullanılmalıdır. +Önce JoinableTaskFactory.SwitchToMainThreadAsync() bekleyin. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.zh-Hans.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.zh-Hans.xlf index 469739371..706bb9760 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.zh-Hans.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.zh-Hans.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - 应对主线程显式使用 Visual Studio 服务“{0}”。 -首先调用 ThreadHelper.ThrowIfNotOnUIThread() 或等待 JoinableTaskFactory.SwitchToMainThreadAsync()。 - Please verify the translation’s accuracy as the source string was updated after it was translated. + 应在主线程上显式使用类型“{0}”。 +首先调用 {1}() 或等待 JoinableTaskFactory.SwitchToMainThreadAsync()。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - 使用 UI 线程中的 VS 服务 - Please verify the translation’s accuracy as the source string was updated after it was translated. + 在主线程上调用单线程类型 Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Use AsyncLazy<T> instead. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + 应无条件检查线程关联。 Assert thread affinity unconditionally - Assert thread affinity unconditionally + 无条件断言线程关联 The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + 应在主线程上显式使用类型“{0}”。 +首先等待 JoinableTaskFactory.SwitchToMainThreadAsync()。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.zh-Hant.xlf b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.zh-Hant.xlf index ab13b9857..012568cd0 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.zh-Hant.xlf +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/MultilingualResources/Microsoft.VisualStudio.Threading.Analyzers.zh-Hant.xlf @@ -1,4 +1,4 @@ - +
@@ -29,15 +29,13 @@ The type "{0}" should be used on main thread explicitly. Call {1}() or await JoinableTaskFactory.SwitchToMainThreadAsync() first. - Visual Studio 服務 "{0}" 應該明確用在主執行緒。 -請先呼叫 ThreadHelper.ThrowIfNotOnUIThread() 或 await JoinableTaskFactory.SwitchToMainThreadAsync()。 - Please verify the translation’s accuracy as the source string was updated after it was translated. + 類型 "{0}" 應明確用於主執行緒。 +請先呼叫 {1}() 或 await JoinableTaskFactory.SwitchToMainThreadAsync()。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. Invoke single-threaded types on Main thread - 從 UI 執行緒使用 VS 服務 - Please verify the translation’s accuracy as the source string was updated after it was translated. + 在主執行緒叫用單一執行緒類型 Avoid "async void" methods, because any exceptions not handled by the method will crash the process. @@ -179,17 +177,17 @@ Use AsyncLazy<T> instead. Thread affinity checks should be unconditional. - Thread affinity checks should be unconditional. + 執行緒親和性檢查應該無條件。 Assert thread affinity unconditionally - Assert thread affinity unconditionally + 無條件判斷提示執行緒親和性 The type "{0}" should be used on main thread explicitly. Await JoinableTaskFactory.SwitchToMainThreadAsync() first. - The type "{0}" should be used on main thread explicitly. -Await JoinableTaskFactory.SwitchToMainThreadAsync() first. + 類型 "{0}" 應明確用於主執行緒。 +請先 await JoinableTaskFactory.SwitchToMainThreadAsync()。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.cs.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.cs.xlf index 9999ebf4a..52e77fef3 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.cs.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.cs.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.de.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.de.xlf index 4bd0163fe..b94320bc9 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.de.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.de.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.es.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.es.xlf index 07add7298..fb582dd1c 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.es.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.es.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.fr.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.fr.xlf index 4b37e51c1..ac377e4bf 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.fr.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.fr.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.it.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.it.xlf index 05ca0237e..0c1be6cb8 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.it.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.it.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ja.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ja.xlf index 8897a6826..167f3a27a 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ja.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ja.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ko.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ko.xlf index 9959abc1e..3777efae4 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ko.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ko.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.pl.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.pl.xlf index 02ee0eadc..6a2b5406c 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.pl.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.pl.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.pt-BR.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.pt-BR.xlf index 991939c0e..d118dd8c8 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.pt-BR.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.pt-BR.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ru.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ru.xlf index e1261c495..fbf4a5ec2 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ru.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.ru.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.tr.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.tr.xlf index 060e5a971..23d224a1a 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.tr.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.tr.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.zh-Hans.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.zh-Hans.xlf index ae9e2e997..3dcd98441 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.zh-Hans.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.zh-Hans.xlf @@ -1,4 +1,4 @@ - +
diff --git a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.zh-Hant.xlf b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.zh-Hant.xlf index 434b91fd1..2abee0498 100644 --- a/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.zh-Hant.xlf +++ b/src/Microsoft.VisualStudio.Threading/MultilingualResources/Microsoft.VisualStudio.Threading.zh-Hant.xlf @@ -1,4 +1,4 @@ - +
From 1baacf701e42410482fb4834c120651ba4f4be5c Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Mon, 5 Mar 2018 07:55:56 -0800 Subject: [PATCH 2/4] Apply translations to resx files --- .../Strings.cs.resx | 17 ++++++++++++++--- .../Strings.de.resx | 17 ++++++++++++++--- .../Strings.es.resx | 17 ++++++++++++++--- .../Strings.fr.resx | 17 ++++++++++++++--- .../Strings.it.resx | 17 ++++++++++++++--- .../Strings.ja.resx | 17 ++++++++++++++--- .../Strings.ko.resx | 17 ++++++++++++++--- .../Strings.pl.resx | 17 ++++++++++++++--- .../Strings.pt-BR.resx | 17 ++++++++++++++--- .../Strings.ru.resx | 17 ++++++++++++++--- .../Strings.tr.resx | 17 ++++++++++++++--- .../Strings.zh-Hans.resx | 17 ++++++++++++++--- .../Strings.zh-Hant.resx | 17 ++++++++++++++--- 13 files changed, 182 insertions(+), 39 deletions(-) diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.cs.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.cs.resx index fe4695df9..dad4cb81a 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.cs.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.cs.resx @@ -29,12 +29,12 @@ Vyhněte se problematickým synchronním čekáním - Službu Visual Studio {0} je třeba používat explicitně v hlavním vlákně. -Nejprve zavolejte ThreadHelper.ThrowIfNotOnUIThread() nebo počkejte na JoinableTaskFactory.SwitchToMainThreadAsync(). + Typ {0} by se měl používat explicitně v hlavním vlákně. +Zavolejte metodu {1}() nebo nejdříve počkejte na dokončení volání metody JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - Použití služeb VS z vlákna uživatelského rozhraní + Vyvolání typů s jedním vláknem z hlavního vlákna Nepoužívejte metody async void, protože veškeré výjimky neošetřené metodou způsobí selhání procesu. @@ -141,4 +141,15 @@ Použijte raději AsyncLazy<T>. Použijte raději await. "await" is a C# keyword and should not be translated. + + Kontroly spřažení vláken by měly být bez podmínek. + + + Vyhodnotit spřažení vláken bez podmínek + + + Typ {0} by se měl používat explicitně v hlavním vlákně. +Nejdříve počkejte na dokončení volání metody JoinableTaskFactory.SwitchToMainThreadAsync(). + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.de.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.de.resx index a59294bb4..e9af265de 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.de.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.de.resx @@ -29,12 +29,12 @@ Problematische synchrone Wartevorgänge vermeiden - Der Visual Studio-Dienst "{0}" sollte explizit im Hauptthread verwendet werden. -Rufen Sie "ThreadHelper.ThrowIfNotOnUIThread()" auf, oder warten Sie zuerst auf "JoinableTaskFactory.SwitchToMainThreadAsync()". + Der Typ "{0}" muss explizit im Hauptthread verwendet werden. +Rufen Sie "{1}()" auf, oder warten Sie zuerst auf "JoinableTaskFactory.SwitchToMainThreadAsync()". {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - VS-Dienste aus dem UI-Thread verwenden + Singlethread-Typen im Hauptthread aufrufen Vermeiden Sie "async void"-Methoden, da Ausnahmen, die nicht von der Methode verarbeitet werden, zu einem Absturz des Prozesses führen. @@ -141,4 +141,15 @@ Verwenden Sie stattdessen "AsyncLazy<T>". Stattdessen "await" verwenden "await" is a C# keyword and should not be translated. + + Überprüfungen der Threadaffinität dürfen keine Bedingungen umfassen. + + + Threadaffinität ohne Bedingungen bestätigen + + + Der Typ "{0}" muss explizit im Hauptthread verwendet werden. +Warten Sie zuerst auf "JoinableTaskFactory.SwitchToMainThreadAsync()". + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.es.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.es.resx index 037a3225f..0a11bf3e5 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.es.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.es.resx @@ -29,12 +29,12 @@ Evite esperas sincrónicas problemáticas - El servicio "{0}" de Visual Studio debe usarse explícitamente en el subproceso principal. -Llame a ThreadHelper.ThrowIfNotOnUIThread() o el elemento await JoinableTaskFactory.SwitchToMainThreadAsync() en primer lugar. + El tipo "{0}" debe usarse en el subproceso principal de forma explícita. +Llame a {1}() o use await JoinableTaskFactory.SwitchToMainThreadAsync() primero. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - Use servicios de VS desde el subproceso de IU + Invocar tipos uniproceso en el subproceso principal Evite métodos "async void", porque las excepciones no controladas por el método bloquearán el proceso. @@ -141,4 +141,15 @@ Use AsyncLazy<T> en su lugar. Use await en su lugar "await" is a C# keyword and should not be translated. + + Las comprobaciones de afinidad de subproceso deben ser incondicionales. + + + Declarar afinidad de subproceso incondicionalmente + + + El tipo "{0}" debe usarse en el subproceso principal de forma explícita. +Use await JoinableTaskFactory.SwitchToMainThreadAsync() primero. + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.fr.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.fr.resx index 63e03218a..a0beb820e 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.fr.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.fr.resx @@ -29,12 +29,12 @@ Éviter les attentes synchrones problématiques - Le service Visual Studio "{0}"doit être utilisé sur le thread principal de manière explicite. -Appelez ThreadHelper.ThrowIfNotOnUIThread() ou attendez d'abord JoinableTaskFactory.SwitchToMainThreadAsync(). + Le type "{0}"doit être utilisé sur le thread principal de manière explicite. +Appelez {1}() ou attendez d'abord JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - Utiliser les services VS à partir du thread d’interface utilisateur + Appeler les types à thread unique sur le thread principal Évitez les méthodes "async void", car toute exception non traitée par la méthode bloque le processus. @@ -141,4 +141,15 @@ Utilisez AsyncLazy<T> à la place Utiliser await à la place "await" is a C# keyword and should not be translated. + + Les vérifications d'affinité de thread doivent être inconditionnelles. + + + Effectuer l'assertion de l'affinité de thread de manière inconditionnelle + + + Le type "{0}"doit être utilisé sur le thread principal de manière explicite. +Attendez d'abord JoinableTaskFactory.SwitchToMainThreadAsync(). + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.it.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.it.resx index 30ad4d76c..9eefe6c48 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.it.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.it.resx @@ -29,12 +29,12 @@ Evita attese sincrone problematiche - Il servizio "{0}" di Visual Studio non deve essere usato sul thread principale in modo esplicito. -Chiamare prima ThreadHelper.ThrowIfNotOnUIThread() o await JoinableTaskFactory.SwitchToMainThreadAsync(). + Il tipo "{0}" deve essere usato sul thread principale in modo esplicito. +Chiamare {1}() o usare prima await JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - Usa i servizi di Visual Studio dal thread dell'interfaccia utente + Richiamare tipi a thread singolo sul thread principale Evitare metodi "async void" perché tutte le eccezioni non gestite dal metodo causeranno l'arresto anomalo del processo. @@ -141,4 +141,15 @@ In alternativa, usare AsyncLazy<T>. In alternativa, usare await "await" is a C# keyword and should not be translated. + + I controlli di affinità dei thread non devono essere condizionali. + + + Asserisci l'affinità dei thread in modo non condizionale + + + Il tipo "{0}" deve essere usato sul thread principale in modo esplicito. +Usare prima await JoinableTaskFactory.SwitchToMainThreadAsync(). + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ja.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ja.resx index e42e15cbb..c42fe76b1 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ja.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ja.resx @@ -29,12 +29,12 @@ 問題のある同期待機を避ける - Visual Studio サービス "{0}" は、明示的にメイン スレッドで使用する必要があります。 -ThreadHelper.ThrowIfNotOnUIThread() を呼び出すか、まず JoinableTaskFactory.SwitchToMainThreadAsync() を待機してください。 + 型 "{0}" は、明示的にメイン スレッドで使用する必要があります。 +{1}() を呼び出すか、まず JoinableTaskFactory.SwitchToMainThreadAsync() を待機してください。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - UI スレッドから VS サービスを使用する + メイン スレッドでシングルスレッド型を呼び出す "async void" メソッドは使用しないでください。このメソッドで処理されていない例外によりプロセスがクラッシュします。 @@ -141,4 +141,15 @@ ThreadHelper.ThrowIfNotOnUIThread() を呼び出すか、まず JoinableTaskFact 代わりに Await を使用する "await" is a C# keyword and should not be translated. + + スレッド アフィニティ チェックは、無条件である必要があります。 + + + スレッド アフィニティを無条件でアサートする + + + 型 "{0}" は明示的にメイン スレッドで使用する必要があります。 +まず JoinableTaskFactory.SwitchToMainThreadAsync() を待機してください。 + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ko.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ko.resx index 74e6b9591..769becf93 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ko.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ko.resx @@ -29,12 +29,12 @@ 문제가 있는 동기 대기를 사용하지 않습니다. - 주 스레드에서 Visual Studio 서비스 "{0}"을(를) 명시적으로 사용해야 합니다. -ThreadHelper.ThrowIfNotOnUIThread()를 호출하거나, 우선 JoinableTaskFactory.SwitchToMainThreadAsync()를 대기합니다. + 주 스레드에서 형식 "{0}"을(를) 명시적으로 사용해야 합니다. +{1}()을(를) 호출하거나, 우선 JoinableTaskFactory.SwitchToMainThreadAsync()를 대기합니다. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - UI 스레드의 VS 서비스를 사용합니다. + 주 스레드에서 단일 스레드 형식을 호출 반환 형식을 Task로 변경 @@ -141,4 +141,15 @@ ThreadHelper.ThrowIfNotOnUIThread()를 호출하거나, 우선 JoinableTaskFacto 대신 await를 사용합니다. "await" is a C# keyword and should not be translated. + + 스레드 선호도 검사는 비조건부여야 합니다. + + + 무조건 스레드 선호도 어설션 + + + 주 스레드에서 형식 "{0}"을(를) 명시적으로 사용해야 합니다. +우선 JoinableTaskFactory.SwitchToMainThreadAsync()를 대기합니다. + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.pl.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.pl.resx index eb641154b..bd34ea541 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.pl.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.pl.resx @@ -29,12 +29,12 @@ Unikaj problematycznych oczekiwań synchronicznych - Usługa programu Visual Studio „{0}” powinna być używana w wątku głównym w sposób jawny. -Najpierw wywołaj metodę ThreadHelper.ThrowIfNotOnUIThread() lub oczekuj na metodę JoinableTaskFactory.SwitchToMainThreadAsync(). + Typ „{0}” powinien być używany w wątku głównym w sposób jawny. +Najpierw wywołaj metodę {1}() lub zaczekaj na metodę JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - Używaj usług programu VS z wątku interfejsu użytkownika + Wywołuj typy jednowątkowe w wątku głównym Unikaj metod „async void”, ponieważ wszelkie wyjątki, które nie zostaną przez nie obsłużone, spowodują awarię procesu. @@ -141,4 +141,15 @@ Zamiast tego używaj klasy AsyncLazy<T>. Zamiast tego używaj oczekiwania "await" is a C# keyword and should not be translated. + + Testy koligacji wątku powinny być bezwarunkowe. + + + Bezwarunkowo potwierdź koligację wątku + + + Typ „{0}” powinien być używany w wątku głównym w sposób jawny. +Najpierw zaczekaj na metodę JoinableTaskFactory.SwitchToMainThreadAsync(). + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.pt-BR.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.pt-BR.resx index 07f00e5c2..f26305c80 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.pt-BR.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.pt-BR.resx @@ -29,12 +29,12 @@ Evite esperas síncronas problemáticas - O serviço do Visual Studio "{0}" deve ser usado em um thread principal explicitamente. -Chame ThreadHelper.ThrowIfNotOnUIThread() ou espere primeiro pelo JoinableTaskFactory.SwitchToMainThreadAsync(). + O tipo "{0}" deve ser usado no thread principal de forma explícita. +Chame{1}() ou espere antes JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - Use serviços do VS do thread de interface do usuário + Invoque os tipos single-threaded no thread principal Evite métodos "async void”, pois exceções que não são manipuladas pelo método causarão falha no processo. @@ -141,4 +141,15 @@ Em vez disso, use AsyncLazy<T>. Em vez disso, use a espera "await" is a C# keyword and should not be translated. + + As verificações de afinidade de thread devem ser incondicionais. + + + Declarar a afinidade de thread de forma incondicional + + + O tipo "{0}" deve ser usado no thread principal de forma explícita. +Espere antes JoinableTaskFactory.SwitchToMainThreadAsync(). + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ru.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ru.resx index 235c03551..06f4a461e 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ru.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.ru.resx @@ -29,12 +29,12 @@ Избегание проблемных синхронных ожиданий - Службу Visual Studio "{0}" следует явно использовать в основном потоке. -Сначала вызовите ThreadHelper.ThrowIfNotOnUIThread() или используйте await в JoinableTaskFactory.SwitchToMainThreadAsync(). + Используйте тип "{0}" явно в основном потоке. +Сначала вызовите {1}() или используйте await в JoinableTaskFactory.SwitchToMainThreadAsync(). {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - Использование служб VS в потоке пользовательского интерфейса + Использование однопоточных типов в основном потоке Избегайте методов "async void", так как любые исключения, не обработанные этим методом, вызовут сбой процесса. @@ -141,4 +141,15 @@ Вместо этого используйте await. "await" is a C# keyword and should not be translated. + + Проверки сходства потоков должны быть безусловными. + + + Утверждайте сходства потоков безусловно + + + Используйте тип "{0}" явно в основном потоке. +Сначала используйте await в JoinableTaskFactory.SwitchToMainThreadAsync(). + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.tr.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.tr.resx index b73b1033f..069344493 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.tr.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.tr.resx @@ -29,12 +29,12 @@ Sorunlu zaman uyumlu beklemelerden kaçının - "{0}" Visual Studio hizmeti, ana iş parçacığında açık olarak kullanılmalıdır. -ThreadHelper.ThrowIfNotOnUIThread() çağırın veya önce JoinableTaskFactory.SwitchToMainThreadAsync() bekleyin. + "{0}" türü, ana iş parçacığında açık olarak kullanılmalıdır. +{1}() çağırın veya önce JoinableTaskFactory.SwitchToMainThreadAsync() bekleyin. {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - UI iş parçacığından VS hizmetlerini kullanın + Ana iş parçacığındaki tek iş parçacıklı türleri çağırın "async void" metotları tarafından işlenmeyen tüm özel durumlar işlemi kilitleyeceğinden bunları kullanmayın. @@ -141,4 +141,15 @@ Bunun yerine AsyncLazy<T> kullanın. Bunun yerine await kullanın "await" is a C# keyword and should not be translated. + + İş parçacığı benzeşim denetimleri koşulsuz olmalıdır. + + + İş parçacığı benzeşimini koşulsuz olarak onayla + + + "{0}" türü, ana iş parçacığında açık olarak kullanılmalıdır. +Önce JoinableTaskFactory.SwitchToMainThreadAsync() bekleyin. + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.zh-Hans.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.zh-Hans.resx index e841b26df..8c92f9213 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.zh-Hans.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.zh-Hans.resx @@ -29,12 +29,12 @@ 避免有问题的同步等待 - 应对主线程显式使用 Visual Studio 服务“{0}”。 -首先调用 ThreadHelper.ThrowIfNotOnUIThread() 或等待 JoinableTaskFactory.SwitchToMainThreadAsync()。 + 应在主线程上显式使用类型“{0}”。 +首先调用 {1}() 或等待 JoinableTaskFactory.SwitchToMainThreadAsync()。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - 使用 UI 线程中的 VS 服务 + 在主线程上调用单线程类型 避免使用“Async Void”方法,因为此方法未处理的任何异常都将导致进程故障。 @@ -141,4 +141,15 @@ 改用 await "await" is a C# keyword and should not be translated. + + 应无条件检查线程关联。 + + + 无条件断言线程关联 + + + 应在主线程上显式使用类型“{0}”。 +首先等待 JoinableTaskFactory.SwitchToMainThreadAsync()。 + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.zh-Hant.resx b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.zh-Hant.resx index 23a808495..9e2bd0ae8 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.zh-Hant.resx +++ b/src/Microsoft.VisualStudio.Threading.Analyzers/Strings.zh-Hant.resx @@ -29,12 +29,12 @@ 避免有問題的同步等候 - Visual Studio 服務 "{0}" 應該明確用在主執行緒。 -請先呼叫 ThreadHelper.ThrowIfNotOnUIThread() 或 await JoinableTaskFactory.SwitchToMainThreadAsync()。 + 類型 "{0}" 應明確用於主執行緒。 +請先呼叫 {1}() 或 await JoinableTaskFactory.SwitchToMainThreadAsync()。 {0} is a type name and {1} is the name of a method that throws if not called from the main thread. - 從 UI 執行緒使用 VS 服務 + 在主執行緒叫用單一執行緒類型 因為任何不是由 "async void" 方法處理的例外狀況都會使處理序損毀,所以請避免該方法。 @@ -141,4 +141,15 @@ 改用 await "await" is a C# keyword and should not be translated. + + 執行緒親和性檢查應該無條件。 + + + 無條件判斷提示執行緒親和性 + + + 類型 "{0}" 應明確用於主執行緒。 +請先 await JoinableTaskFactory.SwitchToMainThreadAsync()。 + {0} is a type name and {1} is the name of a method that throws if not called from the main thread. + \ No newline at end of file From 453cbd9054d92e31356c6d0de1b8f960a28c964b Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Fri, 16 Mar 2018 22:19:46 -0700 Subject: [PATCH 3/4] Get build on VSTS Hosted queues working --- .vsts-ci.yml | 54 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 105ee43a1..497152cee 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -1,6 +1,22 @@ -queue: VSEng-MicroBuildVS2017 - steps: +- task: PowerShell@2 + displayName: Set VSTS variables + inputs: + targetType: inline + script: | + if ($env:SignType -eq 'Real') { + $feedGuid = '09d8d03c-1ac8-456e-9274-4d2364527d99' + } else { + $feedGuid = 'da484c78-f942-44ef-b197-99e2a1bef53c' + } + + Write-Host "##vso[task.setvariable variable=feedGuid]$feedGuid" + + if ($env:ComputerName.StartsWith('factoryvm', [StringComparison]::OrdinalIgnoreCase)) { + Write-Host "Running on hosted queue" + Write-Host "##vso[task.setvariable variable=Hosted]true" + } + - task: CmdLine@2 inputs: script: | @@ -8,10 +24,12 @@ steps: del /s /q "%LocalAppData%\NuGet\Cache" del /s /q "%AppData%\tsd-cache" displayName: Purge package caches + condition: and(succeeded(), ne(variables['Hosted'], 'true')) - task: MicroBuildIBCMergePlugin@0 inputs: branch: rel/d15.6 + condition: and(succeeded(), ne(variables['Hosted'], 'true')) - task: MicroBuildSigningPlugin@1 inputs: @@ -19,19 +37,6 @@ steps: esrpSigning: true zipSources: false -- task: PowerShell@2 - displayName: Set package upload feed - inputs: - targetType: inline - script: | - if ($env:SignType -eq 'Real') { - $feedGuid = '09d8d03c-1ac8-456e-9274-4d2364527d99' - } else { - $feedGuid = 'da484c78-f942-44ef-b197-99e2a1bef53c' - } - - Write-Host "##vso[task.setvariable variable=feedGuid]$feedGuid" - - task: NuGetCommand@2 inputs: restoreSolution: '**\*.sln' @@ -49,7 +54,7 @@ steps: - task: VSBuild@1 inputs: vsVersion: 15.0 - msbuildArgs: /t:build,pack + msbuildArgs: /t:build,pack /m /bl:"$(Build.ArtifactStagingDirectory)/build_logs/msbuild.binlog" platform: $(BuildPlatform) configuration: $(BuildConfiguration) displayName: Build Visual Studio solution @@ -66,6 +71,13 @@ steps: # ArtifactType: Container # condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: $(Build.ArtifactStagingDirectory)/build_logs + ArtifactName: build_logs + ArtifactType: Container + condition: succeededOrFailed() + - task: CopyFiles@1 inputs: SourceFolder: bin @@ -101,12 +113,12 @@ steps: ArtifactType: Container condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) -- task: ms-vscs-artifact.build-tasks.artifactSymbolTask-1.artifactSymbolTask@0 +- task: PublishSymbols@2 inputs: - symbolServiceURI: "https://microsoft.artifacts.visualstudio.com/DefaultCollection" - requestName: "CollectionId/$(System.CollectionId)/ProjectId/$(System.TeamProjectId)/BuildId/$(Build.BuildId)" - sourcePath: "$(Build.ArtifactStagingDirectory)/symbols" - usePat: "false" + SymbolsFolder: $(Build.ArtifactStagingDirectory)/symbols + SearchPattern: '**/*.pdb' + IndexSources: false + SymbolServerType: TeamServices condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) - task: NuGetCommand@2 From a482956620ee0f15d81dc445c854de31f7a2a806 Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Fri, 16 Mar 2018 22:28:24 -0700 Subject: [PATCH 4/4] Remove NuGet version workaround --- .appveyor.yml | 2 -- .vsts-ci.yml | 7 ------- src/Directory.Build.props | 12 +----------- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 99c0f4d34..59e028b5d 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -19,9 +19,7 @@ environment: TreatWarningsAsErrors: true CodeAnalysisTreatWarningsAsErrors: true before_build: -- |- # Restore TWICE. See https://github.com/AArnott/Nerdbank.GitVersioning/issues/113#issuecomment-285903085 msbuild src\Microsoft.VisualStudio.Threading.sln /nologo /m /v:quiet /t:restore - msbuild src\Microsoft.VisualStudio.Threading.sln /nologo /m /v:quiet /t:restore > nul build_script: - msbuild src\Microsoft.VisualStudio.Threading.sln /nologo /m /fl /v:minimal /t:build,pack test_script: diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 497152cee..14e2a09ed 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -44,13 +44,6 @@ steps: nugetConfigPath: nuget.config displayName: Nuget restore packages -- task: NuGetCommand@2 - inputs: - restoreSolution: '**\*.sln' - feedsToUse: config - nugetConfigPath: nuget.config - displayName: Nuget restore packages (again, to workaround Nuget bug) - - task: VSBuild@1 inputs: vsVersion: 15.0 diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 06523451c..d19d8c79b 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -4,7 +4,7 @@ $(MSBuildThisFileDirectory)..\obj\$(MSBuildProjectName)\ $(MSBuildThisFileDirectory)..\bin\$(MSBuildProjectName)\ - 2.0.44 + 2.0.54 @@ -13,14 +13,4 @@ - - - - - -