Azure-Samples / communication-services-dotnet-quickstarts

Sample code for Azure Communication Services .Net quickstarts
MIT License
77 stars 104 forks source link

Assembly dependency error for net core application #144

Open magnusdanielson opened 7 months ago

magnusdanielson commented 7 months ago

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Start a new .net core console application. Add Azure.Communication.Calling.WindowsClient version 1.4.0 or higher. Add a reference to any class from the assembly. Compile. Error message below:

Any log messages given by the failure

Assembly 'Azure.Communication.Calling.WindowsClient.interop' with identity 'Azure.Communication.Calling.WindowsClient.interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'Microsoft.Windows.SDK.NET, Version=10.0.22621.30, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'Microsoft.Windows.SDK.NET' with identity 'Microsoft.Windows.SDK.NET, Version=10.0.22621.24, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Expected/desired behavior

Compiles witout error

OS and Version?

Windows 11 with Visual Studio 2022, all updates

Versions

Mention any other details that might be useful

Project file:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net6.0-windows10.0.22621.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Azure.Communication.Calling.WindowsClient" Version="1.4.0" />
  </ItemGroup>

</Project>

Thanks! We'll be in touch soon.