Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

404
Views
I got error when press F12 Go to definition in Visual Studio 2015 / C#

When I press F12 (Go To Definition) in Visual Studio 2015 I get this error message:

One or more errors occured

I already tried:

  1. Closing the solution
  2. Deleting the .suo file
  3. Re-building the solution

.. but that didn't fix it.

Please help.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

This is an issue with C# and tabs instead of spaces when attempting to hit the metadata of an external assembly. It may be related the inferred position of the insertion point.

enter image description here

Others have documented this

There are a couple of Connect tickets here and here and a Github issue on this. There is also a discussion here.

Visual Studio 2015 Update 1

This issue is addressed in Update 1 so please install!

Poor workaround for RTM

The options dialog remembers the last page and remains there on subsequent opens. I have a keyboard shortcut to open the options pane quickly (Alt + o). I am temporarily changing to spaces, going to definition and then reverting to tabs before making any code changes. This workflow isn't pretty but neither were the 3.0 Nuget issues in VS2015 either (Nuget 3 has improved to date).

over 4 years ago · Santiago Trujillo Report

0

VS 2015 Update 1 should fix this problem.

I have made an extension which simply enables/disables "Keep tabs" on each call of "GoToDefinition" command, and seems to work: GoToDefinition Fix

over 4 years ago · Santiago Trujillo Report

0

I found that; if you set Keep Tab under Option -> Text Editor -> All Languages -> Tabs, and it's the same under C#, the F12 and Alt + F12 Works just fine.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!