diff --git a/Ooui.Wasm.Build.Tasks/BuildDistTask.cs b/Ooui.Wasm.Build.Tasks/BuildDistTask.cs index 7ae6da5..2f112c9 100644 --- a/Ooui.Wasm.Build.Tasks/BuildDistTask.cs +++ b/Ooui.Wasm.Build.Tasks/BuildDistTask.cs @@ -209,6 +209,7 @@ namespace Ooui.Wasm.Build.Tasks Pipeline GetLinkerPipeline () { var p = new Pipeline (); + p.AppendStep (new DontLinkExeStep ()); p.AppendStep (new LoadReferencesStep ()); p.AppendStep (new PreserveUsingAttributesStep (bclAssemblies.Values.Select (Path.GetFileNameWithoutExtension))); p.AppendStep (new BlacklistStep ()); @@ -221,6 +222,16 @@ namespace Ooui.Wasm.Build.Tasks return p; } + class DontLinkExeStep : BaseStep + { + protected override void Process () + { + foreach (var a in Context.GetAssemblies ()) { + Annotations.SetAction (a, AssemblyAction.Copy); + } + } + } + class MarkStepWithUnresolvedLogging : MarkStep { public TaskLoggingHelper Log;