docs icon indicating copy to clipboard operation
docs copied to clipboard

VS 2022 - Configure Web Service Reference - Reuse types in referenced assemblies not working

Open CashPJ opened this issue 3 years ago • 2 comments

Update reference on WCF generates duplicated classes (with WCF namespaces instead namespaces from referenced project), even "Reuse types in all referenced assemblies" is checked. Reference.cs file should be generated with classes and namespaces from referenced projects. This is only happening in VS 2022, while in VS 2019 update reference works as expected (on same solution).

Do you have any ideas/solutions to fix this issue?

CashPJ avatar Aug 30 '22 07:08 CashPJ

Just taking a wild guess, but perhaps setting this property in your project file would help?

https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#disabletransitiveprojectreferences

gewarren avatar Sep 07 '22 19:09 gewarren

@gewarren, nope, it didn't help.. :/ new types are still generating

CashPJ avatar Sep 14 '22 13:09 CashPJ

@CashPJ Can you create an issue through "Report a problem" in Visual Studio? https://developercommunity.visualstudio.com/VisualStudio/report

gewarren avatar Nov 09 '22 22:11 gewarren

@gewarren I have some issues while sending report (some connection error). Collected files are in attachment. Is it ok like this? collected data.zip

CashPJ avatar Nov 11 '22 07:11 CashPJ