Skip to content

Error adding reference "Specified parameter value '{SomeFSharpProjectPath}' is not valid: Parameter name: filePath" #4947

Open
@ken-swyfft

Description

@ken-swyfft

Describe the bug
Using VS2022 17.6.2, if you try to add a service reference to any C# library project that references an F# library project, you will get the following error message:

image

The Connected Services component 'Microsoft WCF Web Service Reference Provider' failed: The specified parameter value '..\Swyfft.Services.AddressProcessor\Swyfft.Services.AddressProcessor.fsproj' is not valid. Parameter name: 'filePath'.

To Reproduce
Steps to reproduce the behavior:

  1. Either open the attached .zip file, or alternatively, create a .NET 6.0 solution with a C# library project referencing an F# library project.

  2. In Visual Studio 2022, right-click on the C# library project, choose "Add", and then "Service Reference".
    image

  3. In the "Add Service Reference" modal, choose "WCF Web Service" and click "Next".
    image

  4. Instead of the next screen in the wizard, I get this error message:
    image

Expected behavior
I would expect to see the next screen in the wizard.

Screenshots
See above.

Additional context
See the attached solution.
Scratch.zip

Metadata

Metadata

Labels

toolingAn issues related to any tool shipped from this repo.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions