What is the path for tblexp in a .NET core project?

1.1k views Asked by At

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="&quot;$(TargetFrameworkSDKToolsDirectory)\tlbexp&quot; /verbose &quot;$(TargetPath)&quot;" />
    </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?

1

There are 1 answers

0
MarkL On

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

Related Questions in F#