Skip to content
Permalink
Browse files

[NuGet] Perform nuget resolve only for entry assembly

  • Loading branch information
xen2 committed Nov 25, 2018
1 parent a4ced9d commit 0280495034930e4f84d55a6ae5945ae4b6d043c7
Showing with 4 additions and 0 deletions.
  1. +4 −0 sources/shared/Xenko.NuGetResolver/NuGetAssemblyResolver.cs
@@ -30,6 +30,10 @@ class NuGetAssemblyResolver
[ModuleInitializer(-100000)]
internal static void __Initialize__()
{
// Only perform this for entry assembly (which is null during module .ctor)
if (Assembly.GetEntryAssembly() != null)
return;

// Note: we perform nuget restore inside the assembly resolver rather than top level module ctor (otherwise it freezes)
AppDomain.CurrentDomain.AssemblyResolve += (sender, eventArgs) =>
{

0 comments on commit 0280495

Please sign in to comment.
You can’t perform that action at this time.