dotnet restore FileNotFoundException: System.Linq, Version=4.0.2.0
Running dotnet restore with latest dotnet cli (1.0.0.1370 beta) on a proj that was restoring fine a couple of days ago under the prior dotnet cli (1.0.0.1306 beta) ...
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly
'System.Linq, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies. The system cannot find the file specified.
at Microsoft.DotNet.Cli.Utils.DebugHelper.HandleDebugSwitch(String[]& args)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
Uninstalling 1.0.0.1370 beta and going back to 1.0.0.1306 beta, dotnet restore works again ...
log : Committing restore...
log : Restore completed in 376365ms.
I don't quite understand how our CI is passing yet you hit something like this... Seems like we need to see if we're pushing what we think we're pushing.
/cc @piotrpMSFT
Actually, it's not specific to the restore command:

are folks seeing this on Windows only?
Win10 only here
do you have DOTNET_HOME set by chance? can you try deleting it? we recently removed the requirement but I worry that it's now overriding the default behavior...
@piotrpMSFT
Yep, that licked it. I deleted the DOTNET_HOME env var and uninstalled. I rebooted and reinstalled -1370. It works. Thx. Go ahead and close when ready ... I'm good.
Assigning to @schellap. Can CoreHost provide some useful diagnostics output in cases like this?
The scenario is legitimate. Someone has a DOTNET_HOME set which they used to point to a runtime installation directory. Later they deleted the runtime but forgot to unset DOTNET_HOME. How do we get them back into a good state?
@GuardRex could you turn on set COREHOST_TRACE=1 and pastebin the output or relevant portion (search for coreclr)?
@schellap Sure, I'll do it right after the Standup ends ... or when they get into the 4-hour Q&A part :smile:
@piotrpMSFT how is the host copied to the stage2\bin? I have a weird feeling the CoreHost added to the publish graph is stomping on this host?
@schellap are you able to get a local repro? Point DOTNET_HOME to an empty directory?
Tried, no local repro with: https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/Latest/dotnet-win-x64.latest.zip
@schellap I'll see if I can break it again for you (with trace) ... I'm really, really good at breaking stuff :monkey:
https://dotnetcli.blob.core.windows.net/dotnet/beta/Installers/1.0.0.1370/dotnet-win-x64.1.0.0.1370.exe MSI install doesn't repro as well for me. Will wait for @GuardRex inputs.
@schellap I'm going on it right now. I'll get back to you soon.
@schellap Good ... yep ... I re-broke it.
Microsoft_Dotnet_CLI_for_Windows_(1.0.0.1370_)_20160216164533_000_dotnet_win_x64.1.0.0.1370.msi.txt
@GuardRex strikes again!
Can you set COREHOST_TRACE=1 and give me the trace of the dotnet restore?
oh, sure ... brb