Failure with .NET Core 2.0.0-preview2 SDK
See original GitHub issueFrom @cesarbs on May 18, 2017 17:18
Got this in VS Code with the latest pre-release version of the C# extension (1.10.0-beta3):
[fail]: OmniSharp.MSBuild.ProjectFile.ProjectFileInfo
The "ResolvePackageDependencies" task failed unexpectedly.
This is an unhandled exception from a task -- PLEASE OPEN A BUG AGAINST THE TASK OWNER.
System.TypeLoadException: Could not resolve type with token 01000040
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.GetPackageAndFileDependencies (NuGet.ProjectModel.LockFileTarget target) [0x0011f] in <9445a2665fcc4f009bbfa9fcd34c78f9>:0
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.RaiseLockFileTargets () [0x000a6] in <9445a2665fcc4f009bbfa9fcd34c78f9>:0
at Microsoft.NET.Build.Tasks.ResolvePackageDependencies.ExecuteCore () [0x00006] in <9445a2665fcc4f009bbfa9fcd34c78f9>:0
at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x00000] in <9445a2665fcc4f009bbfa9fcd34c78f9>:0
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x0002a] in <6a1392588f4a45bdbe07807130f9b3d0>:0
at Microsoft.Build.BackEnd.TaskBuilder+<ExecuteInstantiatedTask>d__26.MoveNext () [0x002bf] in <6a1392588f4a45bdbe07807130f9b3d0>:0
[warn]: OmniSharp.MSBuild.MSBuildProjectSystem
Failed to load project file '/Users/Cesar/src/aspnet/KestrelHttpServer/src/Microsoft.AspNetCore.Server.Kestrel.Core/Microsoft.AspNetCore.Server.Kestrel.Core.csproj'.
/Users/Cesar/src/aspnet/KestrelHttpServer/src/Microsoft.AspNetCore.Server.Kestrel.Core/Microsoft.AspNetCore.Server.Kestrel.Core.csproj
Happens on every project in Kestrel.
dotnet info:
$ dotnet --info
.NET Command Line Tools (2.0.0-preview2-006082)
Product Information:
Version: 2.0.0-preview2-006082
Commit SHA-1 hash: 6453cb4e15
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /Users/Cesar/.dotnet/sdk/2.0.0-preview2-006082/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0-preview2-25309-07
Build : 41f5fc94eedc889f086800c23f35bf14a8c75a9f
Copied from original issue: dotnet/sdk#1229
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:106 (56 by maintainers)
Top Results From Across the Web
Problems after install Net Core 2.0 building in Visual Studio ...
After I installed Net Core 2.0, if I try to build a API Web Core App from VS, I got the obvious error...
Read more >ASP.NET Core 2.2.0-preview2 now available
NET Core after installing the preview SDK, you can force specific projects to use an earlier installed version of the SDK using a...
Read more >The SDK 'Microsoft.NET.Sdk.Web' specified could not be found
None of exe projects will load, getting error "The SDK 'Microsoft.NET. ... was written to C:\Program Files\dotnet\sdk\2.0.0-preview2-006497 but the install ...
Read more >Microsoft.NETCore.App 2.0.0-preview2-25407-01 - NuGet
NET API's that are included in the default .NET Core ... App 2.0.0-preview2-25407-01 ... It may lead to specific problems in your project....
Read more >Building ASP.NET Core 2.0 preview 2 packages on AppVeyor
NET Core preview libraries on AppVeyor by installing the SDK on ... -458E-8819-279C5A68EDCF/dotnet-sdk-2.0.0-preview2-006497-win-x64.zip" ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Preview 2 builds are not yet supported. These are still bleeding edge nightly builds which need work to properly support. I plan on looking at this in the coming week.
JFYI to those watching that I’ve gotten a super-hot Mono runtime that demonstrates .NET Core 2.0-preview2 builds working on OSX. A new Mono runtime is needed that adds an
--assembly-loader=script
flag to replicate desktop CLR SxS assembly loading behavior.