2
votes

I have a project that targets .NET framework 4.6 and I need to call Watson Conversation API there. I created a .NET core project and added the IBM.WatsonDeveloperCloud NuGET packages, however it doesn't allow me to refer to .net core app from a .net framework.

Error: project X targets .NETCoreApp, Version=v1.1. it cannot be referenced by a project that targets .NETFramework, Version=v4.6

I tried so many things but it still doesn't work. Any help is appreciated.

1
Are you using .NET Core or .NET Platform 4.x? - taj
I'm using .NET core. I just edited the .csproj file and changed the framework manually to net45 and seems it's working now! - Ameneh Sh

1 Answers

4
votes

Ameneh Sh.

The IBM.WatsonDeveloperCloud.* are in version 1.3 of the .net standard library, which only supports version 4.6 of the .Net Framework

I would still like to understand your scenario. I understand that you have two projects one .Net Framework 4.5 and another .Net Core. But the .Net Core Project is an App or a Classlibrary? Please let me know more details about your scenario.