I would like to format a phone number. The program could be run anywhere in the world, so should format phone number for local standards.
I found the C# port of Google's https://code.google.com/p/libphonenumber/
. The C# version is at https://bitbucket.org/pmezard/libphonenumber-csharp
I got NuGet installed, and did:
PM> Install-Package libphonenumber-csharp
It added a "packages.config" file to my project:
<?xml version="1.0" encoding="utf-8"?>
<package id="libphonenumber-csharp" version="188.8.131.52" targetFramework="net40-Client" />
and that's as far as I've got. From here I'm not sure how to access the functionality of the package. The tests in the source code say I should be able to do something like:
PhoneNumberInfo phoneInfo = null;
phoneInfo = LibPhoneNumber.DoFormatAndFindRegion(@"+41 (0)31 388 10 10");
One thing is my project is Visual Basic VB.net and this is a C# package.