.NET

.NET

Reply
*Brian Winterscheidt
Message 11 of 17 (309 Views)

Re: VB.NET: "A project with an Output Type of Class Library cannot be started directly"

06-05-2006 08:24 AM in reply to: *Corey A. Layton
Corey A. Layton wrote:
> CArps wrote:
>
>>I have edited the file and added the three nodes to the xml.
>
>
> thank you so much, Chris!
>
> I'll try and run the debig now...
>
> I'll report back here either way...

and *where* is this file stored? I can't find it on my system?

--
Brian Winterscheidt
LWPB Architecture
Oklahoma City, Oklahoma
*Paul Richardson
Message 12 of 17 (309 Views)

Re: VB.NET: "A project with an Output Type of Class Library cannot be started directly"

06-05-2006 08:27 AM in reply to: *Corey A. Layton
The file is not created by the Express editions.
Either use the file Chris posted, write your
own or edit and use one the user files in
the Labs.

"Brian Winterscheidt" wrote in message
news:5195766@discussion.autodesk.com...
Corey A. Layton wrote:
> CArps wrote:
>
>>I have edited the file and added the three nodes to the xml.
>
>
> thank you so much, Chris!
>
> I'll try and run the debig now...
>
> I'll report back here either way...

and *where* is this file stored? I can't find it on my system?

--
Brian Winterscheidt
LWPB Architecture
Oklahoma City, Oklahoma
*Corey A. Layton
Message 13 of 17 (309 Views)

Re: VB.NET: "A project with an Output Type of Class Library cannot be started directly"

06-05-2006 08:28 AM in reply to: *Corey A. Layton
Brian Winterscheidt wrote:
> and *where* is this file stored? I can't find it on my system?

It's not created by default, it seems.

goto Project Properties,
and add a path to the 'working directory',
(debug tab)
and save the project.

Then the xml should be there....
*Corey A. Layton
Message 14 of 17 (309 Views)

Re: VB.NET: "A project with an Output Type of Class Library cannot be started directly"

06-05-2006 09:06 AM in reply to: *Corey A. Layton
Corey A. Layton wrote:
> I'll report back here either way...

works great!

thanks again...

one more question:
does the debugger *have* to start its own session of acad,
or can you debug in a current session?
Distinguished Contributor
ChrisArps
Posts: 311
Registered: ‎07-29-2004
Message 15 of 17 (309 Views)

Re: VB.NET: "A project with an Output Type of Class Library cannot be started directly"

06-05-2006 11:26 AM in reply to: *Corey A. Layton
I am always happy to put one more nail in that VBA coffin.
Maybe it will also help Bill with some of that that wealth he is complaining about ;^)

Since there is no "attach to process" in the UI and I don't think that info is written into a solution file, you will have to startup acad.exe.

You might be able to get the express debugger to attach to a running process by throwing an exception with debug.assert.

Chris Arps
*Paul Richardson
Message 16 of 17 (309 Views)

Re: VB.NET: "A project with an Output Type of Class Library cannot be started directly"

06-05-2006 11:47 AM in reply to: *Corey A. Layton
since we need to shut down AutoCAD to unload
the assembly, do you really need to attach to a
running process?

wrote in message news:5196100@discussion.autodesk.com...
I am always happy to put one more nail in that VBA coffin.
Maybe it will also help Bill with some of that that wealth he is complaining
about ;^)

Since there is no "attach to process" in the UI and I don't think that info
is written into a solution file, you will have to startup acad.exe.

You might be able to get the express debugger to attach to a running process
by throwing an exception with debug.assert.

Chris Arps
Distinguished Contributor
ChrisArps
Posts: 311
Registered: ‎07-29-2004
Message 17 of 17 (309 Views)

Re: VB.NET: "A project with an Output Type of Class Library cannot be started directly"

06-05-2006 02:25 PM in reply to: *Corey A. Layton
I have rarely used attaching to process. I typically change code and hit f5.

At least in vb.net/C# 2005 you can edit and continue. That should eliminate a lot of restarting, especially when trying to figure out the api by trial and error.

Chris Arps
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.