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
639 stars 199 forks source link

Including SerialPortStream in Visual Studio Installer Setup Project #46

Closed ohjohnsen closed 6 years ago

ohjohnsen commented 6 years ago

I'm trying to make a Setup Project using Visual Studio Installer in VS2015, with a project where I'm using SerialPortStream. But when building the setup project, I get the following warning message:

------ Starting pre-build validation for project 'PoseidonSetup' ------ 
WARNING: Unable to find dependency 'MONO.POSIX' (Signature='0738EB9F132ED756' Version='4.0.0.0') of assembly 'RJCP.SerialPortStream.dll'
WARNING: Unable to find dependency 'MONO.POSIX' (Signature='0738EB9F132ED756' Version='4.0.0.0') of assembly 'RJCP.SerialPortStream.dll'
WARNING: Unable to find dependency 'MONO.POSIX' (Signature='0738EB9F132ED756' Version='4.0.0.0') of assembly 'RJCP.SerialPortStream.dll'
------ Pre-build validation for project 'PoseidonSetup' completed ------

Do you know what this is? I'm not manually adding any dependencies, and RJCP.SerialPortStream.dll gets added automatically.

jcurl commented 6 years ago

The Mono.Posix library is the package for providing posix support under linux. On Windows, you don't need to include this library (it's in the dependencies of NuGet, so the NuGet package is downloaded to satisfy compile time dependencies, even though it's not used at runtime on Windows).

On Linux it isn't needed because the Mono implementation provides this in its GAC.

ohjohnsen commented 6 years ago

Thank you for the info. So what can be done with the warning message? Do I just ignore the warning message when building the setup project, or can I disable it (how?)?

jcurl commented 6 years ago

Sorry - I don't support the VS2015 installer. You should just be able to ignore the warnings, or tell the installer script somehow these files aren't needed.