Skip to content

Potentially a bug creating .tlb files for early binding Com Server? #729

Answered by govert
cirrusone asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry the samples and documentation for this are such a mess.

Can you try to make the project like this, with <ExcelAddInTlbCreate>false</ExcelAddInTlbCreate> or removed, and adding the DsCom package reference explicitly (dSPACE.Runtime.InteropServices.BuildTasks)?

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net8.0-windows</TargetFramework>
    <UseWindowsForms>true</UseWindowsForms>
    <ImplicitUsings>disable</ImplicitUsings>
    <Nullable>disable</Nullable>
  </PropertyGroup>

  <PropertyGroup>
    <ExcelAddInTlbExp>C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\x64\TlbExp.exe</ExcelAddInTlbExp>
    <ExcelAddInTlbCreate>false</E…

Replies: 10 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cirrusone
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants