AssemblyMeta.Constants
1.2.0
dotnet add package AssemblyMeta.Constants --version 1.2.0
NuGet\Install-Package AssemblyMeta.Constants -Version 1.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AssemblyMeta.Constants" Version="1.2.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AssemblyMeta.Constants" Version="1.2.0" />
<PackageReference Include="AssemblyMeta.Constants"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AssemblyMeta.Constants --version 1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AssemblyMeta.Constants, 1.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AssemblyMeta.Constants@1.2.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AssemblyMeta.Constants&version=1.2.0
#tool nuget:?package=AssemblyMeta.Constants&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AssemblyMeta.Constants
Generates MSBuild items as strongly-typed AssemblyMeta.Constants.
<ItemGroup>
<Constant Include="Http.TimeoutSeconds" Value="30" Type="int" Comment="请求超时(秒)" />
<Constant Include="Banner" Value="line1 line2" />
<FileConstant Include="@(Content)" />
</ItemGroup>
Typedefaults tostring. Newlines inside strings use raw string literals on C# 11+. Visual Basic maps the same C# aliases and joins lines withvbLf.- For non-
stringtypes,Valueis emitted verbatim as a C# expression. FileConstantvalues are project-relative forward-slash paths;Linkwins when present. Files outside the project without aLinkare skipped.
把 MSBuild 项生成为 AssemblyMeta.Constants 强类型常量。
Type缺省为string。字符串里的换行在 C# 11+ 使用 raw string literal。Visual Basic 映射同一组 C# 别名,多行用vbLf拼接。- 非
string类型把Value当作 C# 表达式原样输出。 FileConstant的值是相对项目的正斜杠路径;有Link时用链接路径。项目外且没有Link的文件会被跳过。
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AssemblyMeta.Constants:
| 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.2.0 | 81 | 11/20/2026 |
| 1.1.0 | 152 | 10/27/2026 |
| 1.0.0 | 134 | 10/24/2026 |
| 1.0.0-preview | 124 | 10/23/2026 |