Open EricApostal opened 1 year ago
Hello @EricApostal
Yes you right, I was able to reproduce it on my computer, the package works only with .NET (Core) and not with .NET Framework unfortunately 😢
Sorry, I haven't been able to test it on .NET Framework.
Added note in the documentation:
Ah okay, thanks for getting back so fast! I'll find a way to use .NET core.
Given the relationship between .NET (Core) and .NET Framework, there's about a million incompatibilities. So I'm pretty sure the only way to truly support .NET Framework is by creating a separate solution/project with that target. However given that it is basically all but deprecated at this point I strongly encourage not adding backwards compatibility.
In fact... as I wrote this I had to fact check, .NET Framework is officially no longer supported as of April 26, 2022. https://devblogs.microsoft.com/dotnet/net-framework-4-5-2-4-6-4-6-1-will-reach-end-of-support-on-april-26-2022/
Probably safe to close this unless you're dead set on adding support for a deprecated framework.
:information_source: Info
Version:
0.0.1
:speech_balloon: Description
Whenever I attempt to run CSharpRPC on .NET Framework 4.8, the process opens for around 2 seconds or so, then will infinitely yield upon waiting for new requests to respond. Furthermore, each time you run
csharpRpc = await CsharpRpc(modulePath).start();
within the Flutter app, it creates a new process under the Flutter program, of which does not close when you stop the app from running (must be closed in Task Manager).I've tested this in Flutter Debug, although not Release. I've also only tested this within .NET Framework 4.8 / 4.7.2, though I'd be happy to test on other versions if necessary.
:scroll: Pubspec.yaml
CSharp Program
Program.cs
Server.cs
csproj file
Flutter Program
only the first doInjectLoop() stuff is important here
Let me know if I can provide anything else!