Visual studio 2017 go to implementation not work for .net standard library
Asked Answered
P

3

7

In Visual studio 2017, Go to Implementation for .net standard library not work? Go to Implementation for .net core library work fine. but for .net standard throw

The symbol has no implementations

How can I solve this problem?

Prototrophic answered 8/12, 2018 at 5:23 Comment(4)
what are you using F12 on? is it a .net project?Virtuous
@Neville Nazerane, F12 go to interface, I use Ctrl+F12 for go to Implementation but not work. project is .net core console applicationPrototrophic
is this a built-in interface or your own interface?Virtuous
this is my defined interfacePrototrophic
B
8

I am having the same issue after upgrading to .Net core 2.1. As work around I use

F12 then Ctrl+F12 from the Interface

Update: Seems like it is VS issue and there is no plan to be resolved soon

https://developercommunity.visualstudio.com/content/problem/111096/f12-go-to-definition-does-not-work-in-net-standard.html

Bauhaus answered 12/12, 2018 at 18:1 Comment(4)
This not work for me by conditions that write in questionPrototrophic
@MohammadAkbari Is it your app .Net core 2.1?Bauhaus
Yes, Is it .Net core 2.1Prototrophic
"soon" eheh. still doesn't work :( without that work around.Overlive
S
1

Delete .vs folder usually work. this folder is same place as your solution file enter image description here

Septime answered 23/6, 2020 at 3:5 Comment(0)
C
0

I found that changing from:

<TargetFramework>netstandard2.0</TargetFramework>

to:

<TargetFrameworks>netstandard2.0;netcoreapp3.1;net472</TargetFrameworks>

solved the problem.

Citriculture answered 8/5, 2020 at 7:11 Comment(2)
Where do you change it? What does it do?Trovillion
edit csproj file. that solved problem with navigation to implementation with ctrl+f12Citriculture

© 2022 - 2024 — McMap. All rights reserved.