kylewest / DotNetShipping

UPS, FedEx, USPS shipping rate calculators for .NET
MIT License
78 stars 66 forks source link

"rates" is ambiguous? #14

Closed dotNetNoob closed 10 years ago

dotNetNoob commented 10 years ago

Hi: Sorry for the noob question, but I'm trying to follow your sample and I'm getting a compile error in VS2012:

Error 1 'Rates' is ambiguous because multiple kinds of members with this name exist in class 'DotNetShipping.Shipment'.

When I let intellisense pull up the methods for "shipment", "rates" is not in there? Here's a screencap of my code:

untitled-1

kylewest commented 10 years ago

I fixed this ... get the latest and change rates to Rates.

Kyle

dotNetNoob commented 10 years ago

Thanks Kyle!

rlamunoz commented 8 years ago

It happens to me with the new version and using FedEx

maxverro commented 8 years ago

I had this problem in one of my MVC project. My EF Entities reflected the table name Shipment and Rate from my database. This came in conflict with the class name from the DotNetShipping project and just like you it gave me the ambiguous error. In C# you can easily fix in 2 way: 1) Adding the full reference path namespace.class when calling the class. ie: DotNetShipping.Package 2) In your namespace declaration you can add : using DotNetShippingPackage = DotNetShipping.Package.

kylewest commented 8 years ago

Thanks @MaxVerro!