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

@@ -44,12 +44,6 @@
<Link>LICENSE.MIT</Link>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DiscImageChef.Metadata\DiscImageChef.Metadata.csproj">
<Project>{9F213318-5CB8-4066-A757-074489C9F818}</Project>
<Name>DiscImageChef.Metadata</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<MonoDevelop>

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>