You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps this is already fixed but I wasn't able to google a solution and didn't find any issue matching my query. If this is a duplicate just close ASAP.
Anyway I have C# API that utilizes required members (from .NET7 IIRC). I can't get VB (running on .NET7) to consume the C# API successfully.
I am not concerned about being able to create APIs in VB that uses required members but rather consuming future C# APIs as this feature gets more and more used.
ImportsCsLibModuleProgramSubMain(argsAsString())' Refuses to compile with: ' error BC37319: 'Public Overloads Sub New()' requires compiler feature 'RequiredMembers', which is not supported by this version of the Visual Basic compiler.DimxAsNewXX()With{.X=1,.Y="123"}Console.WriteLine("Hello World!")EndSubEndModule
The error message implies that there might be a newer version of the compiler that I could use but I wasn't able to find that the switch. If there is but I missed my apologies for opening a duplicate ticket.
The text was updated successfully, but these errors were encountered:
Hi.
Perhaps this is already fixed but I wasn't able to google a solution and didn't find any issue matching my query. If this is a duplicate just close ASAP.
Anyway I have C# API that utilizes required members (from .NET7 IIRC). I can't get VB (running on .NET7) to consume the C# API successfully.
I am not concerned about being able to create APIs in VB that uses required members but rather consuming future C# APIs as this feature gets more and more used.
This is my example program. First the C# api
Then I try to consume this API in VB
The error message implies that there might be a newer version of the compiler that I could use but I wasn't able to find that the switch. If there is but I missed my apologies for opening a duplicate ticket.
The text was updated successfully, but these errors were encountered: