AssemblyMeta.Strings
1.0.0
See the version list below for details.
dotnet add package AssemblyMeta.Strings --version 1.0.0
NuGet\Install-Package AssemblyMeta.Strings -Version 1.0.0
<PackageReference Include="AssemblyMeta.Strings" Version="1.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="AssemblyMeta.Strings" Version="1.0.0" />
<PackageReference Include="AssemblyMeta.Strings"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add AssemblyMeta.Strings --version 1.0.0
#r "nuget: AssemblyMeta.Strings, 1.0.0"
#:package AssemblyMeta.Strings@1.0.0
#addin nuget:?package=AssemblyMeta.Strings&version=1.0.0
#tool nuget:?package=AssemblyMeta.Strings&version=1.0.0
AssemblyMeta.Strings
Generates neutral .resx files as AssemblyMeta.Strings compile-time constants. Under the default internal they can be used in attribute arguments; with AssemblyMetaVisibility=public members become static readonly.
<ItemGroup>
<EmbeddedResource Include="Strings.resx" />
</ItemGroup>
var hello = AssemblyMeta.Strings.Hello;
var stock = AssemblyMeta.Strings.Shopping.OutOfStock;
The SDK collects **/*.resx into EmbeddedResource by default. Satellite files like Strings.fr.resx do not participate. _ and . in keys both become nested types. Trailing Strings path segments are stripped. Keys from Strings.resx at the root and Strings/Strings.resx hang directly under AssemblyMeta.Strings; Hello in UI/Strings.resx becomes AssemblyMeta.Strings.UI.Hello. Segments matching the enclosing type get a trailing underscore and report AM0008 — key Strings becomes Strings_.
Values containing {0} remain plain string constants. Non-string entries are skipped with AM0007. Invalid keys report AM0010. AssemblyMetaStrings=false excludes a file.
把中性 .resx 生成为 AssemblyMeta.Strings 编译期常量。默认 internal 时可以写进特性参数;AssemblyMetaVisibility=public 时成员是 static readonly。
SDK 默认会把 **/*.resx 收进 EmbeddedResource。Strings.fr.resx 这类卫星文件不参与生成。键名里的 _ 和 . 都会变成嵌套类型。路径末尾连续的 Strings 段都会去掉。根上的 Strings.resx 和 Strings/Strings.resx 的键直接挂在 AssemblyMeta.Strings 下。UI/Strings.resx 的 Hello 是 AssemblyMeta.Strings.UI.Hello。与外层类型同名的片段在末尾加下划线并报告 AM0008,键 Strings 是 Strings_。
带 {0} 的值仍然是字符串常量。非字符串项会跳过并报告 AM0007。无效键报告 AM0010。AssemblyMetaStrings=false 可排除某个文件。
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AssemblyMeta.Strings:
| Package | Downloads |
|---|---|
|
AssemblyMeta
Meta-package aggregating AssemblyInfo, Constants, Project, Metadata, Git, Resources and Strings; generates assembly metadata as strongly-typed constants at compile time. / AssemblyMeta 元包,聚合 AssemblyInfo、Constants、Project、Metadata、Git、Resources 与 Strings,把程序集元信息在编译期生成为强类型常量。 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.0 | 79 | 10/27/2026 |
| 1.0.0 | 121 | 10/24/2026 |
| 1.0.0-preview | 120 | 10/23/2026 |