Skip to content

JsonProvider error when type is consumed from another project #1031

@huwman

Description

@huwman

JsonProvider error when type is consumed from another project.

When consuming a module in 'Library1' which has a JsonProvider type declared within it from 'Library2', a is shown with the error: "The type provider 'ProviderImplementation.JsonProvider' reported an error: Cannot read sample JSON from 'GetUserResponse.json': Could not find a part of the path 'C:\Source\JsonProviderTest\Library2\GetUserResponse.json'.

Notice that the 'GetUserResponse.json' file is being used and located within Library1 yet the error message has substituted 'Library2' in the path.

See the linked VS2015 project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions