NuGet version : Dev-4721
VS version : D15.6 27213.01
OS version : RS3_Release 16299.15.170928-1534
There is an error saying "Certificate chain validation failed with error: UntrustedRoot" and the package was not installed in the project.
There is no error show and the package is installed in the project successfully as below screenshot.

@mishra14 will you dupe this out or take a look at fixing it?
@mishra14 - Sounds like the test needs to be fixed. Can you please follow up.
@v-nancyj, the current product behavior is correct. The test case needs to be updated so that the expected result matches the actual result described above. The default VS policy allows installation of packages signed with an untrusted certificate. "NuGet.exe verify" should report this untrusted status with an error.
CC @rido-min
VS should generate a warning when restoring packages signed with untrusted certs.
This is being fixed for net core projects as part of https://github.com/NuGet/NuGet.Client/pull/2212
@mishra14 is this fixed?
This is fixed in dev now, and we may bring the fix to 15.8 as well.
@mishra14 - can you please retest this in dev with the original repro steps. Vendors say that this still repros. Thx.
It still repro on D16.0stg 27927.3000 + NuGet Client Dev\5.0.0.5364.
I'm running 15.8.0.27929 and I can see the Warning in the Package Manager Output, but the warning is not found in the Error List.

VS 15.8 P5 with NuGet 5.0.0.47 which should be in sync with 5.0.0.5364
.NET Core project -

classic csproj project -

@rido-min @v-luzh Can you please run nuget.exe locals -clear all before testing this?
Discussed offline,. I need to investigate packages.config scenario with only warnings.
@mishra14, we can see the warning NU3018 show in Error List window even without running "nuget.exe locals -clear all" with .NET Core project on D16.0stg 28002.3001 + NuGet Client dev\5.0.0.5381. But it still repro on packages.config project.
closing, as this is fixed in 5.0 / VS 16.0 code base now.
The Restore scenario for packages config, has been fixed in https://github.com/NuGet/NuGet.Client/pull/2388