O
Ole Morten
Guest
So I did some simple test. Opened VS 2019, and created a new solution
Added three projects
1. TestExe, using .NET Framework 4.6.1
2. StdDll, using .NetStandard 2.0
3. CoreDll, using .NETCore 2.0
All compiles well...
Adding a reference from StdDll to TestExe works ok. I can do call from TestExe into StdDll
Adding Reference from CoreDll to TestExe does not work. Get compile error
Adding Reference from CoreDll to StdDll does not work. Get compile error
The compile error is: Project CoreDLL is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project CoreDLL supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)
So, where is the problem here. I was in the impression that I could use .NETStandard as a layer between .NETFramework and .NETCore
Reason I have to get this to work is because we have an existing solution already written in .NETFramework and I nead to use a WEB service where the client DLL is written with .NETCore 2.1
Regards
Ole
------------------------------------------- Ole Morten Heien HD Software / Advisor AS -------------------------------------------
Continue reading...
Added three projects
1. TestExe, using .NET Framework 4.6.1
2. StdDll, using .NetStandard 2.0
3. CoreDll, using .NETCore 2.0
All compiles well...
Adding a reference from StdDll to TestExe works ok. I can do call from TestExe into StdDll
Adding Reference from CoreDll to TestExe does not work. Get compile error
Adding Reference from CoreDll to StdDll does not work. Get compile error
The compile error is: Project CoreDLL is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Project CoreDLL supports: netcoreapp2.0 (.NETCoreApp,Version=v2.0)
So, where is the problem here. I was in the impression that I could use .NETStandard as a layer between .NETFramework and .NETCore
Reason I have to get this to work is because we have an existing solution already written in .NETFramework and I nead to use a WEB service where the client DLL is written with .NETCore 2.1
Regards
Ole
------------------------------------------- Ole Morten Heien HD Software / Advisor AS -------------------------------------------
Continue reading...