Skip to content

Nuget dependency is throwing System.IO.FileNotFoundException #419

@rianjs

Description

@rianjs

I'm not sure if this is a libphonenumber issue, or an AWS Lambda test tool issue. It has the feel of an issue with the test tool.

Repro steps:

  1. Install the AWS Lambda test tool package: https://aws.amazon.com/blogs/developer/debugging-net-core-aws-lambda-functions-using-the-aws-net-mock-lambda-test-tool/
  2. Create an empty Serverless Lambda app
  3. Add the libphonenumber package as a dependency
  4. In the Function constructor, do var foo = PhoneNumberUtil.GetInstance();
  5. Run the debugger
  6. Send any request

The constructor doesn't run at all.

System.IO.FileNotFoundException: Could not load file or assembly 'PhoneNumbers, Version=8.10.6.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
   at Mercury.Function..ctor()

The smallest repro case I could come up with attached here.
AWSServerlessApp.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingThis issue is being investigated and/or work is in progress to resolve the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions