dotnet / orleans

Cloud Native application framework for .NET
https://docs.microsoft.com/dotnet/orleans
MIT License
10.07k stars 2.03k forks source link

how support .net core 2.0 ? #3477

Closed chenzuo closed 7 years ago

chenzuo commented 7 years ago

Warning NU1701 has used the ".NET Framework, Version = v4.6.1" instead of the project target framework ".NETCoreApp, Version = v2.0" to restore the package "Microsoft.Orleans.Core 1.5.1". This package may not be fully compatible with the project. XUnitTestProject1 D: \ Work \ 2017 \ Complany \ GameCore \ XUnitTestProject1 \ XUnitTestProject1.csproj 1

sergeybykov commented 7 years ago

Are you trying to use 1.5.1 in a .NET Core project? That won't work. You can try the latest Tech Preview release instead - https://blogs.msdn.microsoft.com/orleans/2017/09/13/announcing-orleans-2-0-tech-preview-3/.

chenzuo commented 7 years ago

ths!

获取 Outlook for iOShttps://aka.ms/o0ukef


From: Sergey Bykov notifications@github.com Sent: Monday, October 2, 2017 11:50:00 PM To: dotnet/orleans Cc: chenzuo; Author Subject: Re: [dotnet/orleans] how support .net core 2.0 ? (#3477)

Are you trying to use 1.5.1 in a .NET Core project? That won't work. You can try the latest Tech Preview release instead - https://blogs.msdn.microsoft.com/orleans/2017/09/13/announcing-orleans-2-0-tech-preview-3/.

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/dotnet/orleans/issues/3477#issuecomment-333576576, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKP0U5hoyVon-5lbgf_C3oSA3yeqo3_qks5soQYogaJpZM4Pp24d.

zahidiqb commented 6 years ago

@sergeybykov

Using the pre-release version "2.0.0-preview4-20171025" I get the following exception:

System.InvalidOperationException occurred HResult=0x80131509 Message=Cannot find generated GrainReference class for interface 'GrainInterfaces.IInteractionGrain' Source= StackTrace: at Orleans.Runtime.TypeMetadataCache.GetGrainReferenceType(Type interfaceType) at Orleans.GrainFactory.MakeCaster(Type interfaceType) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at Orleans.GrainFactory.Cast(IAddressable grain, Type interfaceType) at Orleans.GrainFactory.Cast[TGrainInterface](IAddressable grain) at Orleans.GrainFactory.GetGrain[TGrainInterface](Guid primaryKey, String grainClassNamePrefix) at Orleans.ClusterClient.GetGrain[TGrainInterface](Guid primaryKey, String grainClassNamePrefix) at ClinetDotnetCore.Program.Main(String[] args) in ...

I am running client and server after publishing and the both dlls containing interfaces and implementations are located in the same folder (bin\Release\PublishOutput) but still I get the error. Maybe I'm missing any configuration ??