Skip to content

Commit

Permalink
Assembly resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
bamby084 committed Oct 22, 2023
1 parent 31f1420 commit 6128de6
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ public BusinessLogicViewModel(string projectDirectory, string className, string
this._assemblyName = assemblyName;
this._contextTypes = new List<Type>(contextTypes);
this._help = help;

AppDomain.CurrentDomain.AssemblyResolve += OnAssemblyResolve;
}

private Assembly OnAssemblyResolve(object sender, ResolveEventArgs args)
{
if (args.Name.StartsWith("OpenRiaServices.VisualStudio.DomainServices.Tools.14.0"))
{
return typeof(BusinessLogicViewModel).Assembly;
}

return null;
}

/// <summary>
Expand Down

0 comments on commit 6128de6

Please sign in to comment.