在 vb.net 网站中设置 c# web api
Setup c# web api in vb.net Website
我有一个使用 ASP.NET web forms
在 VB.Net
中构建的网站,现在我想向其添加一个 Web Api
并使用 c#
,可以吗?如果是怎么办。
我确实试过了,收到了消息
"No type was found that matches the controller named 'get' "
,所以我怀疑在 Web Api's
上可能无法混合语言,但想确认一下。
也许您需要在另一个项目中编写您的 csharp 方法,然后在您的 vb.net 项目中使用它。
我有一个使用 ASP.NET web forms
在 VB.Net
中构建的网站,现在我想向其添加一个 Web Api
并使用 c#
,可以吗?如果是怎么办。
我确实试过了,收到了消息
"No type was found that matches the controller named 'get' "
,所以我怀疑在 Web Api's
上可能无法混合语言,但想确认一下。
也许您需要在另一个项目中编写您的 csharp 方法,然后在您的 vb.net 项目中使用它。