jcurl / RJCP.DLL.SerialPortStream

SerialPortStream is an independent implementation of System.IO.Ports.SerialPort and SerialStream for better reliability and maintainability. Default branch is 2.x and now has support for Mono with help of a C library.
Microsoft Public License
614 stars 196 forks source link

Incompatible with VS 2022 #140

Closed arthurmelow closed 1 year ago

arthurmelow commented 1 year ago

Hii,

I need to work with visual studio 2022 with .net framework 4.8, windows 11 and i must use the SerialPortStream dll. I can't compile the code because there are some errors about the compatibility with:

Could you indicate if is this dll compatible with my setup ?? And, In case of yes, how can i do to compile and use this dll ??

Thanks and regards,

jcurl commented 1 year ago

Hi, as per MS docs, you need also Visual Studio 2019 to provide .NET 4.0 SDK and other target SDKs. The project still supports older OSes.

I compile everything fine on Win10 and Win11 from the command line with VS2022.

arthurmelow commented 1 year ago

And, how do you resolve the problem with LogSource ? I think that isn't compatible with netstandard1.5 and 2.0 at the same time

jcurl commented 1 year ago

Hello, if you check out the branch v2.x, then you won't have this dependency, and can compile.

If you wish to compile the branch master, which is a refactoring of 2.x, you will need to check out the RJCP.base repository, initialise all sub modules. Then you can enter the framework folder and do a "dot net build" from there. It references the LogSource which is a different repository of mine.

jcurl commented 1 year ago

Hi closing as there is no feedback. If you have any questions, or need more details, please write back.