Repository navigation
Detect sandboxed assembly load in NuGet, warn about required action - #4461
Merged
Merged
Conversation
erdembayar
force-pushed
the
dev-eryondon-9954-nuget-metadata-unblock
branch
from
February 15, 2022 22:34
5a96d6b to
5702e8f
Compare
erdembayar
commented
Feb 15, 2022
erdembayar
commented
Feb 15, 2022
Contributor
Author
There was a problem hiding this comment.
@JonDouglas @NuGet/nuget-client
Currently path to nuget.exe included 2 times, most likely we just need one, but couldn't decide which one to keep. Please advise.
Contributor
There was a problem hiding this comment.
The path should be the executing .exe path. I can't honestly tell from this screenshot. They look the same just that the C:\ path is the more empowering one for the user.
Contributor
Author
Contributor
Author
erdembayar
marked this pull request as ready for review
February 15, 2022 23:00
nkolev92
reviewed
Feb 16, 2022
nkolev92
left a comment
Member
There was a problem hiding this comment.
Sorry, I meant to leave a comment yesterday, but appareently it stayed in pending.
erdembayar
force-pushed
the
dev-eryondon-9954-nuget-metadata-unblock
branch
2 times, most recently
from
February 17, 2022 17:06
f5702fb to
a39b418
Compare
nkolev92
approved these changes
Feb 17, 2022
nkolev92
left a comment
Member
There was a problem hiding this comment.
LGTM. 👏
You probably need to rebase.
erdembayar
force-pushed
the
dev-eryondon-9954-nuget-metadata-unblock
branch
from
February 18, 2022 02:16
3301e43 to
b4281bd
Compare
Contributor
Author
|
@NuGet/nuget-client |
jeffkl
reviewed
Feb 22, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Bug
Fixes: NuGet/Home#9954
Regression? Last working version:
Description
Net framework sandboxing causing hard to reason error for nuget.exe downloaded from internet on Windows OS. Now error is very explicit and clear, added exception handler and new NU5133 error to inform customer about need to unblock nuget.exe.
Adding unit test little bit complicated so I didn't do it, but manually tested it.
Test nuget.exe can be found here, please note it's not MS authenticode signed so ask additional permission when download.
Before:

After:

Before:

After:

Error message can be improved, please give your feedback.
PR Checklist
PR has a meaningful title
PR has a linked issue.
Described changes
Tests
Documentation