diff --git a/Ooui.Wasm.Build.Tasks/BuildDistTask.cs b/Ooui.Wasm.Build.Tasks/BuildDistTask.cs
index fc79a5a..2ab95d0 100644
--- a/Ooui.Wasm.Build.Tasks/BuildDistTask.cs
+++ b/Ooui.Wasm.Build.Tasks/BuildDistTask.cs
@@ -20,6 +20,8 @@ namespace Ooui.Wasm.Build.Tasks
[Required]
public string Assembly { get; set; }
+ [Required]
+ public string OutputPath { get; set; }
public string ReferencePath { get; set; }
public override bool Execute ()
@@ -78,8 +80,7 @@ namespace Ooui.Wasm.Build.Tasks
void CreateDist ()
{
- var fullAsmPath = Path.GetFullPath (Assembly);
- var outputPath = Path.GetDirectoryName (fullAsmPath);
+ var outputPath = Path.GetFullPath (OutputPath);
distPath = Path.Combine (outputPath, "dist");
managedPath = Path.Combine (distPath, "managed");
Directory.CreateDirectory (managedPath);
diff --git a/Ooui.Wasm.Build.Tasks/Ooui.Wasm.targets b/Ooui.Wasm.Build.Tasks/Ooui.Wasm.targets
deleted file mode 100644
index f9cde31..0000000
--- a/Ooui.Wasm.Build.Tasks/Ooui.Wasm.targets
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
- $(CompileDependsOn);
- BuildDist;
-
-
-
-
-
- <_BuildDistAlreadyExecuted>true
-
-
-
-
-
diff --git a/Ooui.Wasm/Ooui.Wasm.targets b/Ooui.Wasm/Ooui.Wasm.targets
index ebeee45..ed1ac2c 100644
--- a/Ooui.Wasm/Ooui.Wasm.targets
+++ b/Ooui.Wasm/Ooui.Wasm.targets
@@ -15,7 +15,8 @@
<_BuildDistAlreadyExecuted>true