-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET client fails to load on Windows WPF apps, assumes it is on MAUI #60
Comments
hi @rbakhshi, thank you for reporting this. We will investigate and get back to you in the next few days. Filed internally as 254757. |
For anyone interested, I found this as a workaround while a fix is being made for this. The issue is that from all the target frameworks we only need The way to do it is by changing the <PackageReference Include="LaunchDarkly.ClientSdk" Version="5.0.0" ExcludeAssets="Compile" GeneratePathProperty="true"/>
<Reference Include="LaunchDarkly.ClientSdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=90b24964a3dfb906">
<HintPath>$(PkgLaunchDarkly_ClientSdk)\lib\netstandard2.0\LaunchDarkly.ClientSdk.dll</HintPath>
</Reference>
<PackageReference Include="LaunchDarkly.CommonSdk" Version="7.0.0" ExcludeAssets="Compile" GeneratePathProperty="true"/>
<Reference Include="LaunchDarkly.CommonSdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=45ef1738a929a7df">
<HintPath>$(PkgLaunchDarkly_CommonSdk)\lib\netstandard2.0\LaunchDarkly.CommonSdk.dll</HintPath>
</Reference> Note that now you need to explicitly reference |
@tanderson-ld This is still reproducing for me, any timelines for a fix? |
Hi @sohail-p . We don't have a timeline for fixing it at the moment. Does the workaround shared work for your situation? |
@tanderson-ld we do not want to add Maui Package to our solution. Is there any other way? |
The |
Describe the bug
Client sdk 5.0.0 fails to load in a WPF app in .NET8
net8.0-windows
.To reproduce
net8.0-windows
).LdClient.Init(context)
Expected behavior
It should not fail
Logs
SDK version
LD 5.0.0
Language version, developer tools
OS/platform
Windows 10
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: