Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Problem/Bug]: Unneeded references keep appearing in Visual Studio Solutions Explorer causing Warnings in Error List #4812

Open
mikemeinz opened this issue Sep 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working regression Something used to work but doesn't anymore

Comments

@mikemeinz
Copy link

What happened?

This problem exists with both WebView2 SDK 1.0.2651.64 and SDK 1.0.2739.15. The problem also exists with pre-release version SDK 1.0.2783-prerelease. The problem does not exist with SDK 1.0.2592.51.

I am using Microsoft.Web.WebView2 NuGet package with my .NET Framework 4.8.1 VB .NET project. This project has existed since WebView2 was first released.

Since the last two WebView2 SDK stable releases, references to .net6.0 and netcoreapp3.0 WebView2 libraries have been automatically added to my project when the Solution is opened in Visual Studio. If I remove them from VS Solutions Explorer, they re-appear upon re-opening the Solution. If I uninstall Microsoft.Web.WebView2 NuGet package and re-install it, these references re-appear. The items in the Error List are warnings so do not prevent compilation but they do take space in the Error List.

These references have started showing in the VS 2022 Solutions Explorer:

C:\Users\<username>\.nuget\packages\microsoft.web.webview2\1.0.2739.15\build\..\\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll
C:\Users\<username>\.nuget\packages\microsoft.web.webview2\1.0.2739.15\build\..\\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll
C:\Users\<username>\.nuget\packages\microsoft.web.webview2\1.0.2739.15\build\..\\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.WinForms.dll
C:\Users\<username>\.nuget\packages\microsoft.web.webview2\1.0.2739.15\build\..\\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Wpf.dll

These warning messages are displayed in the VS Error List window

Severity	Code	Description	Project	File	Line	Suppression State
Warning		The referenced component 'C:\Users\<username>\.nuget\packages\microsoft.web.webview2\1.0.2739.15\build\..\\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.WinForms.dll' could not be found.	VideoPlayerManager			
Warning		The referenced component 'C:\Users\<username>\.nuget\packages\microsoft.web.webview2\1.0.2739.15\build\..\\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll' could not be found.	VideoPlayerManager			
Warning		The referenced component 'C:\Users\<username>\.nuget\packages\microsoft.web.webview2\1.0.2739.15\build\..\\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll' could not be found.	VideoPlayerManager			
Warning		The referenced component 'C:\Users\<username>\.nuget\packages\microsoft.web.webview2\1.0.2739.15\build\..\\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Wpf.dll' could not be found.	VideoPlayerManager

Importance

Low. My app is not very affected, or this only affects development.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

128.0.2739.79

SDK Version

1.0.2651.64, 1.0.2739.15, SDK 1.0.2783-prerelease

Framework

Winforms

Operating System

Windows 11

OS Version

22631.3880

Repro steps

Open the Solution in Visual Studio 2022 and the extra references re-appear.


Visual Studio Installed Products:

Microsoft Visual Studio Community 2022
Version 17.11.3
VisualStudio.17.Release/17.11.3+35303.130

Microsoft .NET Framework
Version 4.8.09032

Installed Version: Community

ASP.NET and Web Tools 17.11.231.19466
ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.11.231.19466
Azure App Service Tools v3.0.0

C# Tools 4.11.0-3.24428.4+1ea9c390a5bb6815fdff2137ee155e23e78d6ff3
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Code Converter 1.0
Code Converter Extension Details

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub Copilot 0.2.1648.49400
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

IndentRainbowPackage Extension 1.0
IndentRainbowPackage Visual Studio Extension Detailed Info

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

MSBuild Editor 2.9.524+91c41270f3
Language service for MSBuild projects and targets

Node.js Tools 1.5.60329.1 Commit Hash:15fce86a17f9f33e5bd7ca7ccb9b216aff149252
Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager 6.11.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Rainbow Braces 1.0.164
Colorizes matching brace pairs to make it easy to identify them and their scope. Works for curly brackets, parentheses, and square brackets.

Razor (ASP.NET Core) 17.11.3.2442001+68650a7d94261bc56a1f4bc522c2ee35314b1abb
Provides languages services for ASP.NET Core Razor.

RunCommand Extension 1.0
RunCommand Visual Studio Extension Detailed Info

SQL Server Data Tools 17.11.38.0
Microsoft SQL Server Data Tools

TypeScript Tools 17.0.30715.2002
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 4.11.0-3.24428.4+1ea9c390a5bb6815fdff2137ee155e23e78d6ff3
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.11.0-beta.24421.7+af2f522de602281d4ef5a7b71507c428e814c5c1
Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer SDK

Last working version (if regression)

1.0.2592.51

@mikemeinz mikemeinz added the bug Something isn't working label Sep 15, 2024
@github-actions github-actions bot added the regression Something used to work but doesn't anymore label Sep 15, 2024
@vbryh-msft vbryh-msft assigned oggy22 and unassigned vbryh-msft and lflores-ms Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work but doesn't anymore
Projects
None yet
Development

No branches or pull requests

4 participants