Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tmds.Libc does dependency does not work with Xamarin.iOS #54

Closed
clSharp opened this issue Apr 10, 2019 · 5 comments
Closed

Tmds.Libc does dependency does not work with Xamarin.iOS #54

clSharp opened this issue Apr 10, 2019 · 5 comments

Comments

@clSharp
Copy link

clSharp commented Apr 10, 2019

The dependency on Tmds.Libc introduced to solve #22 breaks building for Xamarin.iOS. This is because when compiling for Xamarin.iOS all referenced assemblies are needed for the linker even if those assemblies will not be used at runtime. However, Tmds.Libc does not deliver any assemblies for Xamarin.iOS.

Perhaps it's possible to use the needed DllImports directly in net-mdns instead of depending on Tmds.Libc.

@richardschneider
Copy link
Owner

Thanks for taking the time to report an issue; I really appreciate the feedback!

Sadly I'm not supporting Xamarin.iOS. I've only read about Xamarian and have never played with it. If you want support for X-iOS then I need

  • to know to which CI platform (circleCI, travis, appveyor ...) supports it
  • a script to compile and run the unit tests

I'm happy to try to find a work-around if you can provide the CI information.

@clSharp
Copy link
Author

clSharp commented Apr 13, 2019

Thank you for putting all the work into this project!

Unfortunately getting CI running for Xamarin.iOS seems to be quite complicated. If I understand correctly this can only work if you have a MacOS build server.

However making net-mdns work with Xamarin.iOS should not be too complicated. I guess it was working before #22 was fixed. The only problem is that Tmds.Libc does not deliver an assembly for Xamarin.iOS. Although this assembly is not needed at runtime and will never be called the special nature of Xamarin.iOS build process makes it necessary that there is at least an assembly with dummy implementations.

The easiest solution would be to deliver a dummy assembly with Tmds.Libc, but I guess the maintainers of Tmds.Libc won't do that.

For now I will try the version before #22 was fixed or switch to Zeroconf Nuget package.

@queequac
Copy link

I am not an expert for nuget, but it might be sufficent to set the targetFramework for Tmds.Libc in the .nuspec file to "netcoreapp" (since there is no blacklisting capability for "xamarinios")?

@richardschneider
Copy link
Owner

I'm not associated with the Tmds.Libc project. Perhaps, you should raise an issue there.

@queequac
Copy link

I was not talking about the nuspec configuration for Tmds.Lib but for your project. In this case net-mdns would not reference Tmds.Lib on platforms where it is not needed anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants