Be able to find the NuGget package to install from https://docs.microsoft.com/en-us/dotnet/api

506 views Asked by At

I'm trying to build a console project (.NetCore 3.1) to run the matrix multiplication example.

The issue is the following with VS2109

  • using System.Windows.Media; (VS2019 suggest me to remove the ".Media")

Just by looking at the Microsoft documentation on the web, can you explain how can I find the package to use.

1

There are 1 answers

7
canton7 On BEST ANSWER

Firstly, scroll down to the bottom of the page, to "Applies to". You can see that it's already built into .NET 3.0+ and .NET Core 3.0+:

Applies to

Fine, so we don't need to install a NuGet package to use it on .NET Framework and .NET Core. So what DLL is it in?

Take a look at the top of the page:

Namespace and Assembly

We can see that it's in WindowsBase.dll.

Provided that you're using .NET Framework or .NET Core 3.0+, you can add a reference to WindowsBase:

Reference Manager