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 + + + + +