Skip to content

Generate errors for assembly version conflicts for Microsoft.Windows.SDK.NET #15370

Closed

Description

The Windows CSWinRT API targeting packs are going to be updating regularly. This means that libraries compiled with newer versions of the .NET SDK will have an assembly reference to higher versions of Microsoft.Windows.SDK.NET.dll. If a project that is using an older version of the .NET SDK consumes an updated library (ie via a NuGet package), then there will be an MSB3277 warning from ResolveAssemblyReferences, and a FileLoadException at runtime. (Depending on how types are shared, the build may also fail with a CS1705 compiler error.)

Instead of a build warning and a runtime failure, this should fail at build time with a message saying that a dependency depends on a newer version of Microsoft.Windows.SDK.NET, and suggesting updating the .NET SDK. It is now possible for us to implement since MSBuild implemented dotnet/msbuild#5990.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions