AssemblyMeta.Project
1.1.0
dotnet add package AssemblyMeta.Project --version 1.1.0
NuGet\Install-Package AssemblyMeta.Project -Version 1.1.0
<PackageReference Include="AssemblyMeta.Project" Version="1.1.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="AssemblyMeta.Project" Version="1.1.0" />
<PackageReference Include="AssemblyMeta.Project"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add AssemblyMeta.Project --version 1.1.0
#r "nuget: AssemblyMeta.Project, 1.1.0"
#:package AssemblyMeta.Project@1.1.0
#addin nuget:?package=AssemblyMeta.Project&version=1.1.0
#tool nuget:?package=AssemblyMeta.Project&version=1.1.0
AssemblyMeta.Project
Generates opt-in MSBuild properties as AssemblyMeta.Project constants.
<PropertyGroup>
<Foo>Bar</Foo>
<ProjectProperty>Foo;Configuration</ProjectProperty>
</PropertyGroup>
<ItemGroup>
<ProjectProperty Include="Company" Comment="公司名称" />
</ItemGroup>
var company = AssemblyMeta.Project.Company;
var foo = AssemblyMeta.Project.Foo;
$(ProjectProperty) is split on semicolons; file-based apps can write #:property ProjectProperty=Foo.
The defaults also include AssemblyName, RootNamespace, TargetFrameworkIdentifier, TargetFrameworkMoniker, TargetFrameworkVersion, RuntimeIdentifier and RuntimeIdentifiers. Identifier, Moniker and Version together form the target framework identity. Remove unwanted entries with <ProjectProperty Remove="..." />. Name TargetFramework explicitly for the short framework name.
Dots become nested types. An empty comment produces "Project property {name}. / 项目属性 {名称}。".
把 opt-in 的 MSBuild 属性生成为 AssemblyMeta.Project 常量。
$(ProjectProperty) 按分号拆分,file-based apps 可以写 #:property ProjectProperty=Foo。
默认还会带上 AssemblyName、RootNamespace、TargetFrameworkIdentifier、TargetFrameworkMoniker、TargetFrameworkVersion、RuntimeIdentifier、RuntimeIdentifiers。其中标识符、Moniker 和版本构成目标框架标识。不需要的用 <ProjectProperty Remove="..." /> 去掉。要目标框架短名就再点名 TargetFramework。
点号会变成嵌套类型。空注释会生成 "Project property {name}. / 项目属性 {名称}。"。
| 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.Project:
| 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 | 113 | 10/27/2026 |
| 1.0.0 | 122 | 10/24/2026 |
| 1.0.0-preview | 117 | 10/23/2026 |