question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading to DotNet Core RC2 Preview seems to have broken Visual Studio

See original GitHub issue

Let me start by saying that I’m receiving errors left and right inside Visual Studio since upgrading to the newest version of DotNet Core. I’m going to just post one of the problems here in the hopes that they’re all related and/or can be fixed the same. I’ve tried uninstalling/repairing the packages here (https://www.microsoft.com/net/core#windows) several times, with no luck.

Steps to reproduce

  1. Create New Project image
  2. Select Empty template image
  3. Get the following error message:

image

Environment data

dotnet --info output:

image

Further issues

If it helps any, when I try to load a project from RC1, in the ActivityLog.xml file, I get an error loading ITelemetry or something like that. I also get a failure file generated, which contains the following:

5/19/2016 5:24:26 PM Recoverable System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.ProjectSystem.DotNet.Publish.PublishLoader.<<Initialize>b__13_0>d.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__76.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.ProjectSystem.DotNet.Publish.PublishLoader.<Initialize>d__13.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Microsoft.VisualStudio.ProjectSystem.UnconfiguredProjectImpl.AutoLoadMethodStateMachine.<<StartExecution>b__6_0>d.MoveNext()

I do not get this error when creating a new project, as I’ve done above.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
joshmouchcommented, May 20, 2016

I think I have a fix.

I went to the following folder: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft

And deleted the “DotNet” folder and the “Web Tools” folder.

Then I did a repair (from Programs and Features) of “Microsoft .NET Core 1.0.0 RC2 - VS 2015 Tooling Preview 1”.

I’m still testing it, but I’m way further than I was able to get before.

0reactions
TheRealPiotrPcommented, May 26, 2016

Moved to appropriate repo. Closing CLI copy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrading to ASP.NET Core RTM from RC2 - Rick Strahl
The RTM build changes JSON.NET defaults to export camelCased property names by default. Visual Studio Preview Tooling Failure. Installation of ...
Read more >
Visual Studio fails after upgradeing to 17.1.1.
I was running Visual Studio 2022 ~17.0.6, then decided to update to 17.1.1. The upgrade process appeared normal and seemed to be successful....
Read more >
.NetCoreApp 1.1 - Default Visual Studio 2017 .NET Core ...
I'm starting today to try and get to grips with the new .NET Core framework. So I installed Visual Studio 2017 Enterprise and...
Read more >
ASP.NET Core updates in .NET 6 Release Candidate 2
NET 6 RC2. Mac users should install the latest preview of Visual Studio for Mac 2022. Upgrade an existing project. To upgrade an...
Read more >
Cannot load or run lots of my projects in my solution after ...
I just installed the last update of visual studio. Then, this happened, I cannot open my projects. image. C:\Users\PC2\source\repos\AktifPOS\ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found