'What is the path for tblexp in a .NET core project?
I'm trying to export a TLB file for a F# DLL. For .NET Framework up to 4.8 the following custom build command works:
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command=""$(TargetFrameworkSDKToolsDirectory)\tlbexp" /verbose "$(TargetPath)"" />
</Target>
I've switched to .NET 6.0 (Visual Studio 2022), and the TargetFrameSDKToolsDirectory is pointing to
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\\
What is the equivalent variable to find the .NET Core 6.0 version of tlbexp?
Solution 1:[1]
You can use the following project as a replacement:
https://github.com/dspace-group/dscom
This works with .net 6.0
Install:dotnet tool install -g dscom
Run:dscom tlbexport myassembly.dll
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | MarkL |
