Hello i want use VS2010 for debugging but VS dont stop where is my breakpoint.
I have following the tuto for the hello word example for autodesk. tutorial.
I have try so many solution but all dont work...
Solved! Go to Solution.
The below proceedure works for me (VS210 32bit, ACAD2010 on WinXP)
Find this line in ProjName.VBPROJ ...<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
And add the following below it.
<StartProgram>C:\Program Files\Autodesk\AutoCAD 2011\acad.exe</StartProgram>
ADD LINES BELOW JUST BEFORE </configuration> IN THE ACAD.EXE.CONFIG FILE FOUND IN THE AUTOCAD INSTALL FOLDER
<supportedRuntime version="v2.0.50727" />
LOAD PROJECT TO BE DEBUGGED
AFTER AUTOCAD HAS STARTED
SELECT DEBUG CODE .DLL OF PROJECT
SET BRAKE POINTS
EXECUTE COMMAND THAT STARTS THE CODE
You must make sure your program is compiled targeting .NET 3.5..
Hope this sorts your problem out.
ind this line in ProjName.VBPROJ ...<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
--> i dont have that line..
I have :
You can find the file 'YourProjectName.vbproj' in the folder you save your projects to for example.....
C:\Documents and Settings\USERNAME\My Documents\Visual Studio 2010\Projects\ProjectName\ProjectName
Just do a search for *.vbproj and your should find the one your looking for.
This post on the "Through the Interface" blog explains the issue and possible 3 solutions in some detail:
Yes i read it before create this post but :
Start the exe that loads your AddIn (acad.exe, revit.exe, etc) and then attach to it from Visual Studio (Debug -> Attach to Process...)
--> I can'f fount it.
Modify the config file of the exe that loads your AddIn (acad.exe.config, revit.exe.config, etc) so that it contains the following just before the </configuration> part:
>--> I have do this but not working (before your add on the proj.)
Add the exe that loads your AddIn as an existing project to your solution and set the debugger version for it to v2.0.
--> i can't fount it ( Add--> Existing project).
I have add new form etc.. but not existing project