Don't link the main assembly
The main assembly was getting marked to link because it is an EXE. This was making data binding fail. Fixes #113 Fixes #107
This commit is contained in:
parent
865929c434
commit
d7d7290c87
|
@ -209,6 +209,7 @@ namespace Ooui.Wasm.Build.Tasks
|
||||||
Pipeline GetLinkerPipeline ()
|
Pipeline GetLinkerPipeline ()
|
||||||
{
|
{
|
||||||
var p = new Pipeline ();
|
var p = new Pipeline ();
|
||||||
|
p.AppendStep (new DontLinkExeStep ());
|
||||||
p.AppendStep (new LoadReferencesStep ());
|
p.AppendStep (new LoadReferencesStep ());
|
||||||
p.AppendStep (new PreserveUsingAttributesStep (bclAssemblies.Values.Select (Path.GetFileNameWithoutExtension)));
|
p.AppendStep (new PreserveUsingAttributesStep (bclAssemblies.Values.Select (Path.GetFileNameWithoutExtension)));
|
||||||
p.AppendStep (new BlacklistStep ());
|
p.AppendStep (new BlacklistStep ());
|
||||||
|
@ -221,6 +222,16 @@ namespace Ooui.Wasm.Build.Tasks
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class DontLinkExeStep : BaseStep
|
||||||
|
{
|
||||||
|
protected override void Process ()
|
||||||
|
{
|
||||||
|
foreach (var a in Context.GetAssemblies ()) {
|
||||||
|
Annotations.SetAction (a, AssemblyAction.Copy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class MarkStepWithUnresolvedLogging : MarkStep
|
class MarkStepWithUnresolvedLogging : MarkStep
|
||||||
{
|
{
|
||||||
public TaskLoggingHelper Log;
|
public TaskLoggingHelper Log;
|
||||||
|
|
Loading…
Reference in New Issue