• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 95
  • Last Modified:

Problem to generate file

Hi,
I want to adjust this option - "Register for COM interop", to Visual studio project, but I don't know where to adjust the option below
https://dl.dropboxusercontent.com/u/40211031/t973.png

to the project?

I now cannot generate TLB file to this project
https://dl.dropboxusercontent.com/u/40211031/CSDemo%20150207.zip
0
HuaMinChen
Asked:
HuaMinChen
  • 5
  • 3
2 Solutions
 
it_saigeDeveloperCommented:
You have opened the solution properties -Capture.JPGNot the project properties -Capture.JPGWith the project properties open, select the 'Application' tab and press the 'Assembly Information...' button.Capture.JPG-saige-
0
 
HuaMinChenBusiness AnalystAuthor Commented:
Thanks.
I enable the Checkbox

Application\Assembly Information\Mark assembly COM-visible

and then re-generate the solution/project, but I still get no TLB file generated.
0
 
it_saigeDeveloperCommented:
Make sure that your project is a 'Library' type:Capture.JPGThen on the 'Compile' page, you will see an option for 'Register for COM interop':Capture.JPG-saige-
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
HuaMinChenBusiness AnalystAuthor Commented:
Thanks. I don't know why the option is disabled (see the attached). Can you please refer to the project (attached in above), if possible?
t982.png
0
 
it_saigeDeveloperCommented:
The option is disabled because you are not building a library.

-saige-
0
 
HuaMinChenBusiness AnalystAuthor Commented:
Previously, when re-building the solution, .TLB file would be generated. I don't know why now it would not. What is the reason to this? Thanks.
0
 
it_saigeDeveloperCommented:
HuaMin,

I downloaded your project and unzipped it.  I cannot replicate your issue.  All of the required options are selected for the CSDemo project and it does build the tlb file.Capture.JPG
Are you perhaps looking in the wrong folder?

-saige-
0
 
it_saigeDeveloperCommented:
I think I have identified your problem.  Did you recently change the configuration from 'Any CPU' to 'x86'?Capture.JPGIf so, the updated files are located in the x86\Debug folder -Capture.JPG
Proof of concept (results after changing the configuration to Any CPU and rebuilding):Capture.JPGCapture.JPG-saige-
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now