AssemblyVersionInfo 1.0.2
dotnet add package AssemblyVersionInfo --version 1.0.2
NuGet\Install-Package AssemblyVersionInfo -Version 1.0.2
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="AssemblyVersionInfo" Version="1.0.2"> <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="AssemblyVersionInfo" Version="1.0.2" />
<PackageReference Include="AssemblyVersionInfo"> <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 AssemblyVersionInfo --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AssemblyVersionInfo, 1.0.2"
#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.
#addin nuget:?package=AssemblyVersionInfo&version=1.0.2
#tool nuget:?package=AssemblyVersionInfo&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AssemblyVersionInfo
AssemblyVersionInfo is a very simple source generator that generates constant strings of your assembly name and version.
The intended usage is for the GeneratedCodeAttribute.
All it does is generating a the static class Assembly in the namespace AssemblyVersionInfo:
// <auto-generated/>
namespace AssemblyVersionInfo;
internal static class Assembly {
public const string NAME = "{{compilation.name}}";
public const string VERSION_MAJOR = "{{compilation.version.Major}}";
public const string VERSION_MINOR = "{{compilation.version.Minor}}";
public const string VERSION_BUILD = "{{compilation.version.Build}}";
public const string VERSION_REVISION = "{{compilation.version.Revision}}";
public const string VERSION = "{{compilation.version}}";
public const string VERSION_MAJOR_MINOR = "{{compilation.version.Major}}.{{compilation.version.Minor}}";
public const string VERSION_MAJOR_MINOR_BUILD = "{{compilation.version.Major}}.{{compilation.version.Minor}}.{{compilation.version.Build}}";
}
For documentation or sourcecode see github.com/BlackWhiteYoshi/AssemblyVersionInfo.
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.