troubleshooting Question

Trying to use libphonenumber-csharp NuGet package

Avatar of deleyd
deleydFlag for United States of America asked on
.NET ProgrammingC#Visual Basic.NET
7 Comments1 Solution2904 ViewsLast Modified:
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"?>
<packages>
  <package id="libphonenumber-csharp" version="4.10.0.62" targetFramework="net40-Client" />
</packages>
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.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros