Azure-Samples / Azure-Samples/communication-services-dotnet-quickstarts

Assembly dependency error for net core application

Open
#144 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
114
Forks
145
PR merge metrics
No merged PRs in 30d

Description

### 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:
```


Exe
net6.0-windows10.0.22621.0
enable
enable



```
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.