Solved

Problem to generate file

Posted on 2015-02-10
8
86 Views
Last Modified: 2015-02-11
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
Comment
Question by:HuaMinChen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 33

Assisted Solution

by:it_saige
it_saige earned 500 total points
ID: 40600750
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
 
LVL 10

Author Comment

by:HuaMinChen
ID: 40602222
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
 
LVL 33

Expert Comment

by:it_saige
ID: 40603325
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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 10

Author Comment

by:HuaMinChen
ID: 40604791
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
 
LVL 33

Expert Comment

by:it_saige
ID: 40604849
The option is disabled because you are not building a library.

-saige-
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 40604853
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
 
LVL 33

Expert Comment

by:it_saige
ID: 40604873
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
 
LVL 33

Accepted Solution

by:
it_saige earned 500 total points
ID: 40604883
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question