.NET

.NET

Reply
Contributor
Dave_B
Posts: 24
Registered: ‎03-25-2009
Message 1 of 2 (1,364 Views)
Accepted Solution

VB.NET Visual Studio 2010 Express debug err: project Type.. Class Lib.. cannot

1364 Views, 1 Replies
11-05-2013 07:48 AM

I use VB.NET Visual Studio 2010 Express for VB.NET AutoCAD 2013 programming on Win XP-64, Service Pack 2.  Visual Studio debug has been working fine but suddenly stopped working.  When I try to debug any of my projects, I get the message: "A project with an Output Type of Class Library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project."  I use the standard method for enabling debugging of visual studio Express projects, that is add startup program info to the vbproj.user file.

 

My VB.NET Visual Studio 2008 programs with AutoCAD 2011 still debug properly.

 

I'm wondering has this happened to anyone else?  Maybe a recent Windows update (which updated NET among other things) changed some switch that I can change back?  My Windows Forms applications still debug correctly.

 

my .vbproj.user file:

<?xml version="1.0" encoding="utf-8"?>

<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">

<StartProgram>C:\Program Files\Autodesk\AutoCAD 2013\acad.exe</StartProgram>

<StartAction>Program</StartAction>

<StartArguments>/b "C:\Documents and Settings\username\My Documents\ACAD\VB2010\plottingtools\script.scr"</StartArguments>

</PropertyGroup>

</Project>

 

my vbproj file debug section:

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

<DebugSymbols>true</DebugSymbols>

<DebugType>full</DebugType>

<DefineDebug>true</DefineDebug>

<DefineTrace>true</DefineTrace>

<OutputPath>bin\Debug\</OutputPath>

<DocumentationFile>plottingtools_13.xml</DocumentationFile>

<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022,42353,42354,42355</NoWarn>

<StartAction>Program</StartAction>

<StartProgram>C:\Program Files\Autodesk\AutoCAD 2013\acad.exe</StartProgram>

<StartArguments>/b "C:\Documents and Settings\username\My Documents\ACAD\VB2010\plottingtools\script.scr"</StartArguments>

</PropertyGroup>

 

my script.scr:

netload ..\bin\Debug\plottingtools_13.dll

A follow up: My PC OS & all software has been reinstalled: Windows 7.  The issue is not a problem for me now.

Contributor
Dave_B
Posts: 24
Registered: ‎03-25-2009
Message 2 of 2 (1,250 Views)

Re: VB.NET Visual Studio 2010 Express debug err: project Type.. Class Lib.. cann

12-08-2013 02:22 PM in reply to: Dave_B

A follow up: My PC OS & all software has been reinstalled: Windows 7.  The issue is not a problem for me now.

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.