From 82a154b1e2d3f535a76ab78316a407e66e80ac9f Mon Sep 17 00:00:00 2001 From: "Frank A. Krueger" Date: Mon, 12 Mar 2018 22:27:03 -0700 Subject: [PATCH] Add scaffolded wasm build task --- Ooui.Wasm.Build.Tasks/BuildDistTask.cs | 30 +++++++++++++++++++ .../Ooui.Wasm.Build.Tasks.csproj | 19 ++++++++++++ Ooui.Wasm.Build.Tasks/Ooui.Wasm.targets | 22 ++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 Ooui.Wasm.Build.Tasks/BuildDistTask.cs create mode 100644 Ooui.Wasm.Build.Tasks/Ooui.Wasm.Build.Tasks.csproj create mode 100644 Ooui.Wasm.Build.Tasks/Ooui.Wasm.targets diff --git a/Ooui.Wasm.Build.Tasks/BuildDistTask.cs b/Ooui.Wasm.Build.Tasks/BuildDistTask.cs new file mode 100644 index 0000000..815b26c --- /dev/null +++ b/Ooui.Wasm.Build.Tasks/BuildDistTask.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Xml; + +using Microsoft.Build.Framework; +using Microsoft.Build.Utilities; + +namespace Ooui.Wasm.Build.Tasks +{ + public class BuildDistTask : MarshalByRefObject, ITask + { + [Required] + public string Assembly { get; set; } + public string ReferencePath { get; set; } + + public bool Execute () + { + var fullAsmPath = Path.GetFullPath (Assembly); + Console.WriteLine ("YO " + fullAsmPath); + return true; + } + + public IBuildEngine BuildEngine { get; set; } + public ITaskHost HostObject { get; set; } + + } + +} diff --git a/Ooui.Wasm.Build.Tasks/Ooui.Wasm.Build.Tasks.csproj b/Ooui.Wasm.Build.Tasks/Ooui.Wasm.Build.Tasks.csproj new file mode 100644 index 0000000..5c10762 --- /dev/null +++ b/Ooui.Wasm.Build.Tasks/Ooui.Wasm.Build.Tasks.csproj @@ -0,0 +1,19 @@ + + + + netstandard2.0 + + + + + + + + + + + + + + + diff --git a/Ooui.Wasm.Build.Tasks/Ooui.Wasm.targets b/Ooui.Wasm.Build.Tasks/Ooui.Wasm.targets new file mode 100644 index 0000000..f9cde31 --- /dev/null +++ b/Ooui.Wasm.Build.Tasks/Ooui.Wasm.targets @@ -0,0 +1,22 @@ + + + + + + + + $(CompileDependsOn); + BuildDist; + + + + + + <_BuildDistAlreadyExecuted>true + + + + +