问题
I'm using VS2015, when I add a service to my service fabric application, the reference has a yellow triangle. My Error window has no errors in it, and when I hover over the reference nothing popups up. How can I find out what it's problem is?
The solution builds and runs fine otherwise.
回答1:
This is a known bug in VS - the underlying project configuration system is incorrectly flagging the references as wrong. Things should work normally if you do a build.
回答2:
I was having the same error when referencing a class library from the service project. The target framework on the class library was 4.7, which was higher than the one of the service, 4.5.2.
So I just made sure they were compiling to the same framework versions (used 4.5.2 for both projects).
来源:https://stackoverflow.com/questions/42365272/service-fabric-service-reference-has-yellow-triangle