Skip to content

Assembly dependency error for net core application #144

@magnusdanielson

Description

@magnusdanielson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions