Reputation: 397
I would like to know how to combine a VB.Net Windows application and C# ASP.NET Core web app together. I created a web app using C# because VB.net is not supported. What is the best method to do it?
Create DLL file for asp.net core and import to VB.Net is possible or not? if it is possible how to create dll file in asp.net core?
Web application and windows application are separate purpose applications. Not the same applications. The main application is a windows application. it some values create and store in SQL Server then those values represent in web application using SQL Server.
Upvotes: 1
Views: 240
Reputation: 1675
I can see two ways:
.NET Standard
library with all DB operations and consume this project by both VB.NET Windows application and ASP.NET Core Web application. Web API
application which will expose all DB operations as endpoints and again consume it by both apps.Second option requires more work to do, but has better logic separation.
Upvotes: 1