Error adding reference "Specified parameter value '{SomeFSharpProjectPath}' is not valid: Parameter name: filePath"
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 576
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 2
Description
**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:

> 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".

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

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

**Expected behavior**
I would expect to see the next screen in the wizard.
**Screenshots**
See above.
**Additional context**
See the attached solution.
[Scratch.zip](https://github.com/dotnet/wcf/files/9892297/Scratch.zip)
Contributor guide
Assessment
This issue has not been assessed yet.