refit icon indicating copy to clipboard operation
refit copied to clipboard

using Refit can't compile success in VS 17.3.0

Open zwcm2007 opened this issue 3 years ago • 1 comments

I have a WPF Desktop application that framework targets net6.0-windows . When my IDE VS2022 upgrading from 17. 2.1 to 17.3.0 and using Refit 6.3.2 , vs compiles errors as belows:

56E997DD-89C5-4363-BF0B-3B7B2F45A408

There is nothing except a interface file named "IAccountApi", so how to resolve this problem?

zwcm2007 avatar Aug 10 '22 08:08 zwcm2007

Works for me in WPF, please bear in mind that current .NET SDK (6.0.7/6.0.302 and newer) has a regression that invokes source generators multiple times^1. Add this^2 fix to your .csproj file and it will resolve it self, or install .NET SDK 6.0.301 and restrict SDK to 6.0.301 through global.json.

GitHub
Fixes #6792 Description Fixes build of project using source generators coming from NuGet packages. Added a new target for de-duplicating the list of analyzers. Added a target to de-duplicate the li...

AliveDevil avatar Aug 14 '22 17:08 AliveDevil

thank you for answer, this problem is resolved in dotnet-sdk-6.0.401 environment!

zwcm2007 avatar Sep 23 '22 07:09 zwcm2007

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Apr 13 '23 00:04 github-actions[bot]