Skip to content

.NET client fails to load on Windows Console App #77

@megamechanic

Description

@megamechanic

Describe the bug
Client SDK 5.3.0 fails to load in net 8.0 Console App for Windows

To reproduce

  • Create .Net 8 Console App
  • Select Windows as target OS
  • Place the code from hello-dotnet-client
  • run App

Expected behavior
It should not fail

Logs
Exception thrown: 'System.IO.FileNotFoundException' in LaunchDarkly.ClientSdk.dll
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in LaunchDarkly.ClientSdk.dll
Could not load file or assembly 'Microsoft.Maui.Essentials, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

SDK version
LaunchDarkly.ClientSdk Version="5.3.0"

Language version, developer tools
.NET 8

OS/platform
Windows 10

Additional context

using LaunchDarkly.Sdk;
using LaunchDarkly.Sdk.Client;

namespace LaunchDarklyConsoleBug
{
    internal class Program
    {
        static void Main(string[] args)
        {
			var client = LdClient.Init(
				Configuration.Default("key", ConfigurationBuilder.AutoEnvAttributes.Enabled),
				Context.New("key"),
				TimeSpan.FromSeconds(5)
			);

			Console.ReadKey();
		}
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions