Fix build dist paths
This commit is contained in:
parent
358e412d96
commit
b45015541b
|
@ -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);
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<UsingTask TaskName="Ooui.Wasm.Build.Tasks.BuildDistTask" AssemblyFile="$(MSBuildThisFileDirectory)Ooui.Wasm.Build.Tasks.dll" />
|
||||
|
||||
<!-- BuildDist -->
|
||||
<PropertyGroup>
|
||||
<CompileDependsOn>
|
||||
$(CompileDependsOn);
|
||||
BuildDist;
|
||||
</CompileDependsOn>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="BuildDist" AfterTargets="AfterCompile" Condition="'$(_BuildDistAlreadyExecuted)'!='true'">
|
||||
<PropertyGroup>
|
||||
<_BuildDistAlreadyExecuted>true</_BuildDistAlreadyExecuted>
|
||||
</PropertyGroup>
|
||||
<BuildDistTask
|
||||
Assembly = "$(OutputPath)$(TargetFileName)"
|
||||
ReferencePath = "@(ReferencePath)" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
|
@ -15,7 +15,8 @@
|
|||
<_BuildDistAlreadyExecuted>true</_BuildDistAlreadyExecuted>
|
||||
</PropertyGroup>
|
||||
<BuildDistTask
|
||||
Assembly = "$(OutputPath)$(TargetFileName)"
|
||||
Assembly = "$(IntermediateOutputPath)$(TargetFileName)"
|
||||
OutputPath = "$(OutputPath)"
|
||||
ReferencePath = "@(ReferencePath)" />
|
||||
</Target>
|
||||
|
||||
|
|
Loading…
Reference in New Issue