XRTK / com.xrtk.core

The Official Mixed Reality Framework for Unity
https://xrtk.io
MIT License
307 stars 34 forks source link

auto update assembly version based on package.json info #840

Closed StephenHodgson closed 3 years ago

StephenHodgson commented 3 years ago

XRTK - Mixed Reality Toolkit Pull Request

Overview

Provides a way to list the version of the xrtk or one of the associated packages using the assembly version name.

Example:

typeof(MixedRealityToolkit).Assembly.GetName().Version;

where the type is one of the types in the assembly you're wanting to get the version of.

foreach (var (module, version) in MixedRealityToolkit.Modules)
{
    Debug.Log($"{module}, v{version}");
}

Changes