playing with dotnet core 61 - libraries3 calling a vb library in a C# project
to build all projects listed within a solution file
dotnet build mySolutionName.sln
to add libraries or projects to an existing project
dotnet add myProject.csproj references /path/to/my/library.vbproj
Sample code of simple visual basic function within class:
Public Class MyClass
Public Function MyFunction(ByVal x As Double) As Double
Return x*3
End Function
End Class
------------------ Useful Links ------------------------------------
dotnet solutions
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-sln
dotnet new
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new
dotnet classlib templates
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-new-sdk-templates#classlib
create library and add to project reference
https://docs.microsoft.com/en-us/dotnet/core/tutorials/library-with-visual-studio-code?pivots=dotnet-6-0
dotnet add reference
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-add-reference
model validation
https://docs.microsoft.com/en-us/aspnet/core/mvc/models/validation?view=aspnetcore-6.0
namespaces and root namespaces
https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/program-structure/namespaces
visual basic functions
https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/function-statement
visual basic classes
https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/class-statement
call visual basic function in C#
https://dzone.com/articles/call-visual-basic-function-in-c-page
------------------ Video Sections --------------------------------
Chapters:
0:00 Introduction
1:14 creating a new mathVbLib to implement a math interface
2:42 which namespace to use? We start with root namespace
5:16 using visual basic classes in C#
6:42 Functions or methods within visual basic classes
10:10 How to call visual basic functions that you have made
11:40 adding visual basic library as project reference
14:25 using dependency injection to switch from C# library to vb library
14:53 testing the visual basic library
16:20 conclusion
---------------------[Playlists and Relevant Github Repositories]----------------------------------------------
Fluid Mechanics and Git Repos:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSmdAXc6J0XOSQ1b27qsMGt
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube
Petroleum Downstream Crash Course Playlist:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQ13CnhacUqEVk-tZlU4ISE
OpenFOAM for Windows 10 Beginner Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YRhBU4IqSaToQ8_X543YQsZ
https://github.com/theodoreOnzGit/laminar_BL_OpenFOAM
OpenFOAM Intermediate Playlist and some Git Repos
https://www.youtube.com/playlist?list=PLhPfNw4V4_YSpWX6mSOlwWEOKVa6i_iuE
https://github.com/theodoreOnzGit/thin_pipeflow_snappyHexMesh
OpenFOAM Heat Transfer Playlist and GitHub Repo
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR2Qa3Q9-AzNSF2J9Dc4_qT
https://github.com/theodoreOnzGit/OpenFoam_heatTrf_YouTube
Radiation Heat Transfer Learning Journal and Git Repos:
https://www.youtube.com/watch?v=uUzh9kh-WTo&list=PLhPfNw4V4_YRUUVUydQp-n6U-7uu1kJof
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube
Convection Boundary Layer and git Repos:
https://www.youtube.com/playlist?list=PLhPfNw4V4_YR9pRBpp101Mkuds49vjQ63
https://github.com/theodoreOnzGit/heatTransferTheory_YouTube
Turbulence Modelling Playlist
https://www.youtube.com/watch?v=F_Rxv9uMM3g&list=PLhPfNw4V4_YSnbYkJIBQ1kRN06Mmxe2Be
https://github.com/theodoreOnzGit/turbulenceModelling
LabView Frequency Analysis and Fun (playlist and git repo)
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQYE7XqTisMBkpm7gqNS_nl
https://github.com/theodoreOnzGit/Ted_labview_YouTube
Control Systems and Frequency Response
https://www.youtube.com/watch?v=qHY6y7JmB2U&list=PLhPfNw4V4_YRUuWnrtClovPKxU_gJOXH-
https://github.com/theodoreOnzGit/matlabFrequencyResponse.git
OpenFOAM C++
https://github.com/theodoreOnzGit/C-_YouTube_OpenFoam
https://www.youtube.com/playlist?list=PLhPfNw4V4_YT9OgqS7ZPlot_Ucxzc6pQJ
OpenFOAM Bash
https://github.com/theodoreOnzGit/Bash_OpenFOAM_YouTube
https://www.youtube.com/playlist?list=PLhPfNw4V4_YT5zjBhfj5Hj4r4D5eXilcU
Basic Samba
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuWJLufBUpNplitReZX0fB
https://github.com/theodoreOnzGit/sambaVideos
Manjaro Tips and Tricks
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQuyXBfJxAvzHJTl0UiWx3h
lammps and Discrete Element Modelling (DEM)
https://www.youtube.com/playlist?list=PLhPfNw4V4_YTdRlnLiu2OUXeTf5ZNVQ9E
playing with dotnet core
https://www.youtube.com/playlist?list=PLhPfNw4V4_YQSTR8sqz0aRVzWlQBq3QUw
dotnet core github repo
https://github.com/theodoreOnzGit/dotnetCoreYoutube