- Started Windows, Metro and Linux Platform-Plugins - Moved the RecordingSample to the Samples folder - Started two samples for using the graphics device in a WinForms and Wpf Editor - Refactorings in the AddIn-System - Moved the Window initialization-code to the Platform modules - Changed the License text in all code files which is now way smaller - Started ProjectConverter tool which converts all the projects and solution to the target configuration - Changed the SupportedPlatform names in the Resource files - Changed the WIN8 define to WINDOWSMETRO which is actually meant - Removed NLog and started our own Logger class - Many more stuff...
51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
using System;
|
|
using System.IO;
|
|
using System.Xml.Linq;
|
|
|
|
namespace ProjectConverter.Platforms
|
|
{
|
|
public class LinuxConverter : Converter
|
|
{
|
|
public override string Postfix
|
|
{
|
|
get
|
|
{
|
|
return "Linux";
|
|
}
|
|
}
|
|
|
|
#region ConvertImport
|
|
protected override void ConvertImport(XElement element)
|
|
{
|
|
XAttribute projectAttribute = element.Attribute("Project");
|
|
if (projectAttribute != null)
|
|
{
|
|
if (projectAttribute.Value.EndsWith("Microsoft.Xna.GameStudio.targets"))
|
|
{
|
|
element.Remove();
|
|
}
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region ConvertMainPropertyGroup
|
|
protected override void ConvertMainPropertyGroup(XElement element)
|
|
{
|
|
DeleteNodeIfExists(element, "ProjectTypeGuids");
|
|
DeleteNodeIfExists(element, "TargetFrameworkProfile");
|
|
|
|
XElement outputTypeNode = GetOrCreateNode(element, "OutputType");
|
|
if (outputTypeNode.Value == "WinExe" ||
|
|
outputTypeNode.Value == "appcontainerexe")
|
|
{
|
|
outputTypeNode.Value = "Exe";
|
|
}
|
|
else if (String.IsNullOrEmpty(outputTypeNode.Value))
|
|
{
|
|
outputTypeNode.Value = "Library";
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
}
|