-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tool restore without proper imports silently fails. #2462
Comments
I have noticed this as well with |
@NTaylorMullen It might be more helpful to look at the lock file entry for your tool rather than the The lock file should be right next to the deps.json. |
/cc @davidfowl So what we're saying is that if a dependency of a tool or the tool itself is not compatible with |
Correct. |
@NTaylorMullen, this fix should be in .NET CLI right now. Could you verify that this issue is resolved? |
@joelverhagen confirmed with 002416. |
Thanks! |
I have a tool (aspnet/RazorTooling) that utilizes
Newtonsoft.Json
. CurrentlyNewtonsoft.Json
's package does not have the proper TFMs for the RazorTooling project to understand without imports. If I happen to make a mistake in myproject.json
and forget to include an import that works withNewtonsoft.Json
I do not get an error on restore. Instead in mydeps.json
fileNewtonsoft.Json
is listed as:"Newtonsoft.Json/8.0.3": {}
(wrong) which then causes runtime failures whenever I attempt to use the tool (couldn't loadNewtonsoft.Json
or one of its dependencies).Tool restore should fail the same as non-tool restore ex:
/cc @pakrym
The text was updated successfully, but these errors were encountered: