You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: assembly specified in the dependencies manifest was not found -- package: 'Newtonsoft.Json', version: '9.0.1', path: 'lib/netstandard1.0/Newtonsoft.Json.dll'
Environment data
dotnet --info output:
.NET Command Line Tools (2.0.0-preview2-005840)
Product Information:
Version: 2.0.0-preview2-005840
Commit SHA-1 hash: 8f2fcef544
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /home/armahapa/src/vstest/tools/dotnet/sdk/2.0.0-preview2-005840/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0-preview1-002061-00
Build : 2b70ec9c3b014af0c2a5f45de0e5b73a1ae51c09
Diagnostic info
Here are the snippets from dotnet run with export COREHOST_TRACE=1 for netcoreapp1.0 and netcoreapp2.0. It looks like dotnet is trying to resolve NewtonSoft.Json from a package directory with incorrect case for netcoreapp1.0 when compared to netcoreapp2.0.
Adding tpa entry: /tmp/trial/bin/Debug/netcoreapp1.0/trial.dll
Processing TPA for deps entry [Newtonsoft.Json, 9.0.1, lib/netstandard1.0/Newtonsoft.Json.dll]
Considering entry [Newtonsoft.Json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll] and probe dir [/home/armahapa/src/vstest/tools/dotnet/shared/Microsoft.NETCore.App/1.0.4]
Skipping... probe in deps json failed
Considering entry [Newtonsoft.Json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll] and probe dir [/home/armahapa/src/vstest/packages]
Relative path query did not exist /home/armahapa/src/vstest/packages/Newtonsoft.Json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll
Skipping... not found in probe dir
Considering entry [Newtonsoft.Json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll] and probe dir [/home/armahapa/.dotnet/NuGetFallbackFolder]
Relative path query did not exist /home/armahapa/.dotnet/NuGetFallbackFolder/Newtonsoft.Json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll
Skipping... not found in probe dir
Local path query did not exist /tmp/trial/bin/Debug/netcoreapp1.0/Newtonsoft.Json.dll
Adding tpa entry: /tmp/trial/bin/Debug/netcoreapp2.0/trial.dll
Processing TPA for deps entry [Newtonsoft.Json, 9.0.1, lib/netstandard1.0/Newtonsoft.Json.dll]
Considering entry [Newtonsoft.Json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll] and probe dir [/home/armahapa/src/vstest/tools/dotnet/shared/Microsoft.NETCore.App/2.0.0-preview1-002061-00]
Skipping... probe in deps json failed
Skipping... not found in probe dir '/home/armahapa/src/vstest/tools/dotnet/shared/Microsoft.NETCore.App/2.0.0-preview1-002061-00'
Considering entry [Newtonsoft.Json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll] and probe dir []
Local path query did not exist /tmp/trial/bin/Debug/netcoreapp2.0/Newtonsoft.Json.dll
Skipping... probe in deps dir '/tmp/trial/bin/Debug/netcoreapp2.0/' failed
Skipping... not found in probe dir ''
Considering entry [Newtonsoft.Json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll] and probe dir [/home/armahapa/src/vstest/packages]
Relative path query exists /home/armahapa/src/vstest/packages/newtonsoft.json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll
Probed package dir and matched '/home/armahapa/src/vstest/packages/newtonsoft.json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll'
Adding tpa entry: /home/armahapa/src/vstest/packages/newtonsoft.json/9.0.1/lib/netstandard1.0/Newtonsoft.Json.dll
The text was updated successfully, but these errors were encountered:
This change was correcting the "toLower" hack in the DependencyModel. On case-sensitive machines, the 2.0 SDK will be broken with shared frameworks v1.0.0-1.0.4. The bug is fixed in v1.0.5. See https://github.com/dotnet/core-setup/issues/1559.
If you want to test it out, you can install the 1.0.5-servicing-004880-00 pre-release version of 1.0.5.
* Use netcoreapp 1.0.5 shared runtime.
Fixes an issue in case-sensitive OS where packages are not located
with netcoreapp2.0 sdk and 1.0.4 runtime. See dotnet/cli#6390.
* Update build.ps1
* Update build.sh
* Update build.ps1
* Update build.sh
* Fix flaky test in datacollector attachments manager.
Steps to reproduce
1.0.4
Expected behavior
App runs successfully.
Actual behavior
App fails with following error:
Environment data
dotnet --info
output:Diagnostic info
Here are the snippets from
dotnet run
withexport COREHOST_TRACE=1
fornetcoreapp1.0
andnetcoreapp2.0
. It looks likedotnet
is trying to resolveNewtonSoft.Json
from a package directory with incorrect case fornetcoreapp1.0
when compared tonetcoreapp2.0
.netcoreapp1.0 (complete log)
netcoreapp2.0 (complete log)
The text was updated successfully, but these errors were encountered: