Add test project for bench-testing whatever we want without loading the entire UE UI

This commit is contained in:
Michael Becker 2019-08-16 01:07:22 -04:00
parent 45489ccd71
commit 7e2e98ce35
4 changed files with 108 additions and 0 deletions

View File

@ -0,0 +1,20 @@
using System;
using UniversalEditor.Accessors;
using UniversalEditor.DataFormats.Package.OpenPackagingConvention;
using UniversalEditor.ObjectModels.Package;
namespace UniversalEditor.TestProject
{
class MainClass
{
public static void Main (string [] args)
{
string fileName = "/tmp/UETest/test.opc";
PackageObjectModel om = new PackageObjectModel ();
OPCDataFormat df = new OPCDataFormat ();
Document.Save (om, df, new FileAccessor (fileName, true, true));
}
}
}

View File

@ -0,0 +1,26 @@
using System.Reflection;
using System.Runtime.CompilerServices;
// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.
[assembly: AssemblyTitle ("UniversalEditor.TestProject")]
[assembly: AssemblyDescription ("")]
[assembly: AssemblyConfiguration ("")]
[assembly: AssemblyCompany ("")]
[assembly: AssemblyProduct ("")]
[assembly: AssemblyCopyright ("Mike Becker")]
[assembly: AssemblyTrademark ("")]
[assembly: AssemblyCulture ("")]
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
[assembly: AssemblyVersion ("1.0.*")]
// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
//[assembly: AssemblyDelaySign(false)]
//[assembly: AssemblyKeyFile("")]

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{242A32D8-9A3A-4FE3-902B-AB9C3154723A}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>UniversalEditor.TestProject</RootNamespace>
<AssemblyName>UniversalEditor.TestProject</AssemblyName>
<TargetFrameworkVersion>v4.7</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ExternalConsole>true</ExternalConsole>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ExternalConsole>true</ExternalConsole>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Plugins\UniversalEditor.Plugins.Microsoft\UniversalEditor.Plugins.Microsoft.csproj">
<Project>{4698BC3F-EC29-42EB-9AED-3D8F9983A108}</Project>
<Name>UniversalEditor.Plugins.Microsoft</Name>
</ProjectReference>
<ProjectReference Include="..\..\Libraries\UniversalEditor.Essential\UniversalEditor.Essential.csproj">
<Project>{30467E5C-05BC-4856-AADC-13906EF4CADD}</Project>
<Name>UniversalEditor.Essential</Name>
</ProjectReference>
<ProjectReference Include="..\..\Libraries\UniversalEditor.Core\UniversalEditor.Core.csproj">
<Project>{2D4737E6-6D95-408A-90DB-8DFF38147E85}</Project>
<Name>UniversalEditor.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\Plugins\UniversalEditor.Plugins.FileSystem\UniversalEditor.Plugins.FileSystem.csproj">
<Project>{76FD1306-9CA4-428F-993B-B7E4EEEACBF3}</Project>
<Name>UniversalEditor.Plugins.FileSystem</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -133,6 +133,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.Fam
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.FamilyTreeMaker.UserInterface", "Plugins.UserInterface\UniversalEditor.Plugins.FamilyTreeMaker.UserInterface\UniversalEditor.Plugins.FamilyTreeMaker.UserInterface.csproj", "{E6C8A539-F219-4BD0-A2F4-E7064ABF6777}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.TestProject", "Applications\UniversalEditor.TestProject\UniversalEditor.TestProject.csproj", "{242A32D8-9A3A-4FE3-902B-AB9C3154723A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -385,6 +387,10 @@ Global
{E6C8A539-F219-4BD0-A2F4-E7064ABF6777}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E6C8A539-F219-4BD0-A2F4-E7064ABF6777}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E6C8A539-F219-4BD0-A2F4-E7064ABF6777}.Release|Any CPU.Build.0 = Release|Any CPU
{242A32D8-9A3A-4FE3-902B-AB9C3154723A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{242A32D8-9A3A-4FE3-902B-AB9C3154723A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{242A32D8-9A3A-4FE3-902B-AB9C3154723A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{242A32D8-9A3A-4FE3-902B-AB9C3154723A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{6F0AB1AF-E1A1-4D19-B19C-05BBB15C94B2} = {05D15661-E684-4EC9-8FBD-C014BA433CC5}
@ -447,6 +453,7 @@ Global
{B8573BB1-A0CD-41F4-A775-E0CB79555C59} = {20F315E0-52AE-479F-AF43-3402482C1FC8}
{74A835FD-93B8-4268-B120-1ACAA128AC7B} = {2ED32D16-6C06-4450-909A-40D32DA67FB4}
{E6C8A539-F219-4BD0-A2F4-E7064ABF6777} = {2ED32D16-6C06-4450-909A-40D32DA67FB4}
{242A32D8-9A3A-4FE3-902B-AB9C3154723A} = {05D15661-E684-4EC9-8FBD-C014BA433CC5}
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0