I don't know a API, but there are several (free) online converter available, for example:
https://converter.telerik.com/
https://icsharpcode.github.io/CodeConverter/
API to convert vb.net to c#.net
Raut, Chirag
26
Reputation points
Hi,
I am looking for API which will convert vb.net file or project to c#.net file or project.
Developer technologies VB
2,892 questions
Developer technologies C#
11,567 questions
Accepted answer
-
Olaf Helper 47,436 Reputation points
2022-10-26T06:31:54.923+00:00
1 additional answer
Sort by: Most helpful
-
Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
2022-10-27T05:50:27.937+00:00 Hi @Raut, Chirag ,
Microsoft does not provide an API convert project from VB.net to C#.net.
You could turn to some third-party CodeConverter.Best Regards.
Jiachen Li----------
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.