Skip to content

Update netsdk1064.md #22783

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

Merged
merged 1 commit into from
Feb 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/core/tools/sdk-errors/netsdk1064.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ This error occurs when the build tools can't find a NuGet package that's needed
Here are some actions you can take to resolve this error:

* Add the `/restore` option to your *MSBuild.exe* command. Don't use `/t:Restore;Build`, as that can result in subtle bugs. An alternative is to use the `dotnet build` command, since it automatically does a package restore.
* If you're running package restore by using Visual Studio 2019 or *MSBuild.exe* the error may be caused by maximum path length restrictions. For more information, see [Long Path Support (NuGet CLI)](/nuget/reference/cli-reference/cli-ref-long-path) and [NuGet/Home issue #3324](https://github.com/NuGet/Home/issues/3324).
* If you're running package restore by using Visual Studio 2019 or *MSBuild.exe*, the error may be caused by maximum path length restrictions. For more information, see [Long Path Support (NuGet CLI)](/nuget/reference/cli-reference/cli-ref-long-path) and [NuGet/Home issue #3324](https://github.com/NuGet/Home/issues/3324).
* If you're restoring with x86 *nuget.exe* and building with x64 *MSBuild.exe*, the mismatched bitness could cause this error. The build can't find the packages that the restore claims it acquired because the path in *project.assets.json* doesn't work in a process of different bitness. To resolve the error, use tools of the same bitness for restore and build, or configure NuGet to restore packages to a folder that doesn't virtualize between x86 and x64. For more information, see [dotnet/core issue #4332](https://github.com/dotnet/core/issues/4332).
* If you're building a Docker image, make sure the *.dockerignore* file ignores the *bin* and *obj* directories. For more information, see [NETSDK1064: Package DnsClient, 1.2.0 was not found](https://stackoverflow.com/questions/61167032/error-netsdk1064-package-dnsclient-1-2-0-was-not-found).