Reputation: 61
I am using Visual studio 2017 v-15.6.0. my services present in core 2.0 project. i am trying to refer core 2.0 services to azure functions Project(netStandard2.0) Which is not Supporting. I am getting below Error. 'netcoreapp2.0'. It cannot be referenced by a project that targets '.NETStandard,Version=v2.0'. Could you please help me to move forward.
Upvotes: 1
Views: 782
Reputation: 1064204
The message is entirely correct. netcoreapp2.0 is a framework target; netstandard2.0 is a standard target. Multiple different frameworks implement the same standard, which means that something that targets a standard can't know what framework it will be running on. As such:
If your project targets netstandard2.0 and the thing you want to reference only targets netcoreapp2.0, then that isn't going to work; either:
Upvotes: 2