Microsoft Toolkit installation cannot be done

Lloyd Sheen 1,386 Reputation points
2022-11-11T14:54:54.44+00:00

So I have a new dev pc. I have copied all my source projects to the new pc and are trying to get several projects working or just executing apps from it that I use.

My WPF app tells me that I need to install the Microsoft.Toolkit.Wpf. I have seen many posts from MS telling me how to do it and well none of them work.

Using the package manager console with "dotnet add package Microsoft.Web.WebView2 --version 1.0.1418.22" tells me that I have more than one project in my solution and of course the solution has one project so this is useless.

At present I am stuck with this.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,681 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,643 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ken Tucker 5,846 Reputation points
    2022-11-13T10:32:38.877+00:00

    I would right click on my solution file and open it with notepad. You can double check more than one project is not listed. Also it could not hurt to delete the hidden .vs folder in your solutions directory