Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions loc/lcl/CHS/Microsoft.VisualStudio.Threading.Analyzers.dll.lcl
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,24 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";VSTHRD013_MessageFormat" ItemType="0" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[CompletedTaskAttribute cannot be applied to mutable member "{0}". Apply it only to methods, readonly fields, or non-ref get-only properties.]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[无法将 CompletedTaskAttribute 应用于可变成员“{0}”。仅将其应用于方法、只读字段或非 ref 的仅获取属性。]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";VSTHRD013_Title" ItemType="0" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Apply CompletedTaskAttribute only to immutable members]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[仅将 CompletedTaskAttribute 应用于不可变成员]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";VSTHRD100_CodeFix_Title" ItemType="0" PsrId="211" InstFlg="true" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Change return type to Task]]></Val>
Expand Down Expand Up @@ -617,6 +635,42 @@
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";VSTHRD116_MessageFormat" ItemType="0" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[ThreadStaticAttribute has no effect on a non-static field]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[ThreadStaticAttribute 对非静态字段没有影响]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";VSTHRD116_Title" ItemType="0" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Use ThreadStaticAttribute only with static fields]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[仅对静态字段使用 ThreadStaticAttribute]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";VSTHRD117_MessageFormat" ItemType="0" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[ThreadStatic fields should not be initialized by a field initializer or static constructor because the value is only assigned on the type-initializing thread]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[不应使用字段初始值设定项或静态构造函数初始化 ThreadStatic 字段,因为该值只会在类型初始化线程上赋值]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";VSTHRD117_Title" ItemType="0" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Avoid initialization of ThreadStatic fields in a type initializer]]></Val>
<Tgt Cat="Text" Stat="Loc" Orig="New">
<Val><![CDATA[避免初始化类型初始值设定项中的 ThreadStatic 字段]]></Val>
</Tgt>
</Str>
<Disp Icon="Str" />
</Item>
<Item ItemId=";VSTHRD200_AddAsync_MessageFormat" ItemType="0" PsrId="211" Leaf="true">
<Str Cat="Text">
<Val><![CDATA[Use "Async" suffix in names of methods that return an awaitable type]]></Val>
Expand Down
Loading