Skip to content

Commit

Permalink
Fix loading of App Insights. Again... (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll authored Oct 24, 2019
1 parent ada87d9 commit bbd99c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/UniversalDashboard/Server/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ namespace UniversalDashboard
{
public class Server
{
static Server()
{
AppDomain.CurrentDomain.AssemblyResolve += AssemblyResolver.OnAssemblyResolve;
}

public Server(string name, string fileName, bool autoReload, PSHost host, int port, bool https)
{
if (string.IsNullOrEmpty(name))
Expand Down Expand Up @@ -91,9 +96,6 @@ public void Start(DashboardOptions dashboardOptions)
});
}

AppDomain.CurrentDomain.AssemblyResolve += AssemblyResolver.OnAssemblyResolve;


Port = dashboardOptions.Port;

var assemblyBasePath = Path.GetDirectoryName(this.GetType().GetTypeInfo().Assembly.Location);
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard/UniversalDashboard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.9.1" />
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.10.0" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv" Version="2.1.3" />
<PackageReference Include="System.Reflection.Emit" Version="4.3.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.1.2" />
Expand Down

0 comments on commit bbd99c3

Please sign in to comment.