Click here to Skip to main content
12,761,216 members (30,611 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# .NET Visual-Studio VS2010 .NET4 , +

I am using $(ToolPath)tlbimp.exe in the pre-build event for VC# 4.0 project.
I get this build error -
"D:\Microsoft Visual Studio 10.0\Common7\IDE\tlbimp.exe"' is not recognized as an internal or external command, operable program or batch file.
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(902,9): error MSB3073: The command ....." exited with code 9009.

I found tlbimp.exe under C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin directory
It looks like $(ToolPath) property is pointing to wrong path.
Running vcvars32 or vsvars32.bat did not help.
What is the correct way to set it?

Thanks in advance!
Posted 19-Sep-12 12:25pm
Updated 19-Sep-12 12:32pm
Wes Aday 19-Sep-12 17:50pm
Try $(WindowsSdkDir)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 19 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100