|
12 | 12 | <Disp Icon="Expand" Expand="true" Disp="true" LocTbl="false" Path=" \ ;Managed Resources \ 0 \ 0" /> |
13 | 13 | <Item ItemId=";Strings" ItemType="0" PsrId="211" Leaf="false"> |
14 | 14 | <Disp Icon="Str" Disp="true" LocTbl="false" /> |
15 | | - <Item ItemId=";VSMEF001_MessageFormat" ItemType="0" PsrId="211" Leaf="true"> |
| 15 | + <Item ItemId=";VSMEF001_MessageFormat" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
16 | 16 | <Str Cat="Text"> |
17 | 17 | <Val><![CDATA[A property with an [ImportAttribute]5D; must define a setter so the export can be set on the property.]]></Val> |
18 | 18 | <Tgt Cat="Text" Stat="Loc" Orig="New"> |
|
30 | 30 | </Str> |
31 | 31 | <Disp Icon="Str" /> |
32 | 32 | </Item> |
33 | | - <Item ItemId=";VSMEF002_MessageFormat" ItemType="0" PsrId="211" Leaf="true"> |
| 33 | + <Item ItemId=";VSMEF002_MessageFormat" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
34 | 34 | <Str Cat="Text"> |
35 | 35 | <Val><![CDATA[The type "{0}" contains a mix of attributes from MEFv1 and MEFv2. Consolidate to just one variety of attributes.]]></Val> |
36 | 36 | <Tgt Cat="Text" Stat="Loc" Orig="New"> |
|
39 | 39 | </Str> |
40 | 40 | <Disp Icon="Str" /> |
41 | 41 | </Item> |
42 | | - <Item ItemId=";VSMEF002_Title" ItemType="0" PsrId="211" Leaf="true"> |
| 42 | + <Item ItemId=";VSMEF002_Title" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
43 | 43 | <Str Cat="Text"> |
44 | 44 | <Val><![CDATA[Avoid mixing MEF attribute varieties]]></Val> |
45 | 45 | <Tgt Cat="Text" Stat="Loc" Orig="New"> |
|
66 | 66 | </Str> |
67 | 67 | <Disp Icon="Str" /> |
68 | 68 | </Item> |
| 69 | + <Item ItemId=";VSMEF004_CodeFix_AddImportingConstructorAttribute" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 70 | + <Str Cat="Text"> |
| 71 | + <Val><![CDATA[Add [ImportingConstructor]5D; attribute]]></Val> |
| 72 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 73 | + <Val><![CDATA[添加 [ImportingConstructor]5D; 特性]]></Val> |
| 74 | + </Tgt> |
| 75 | + </Str> |
| 76 | + <Disp Icon="Str" /> |
| 77 | + </Item> |
| 78 | + <Item ItemId=";VSMEF004_CodeFix_AddParameterlessConstructor" ItemType="0" PsrId="211" Leaf="true"> |
| 79 | + <Str Cat="Text"> |
| 80 | + <Val><![CDATA[Add parameterless constructor]]></Val> |
| 81 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 82 | + <Val><![CDATA[添加无参数构造函数]]></Val> |
| 83 | + </Tgt> |
| 84 | + </Str> |
| 85 | + <Disp Icon="Str" /> |
| 86 | + </Item> |
| 87 | + <Item ItemId=";VSMEF004_CodeFix_AddPartNotDiscoverableAttribute" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 88 | + <Str Cat="Text"> |
| 89 | + <Val><![CDATA[Add [PartNotDiscoverable]5D; attribute]]></Val> |
| 90 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 91 | + <Val><![CDATA[添加 [PartNotDiscoverable]5D; 属性]]></Val> |
| 92 | + </Tgt> |
| 93 | + </Str> |
| 94 | + <Disp Icon="Str" /> |
| 95 | + </Item> |
| 96 | + <Item ItemId=";VSMEF004_MessageFormat" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 97 | + <Str Cat="Text"> |
| 98 | + <Val><![CDATA[The type "{0}" defines exports but has non-default constructors that are not annotated with [ImportingConstructor]5D;. Add a parameterless constructor, or annotate a constructor with [ImportingConstructor]5D;.]]></Val> |
| 99 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 100 | + <Val><![CDATA[类型“{0}”定义导出,但具有未批注 [ImportingConstructor]5D; 的非默认构造函数。添加无参数构造函数,或使用 [ImportingConstructor]5D; 批注构造函数。]]></Val> |
| 101 | + </Tgt> |
| 102 | + </Str> |
| 103 | + <Disp Icon="Str" /> |
| 104 | + </Item> |
| 105 | + <Item ItemId=";VSMEF004_Title" ItemType="0" PsrId="211" Leaf="true"> |
| 106 | + <Str Cat="Text"> |
| 107 | + <Val><![CDATA[Exported type missing importing constructor]]></Val> |
| 108 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 109 | + <Val><![CDATA[导出的类型缺少导入构造函数]]></Val> |
| 110 | + </Tgt> |
| 111 | + </Str> |
| 112 | + <Disp Icon="Str" /> |
| 113 | + </Item> |
| 114 | + <Item ItemId=";VSMEF005_MessageFormat" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 115 | + <Str Cat="Text"> |
| 116 | + <Val><![CDATA[The type "{0}" has multiple constructors annotated with [ImportingConstructor]5D;. Only one constructor should be marked as importing.]]></Val> |
| 117 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 118 | + <Val><![CDATA[类型“{0}”具有多个批注了 [ImportingConstructor]5D; 的构造函数。只应将一个构造函数标记为导入。]]></Val> |
| 119 | + </Tgt> |
| 120 | + </Str> |
| 121 | + <Disp Icon="Str" /> |
| 122 | + </Item> |
| 123 | + <Item ItemId=";VSMEF005_Title" ItemType="0" PsrId="211" Leaf="true"> |
| 124 | + <Str Cat="Text"> |
| 125 | + <Val><![CDATA[Multiple importing constructors]]></Val> |
| 126 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 127 | + <Val><![CDATA[多个导入构造函数]]></Val> |
| 128 | + </Tgt> |
| 129 | + </Str> |
| 130 | + <Disp Icon="Str" /> |
| 131 | + </Item> |
| 132 | + <Item ItemId=";VSMEF006_AllowDefaultWithoutNullable_MessageFormat" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 133 | + <Str Cat="Text"> |
| 134 | + <Val><![CDATA[The import "{0}" has AllowDefault = true but is not nullable. Consider making the type nullable or removing AllowDefault.]]></Val> |
| 135 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 136 | + <Val><![CDATA[导入“{0}”具有 AllowDefault = true,但不可为 null。请考虑使类型可为 null 或移除 AllowDefault。]]></Val> |
| 137 | + </Tgt> |
| 138 | + </Str> |
| 139 | + <Disp Icon="Str" /> |
| 140 | + </Item> |
| 141 | + <Item ItemId=";VSMEF006_CodeFix_AddAllowDefault" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 142 | + <Str Cat="Text"> |
| 143 | + <Val><![CDATA[Add AllowDefault = true]]></Val> |
| 144 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 145 | + <Val><![CDATA[添加 AllowDefault = true]]></Val> |
| 146 | + </Tgt> |
| 147 | + </Str> |
| 148 | + <Disp Icon="Str" /> |
| 149 | + </Item> |
| 150 | + <Item ItemId=";VSMEF006_CodeFix_MakeTypeNonNullable" ItemType="0" PsrId="211" Leaf="true"> |
| 151 | + <Str Cat="Text"> |
| 152 | + <Val><![CDATA[Make type non-nullable]]></Val> |
| 153 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 154 | + <Val><![CDATA[将类型设为不可为 null]]></Val> |
| 155 | + </Tgt> |
| 156 | + </Str> |
| 157 | + <Disp Icon="Str" /> |
| 158 | + </Item> |
| 159 | + <Item ItemId=";VSMEF006_CodeFix_MakeTypeNullable" ItemType="0" PsrId="211" Leaf="true"> |
| 160 | + <Str Cat="Text"> |
| 161 | + <Val><![CDATA[Make type nullable]]></Val> |
| 162 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 163 | + <Val><![CDATA[将类型设为可为 null]]></Val> |
| 164 | + </Tgt> |
| 165 | + </Str> |
| 166 | + <Disp Icon="Str" /> |
| 167 | + </Item> |
| 168 | + <Item ItemId=";VSMEF006_CodeFix_RemoveAllowDefault" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 169 | + <Str Cat="Text"> |
| 170 | + <Val><![CDATA[Remove AllowDefault = true]]></Val> |
| 171 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 172 | + <Val><![CDATA[移除 AllowDefault = true]]></Val> |
| 173 | + </Tgt> |
| 174 | + </Str> |
| 175 | + <Disp Icon="Str" /> |
| 176 | + </Item> |
| 177 | + <Item ItemId=";VSMEF006_NullableWithoutAllowDefault_MessageFormat" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 178 | + <Str Cat="Text"> |
| 179 | + <Val><![CDATA[The import "{0}" is nullable but does not have AllowDefault = true. Consider adding AllowDefault = true or making the type non-nullable (and either add a 'required' modifier or an '= null!' initializer).]]></Val> |
| 180 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 181 | + <Val><![CDATA[导入“{0}”可为 null,但没有 AllowDefault = true。请考虑添加 AllowDefault = true 或使类型不可为 null (并添加 "required" 修饰符或 "= null!" 初始化器)。]]></Val> |
| 182 | + </Tgt> |
| 183 | + </Str> |
| 184 | + <Disp Icon="Str" /> |
| 185 | + </Item> |
| 186 | + <Item ItemId=";VSMEF006_Title" ItemType="0" PsrId="211" InstFlg="true" Leaf="true"> |
| 187 | + <Str Cat="Text"> |
| 188 | + <Val><![CDATA[Import nullability and AllowDefault mismatch]]></Val> |
| 189 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 190 | + <Val><![CDATA[导入的为 Null 性和 AllowDefault 不匹配]]></Val> |
| 191 | + </Tgt> |
| 192 | + </Str> |
| 193 | + <Disp Icon="Str" /> |
| 194 | + </Item> |
| 195 | + <Item ItemId=";VSMEF007_MessageFormat" ItemType="0" PsrId="211" Leaf="true"> |
| 196 | + <Str Cat="Text"> |
| 197 | + <Val><![CDATA[The type "{0}" imports the same contract "{1}" multiple times. Each contract should only be imported once per type.]]></Val> |
| 198 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 199 | + <Val><![CDATA[类型“{0}”多次导入同一协定“{1}”。每个协定每种类型只应导入一次。]]></Val> |
| 200 | + </Tgt> |
| 201 | + </Str> |
| 202 | + <Disp Icon="Str" /> |
| 203 | + </Item> |
| 204 | + <Item ItemId=";VSMEF007_Title" ItemType="0" PsrId="211" Leaf="true"> |
| 205 | + <Str Cat="Text"> |
| 206 | + <Val><![CDATA[Duplicate import contract]]></Val> |
| 207 | + <Tgt Cat="Text" Stat="Loc" Orig="New"> |
| 208 | + <Val><![CDATA[重复的导入协定]]></Val> |
| 209 | + </Tgt> |
| 210 | + </Str> |
| 211 | + <Disp Icon="Str" /> |
| 212 | + </Item> |
69 | 213 | </Item> |
70 | 214 | </Item> |
71 | 215 | <Item ItemId=";Version" ItemType="0" PsrId="211" Leaf="false"> |
|
0 commit comments