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

Can't no longer build for Xamarin #8

Closed
NinZine opened this issue Feb 2, 2016 · 5 comments
Closed

Can't no longer build for Xamarin #8

NinZine opened this issue Feb 2, 2016 · 5 comments

Comments

@NinZine
Copy link

NinZine commented Feb 2, 2016

Using this library with Mono and Xamarin.iOS/Android, since ddcd8a2 removed the project files with the DNX upgrade. Which in turn makes it not cross-platform.

@VitaliiTsilnyk
Copy link
Owner

You don't need to compile NGettext source to make it work with your project. Just use NuGet to install the NGettext package dependency into your project.

NuGet is cross-platform, it has a CLI tool and can run on Mono too. It can automatically download the package, unpack it, choose the right assembly file for your project and link it into your project references.
As far as I can see, Xamarin Studio supports NuGet.

No need to include NGettext's source code project and compile it every time you build your application.
Starting specified commit, NGettext's source code projects intended to be only for NGettext's development and supports only DNX (which in it's turn is cross-platform too).

@NinZine
Copy link
Author

NinZine commented Feb 8, 2016

Thanks neris for such an elaborate answer. Definitely support NGettext being able via NuGet cross-platform, it's great.

When I tried to add it to a iOS project via NuGet the following error occurred:

Could not install package 'NGettext 0.5.0'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

@VitaliiTsilnyk
Copy link
Owner

OK I've made a PCL version of this library. It should work with Xamarin.ios.
Please try to install it: https://www.nuget.org/packages/NGettext/0.5.1-beta1
This is prerelase package so you may need to enable prerelease package search in your NuGet GUI.

@NinZine
Copy link
Author

NinZine commented Feb 12, 2016

Confirmed working! Used Install-Package Ngettext -Pre with Xamarin Package Console Extension.

@NinZine NinZine closed this as completed Feb 12, 2016
@VitaliiTsilnyk
Copy link
Owner

Great! Thank you for your feedback.

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

2 participants