[BUG] Still doesn't look like a Refit interface. Make sure it has at least one method with a Refit HTTP method attribute and Refit is installed in the project
See original GitHub issueversion:Refit.6.0.15.nupkg netframework:4.8
using System.Threading.Tasks;
using Refit;
namespace SnapOffline
{
public interface IWtApi
{
[Post("/xx/showreport.asp")]
Task<ResponseShowReport> ShowReport([Body(BodySerializationMethod.UrlEncoded)]
RequestShowReport req);
}
}
System.InvalidOperationException: IWtApi doesn't look like a Refit interface. Make sure it has at least one method with a Refit HTTP method attribute and Refit is installed in the project.
在 Refit.RestService.GetGeneratedType(Type refitInterfaceType) 位置 /_/Refit/RestService.cs:行号 100
在 Refit.RestService.For(Type refitInterfaceType, HttpClient client, IRequestBuilder builder) 位置 /_/Refit/RestService.cs:行号 36
在 Refit.RestService.For[T](HttpClient client, IRequestBuilder`1 builder) 位置 /_/Refit/RestService.cs:行号 13
在 Refit.RestService.For[T](HttpClient client, RefitSettings settings) 位置 /_/Refit/RestService.cs:行号 20
在 Refit.RestService.For[T](HttpClient client) 位置 /_/Refit/RestService.cs:行号 23
在 SnapOffline.Program.Main(String[] args) 位置 E:\work\med\MedSnap\weitong\Snap\SnapOffline\Program.cs:行号 23
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (6 by maintainers)
Top Results From Across the Web
doesn't look like a Refit interface. Make sure it has at least ...
I am trying to do a simple demo of refit with a live endpoint but below is what I have and I get...
Read more >IMyInterface doesn't look like a Refit interface in builds on ...
error observed: ystem.InvalidOperationException: IMyInterface doesn't look like a Refit interface in builds on Azure DevOps; Reference : System.
Read more >Path to nuget cache? - Build/Test Issues
System.InvalidOperationException: IExampleApi doesn't look like a Refit interface. Make sure it has at least one method with a Refit HTTP method attribute and ......
Read more >NullReferenceException when testing API implemented by ...
This results in a InvalidOperationException: ITest doesn't look like a Refit interface. Make sure it has at least one method with a Refit...
Read more >[BUG] Error during runtime "<interfacename> doesn't look ...
[BUG] Error during runtime " doesn't look like a Refit interface. Make sure it has at least one method with a Refit HTTP...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
.Net Framework winforms version .Net Framework 4.6.1 “Developer Command Prompt” path is C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools
.csproj value is
.NET 5.0 Winforms version .NET(5) it is success , don’t throw exception.
.csproj value is
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.