Skip to content

Just a template project for vs code to create a .net framework project.

Notifications You must be signed in to change notification settings

CarefulDeveloper/HelloDotNetFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Just a template project for vs code to create a .net framework project.

Set up

  • vs code + extensions(c# dev kit)
  • .net framework 4.8.1
  • .net 8.0+

Commands

cd HelloDotNetFramework
# search package
dotnet.exe package search MySql
# add package
dotnet.exe add package MySql.Data
# build
dotnet.exe build
dotnet.exe build -c Release
# run
dotnet.exe run

Interop with ComObject

  1. generate interop dll file by tlbimp.exe, a .net framework sdk tool.
cd HelloDotNetFramework/Lib
# example path for TlbImp.exe
& "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools\TlbImp.exe" "C:\Windows\System32\wshom.ocx" /out:Interop.IWshRuntimeLibrary.dll
  1. add interop dll to dependencies.

About

Just a template project for vs code to create a .net framework project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages