Moved software type version from Interop to Metadata.

This commit is contained in:
2017-12-29 01:32:12 +00:00
parent cfee0226dd
commit efc48f3e6a
8 changed files with 81 additions and 42 deletions

View File

@@ -36,29 +36,10 @@
// Copyright © 2011-2018 Natalia Portillo
// ****************************************************************************/
using DiscImageChef.Interop;
using Schemas;
namespace DiscImageChef.Interop
{
public static class Version
{
/// <summary>
/// Gets XML software type for the running version
/// </summary>
/// <param name="platform">Platform we are running in</param>
/// <returns>XML software type</returns>
public static SoftwareType GetSoftwareType(PlatformID platform)
{
// TODO: Platform should be get automatically
return new SoftwareType
{
Name = "DiscImageChef",
OperatingSystem = platform.ToString(),
Version = typeof(Version).Assembly.GetName().Version.ToString()
};
}
/// <summary>
/// Gets version string
/// </summary>