- I have Sitecore (9.0.2) and xConnect running on my machine
- I have another application which is a .net core application
I have a form in the .net core application. When user fills the form I want to send the data to xConnect
When I try to add a nuget reference from the .net core project to Sitecore libraries, I see the error:
Package Sitecore.XConnect.Client.NoReferences 9.0.180604 is not compatible with netcoreapp2.0 (.NETCoreApp,Version=v2.0). Package Sitecore.XConnect.Client.NoReferences 9.0.180604 supports: net462 (.NETFramework,Version=v4.6.2)
So I created another Class Library (.net 4.6.2) project in the solution, added references there and referenced the project from the .net core project. Everything compiles, but when I execute the code, I'm getting error:
FileNotFoundException: Could not load file or assembly 'Sitecore.XConnect.Client, Version=220.127.116.11, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
If I reference that class library from a simple mvc website and execute the code, it works.
Does it mean that it's not possible to send data to xConnect from a .net core application without some middleman?