Skip to content

Fixing a WindowBase warning during compile - #49049

Merged
Clint Rutkas (crutkas) merged 1 commit into
mainfrom
dev/crutkas/fixWindowBaseWarning
Jul 28, 2026
Merged

Fixing a WindowBase warning during compile#49049
Clint Rutkas (crutkas) merged 1 commit into
mainfrom
dev/crutkas/fixWindowBaseWarning

Conversation

@crutkas

Copy link
Copy Markdown
Member

Removing a warning that pops up a lot.

With fix:
image

Without fix: here it is commented out to show the warning.
Screenshot 2026-06-30 111523

Found conflicts between different versions of "WindowsBase" that could not be resolved.
There was a conflict between "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" and "WindowsBase, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35".
"WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" was chosen because it was primary and "WindowsBase, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" was not.
References which depend on "WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" [C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\10.0.8\ref\net10.0\WindowsBase.dll].
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\10.0.8\ref\net10.0\WindowsBase.dll
Project file item includes which caused reference "C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\10.0.8\ref\net10.0\WindowsBase.dll".
C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\10.0.8\ref/net10.0/WindowsBase.dll
References which depend on or have been unified to "WindowsBase, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" [].
C:\Users\crutkas.nuget\packages\microsoft.web.webview2\1.0.3719.77\lib_manual\net5.0-windows10.0.17763.0\Microsoft.Web.WebView2.Wpf.dll
Project file item includes which caused reference "C:\Users\crutkas.nuget\packages\microsoft.web.webview2\1.0.3719.77\lib_manual\net5.0-windows10.0.17763.0\Microsoft.Web.WebView2.Wpf.dll".
C:\Users\crutkas.nuget\packages\microsoft.web.webview2\1.0.3719.77\buildTransitive..\lib_manual\net5.0-windows10.0.17763.0\Microsoft.Web.WebView2.Wpf.dll

@crutkas
Clint Rutkas (crutkas) merged commit 7afcb8c into main Jul 28, 2026
8 checks passed
@crutkas
Clint Rutkas (crutkas) deleted the dev/crutkas/fixWindowBaseWarning branch July 28, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Build Issues pertaining to the build system, CI, infrastructure, meta Needs-Review This Pull Request awaits the review of a maintainer.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants