.NET

.NET

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

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

1016 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

Contributor
Dave_B
Posts: 24
Registered: ‎03-25-2009
Message 2 of 2 (902 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.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.