R
R
run1822019-08-14 17:47:01
C++ / C#
run182, 2019-08-14 17:47:01

Why is the namespace not connected to the script through using?

I added several NuGet packages to my project and I'm trying to use them by declaring using MailKit at the beginning; for example.
But I get the error "Could not find type or namespace name..."
Why does this error occur and how can I fix it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
shai_hulud, 2019-08-14
@shai_hulud

Check that the target framework of the project fits the requirements of the package.

E
Evident, 2019-08-14
@Evident

This package (Google.Apis.Auth) needs to be downloaded via NuGet. (requires .NET Framework 4.5+)

R
run182, 2019-08-14
@run182

I had to reboot the studio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question