Anybody care to comment as to why? –Justin Niessner Sep 6 '12 at 14:03 1 Same happened for me, I guess someone is trolling here:) –Bartosz Sep 6 '12 at why does this error keep popping out? I have searched on several places how to solve this problem but could not get a proper procedure to do so. Not the answer you're looking for? http://tawish.org/type-of/type-of-actual-parameter-cannot-be-ancestor.php
A Project With An Output Type Of Class Library Cannot Be Started Directly Visual Studio
Browse other questions tagged c# or ask your own question. share|improve this answer answered Jul 29 '10 at 13:47 James Curran 72.2k22134219 Hey James, Okay I have added a new project in the same solution. How to handle swear words in quote / transcription? share|improve this answer answered Sep 11 '15 at 7:30 Mahesh K Naik 1 add a comment| up vote 0 down vote If you convert the WPF application to Class library for
Mak's answer worked for me.
Browse other questions tagged visual-c#-express-2010 or ask your own question.
Do you have any other projects in your solution? –JᴀʏMᴇᴇ Sep 6 '12 at 14:03 1 Well I think you should post this error... –RvdK Sep 6 '12 at 14:03
If there is more than one project in the solution, right click on the one that should be run when you compile and choose Set as startup project share|improve this answer
Terms of Service Layout: fixed | fluid CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100 Blog Sign in Join ASP.NET Home Get Started Learn Hosting Downloads
asked 4 years ago viewed 44935 times active 9 months ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Linked 7 A project with an Output Type of Class Library
Solution was: Right Click Project in Solution Explorer > Properties > Debug Setting the Start Action to "Start external program" and using the following path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Given the hints solve the puzzle Is it possible to sheathe a katana as a free action?
Class libraries are compiled and then used by other applications for common functionality.
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. Make sure that you've got correct project set as startup one (right click -> set as startup project), and that this one is not of type Class Library. To be able to see your work in the class library work, in an ASP.Net project, you must first add another project to the solution, which IS an asp.net project. A Project With An Output Type Of Class Library Cannot Be Started Directly Unit Test Is adding the ‘tbl’ prefix to table names really a problem?
This was for a vsix project (Creating Snippets). DUe to that, the output is a dll not an executable and so, you cannot start it. Sign in using Search within: Articles Quick Answers Messages Use my saved content filters home articles Chapters and Sections> Search Latest Articles Latest Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update http://stackoverflow.com/questions/32758402/a-project-with-output-type-of-class-library-cannot-be-started-directly more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
Sharepoint 2013: Rest API - does header need to include X-RequestDigest? A Project With An Output Type Of Class Library Cannot Be Started Directly Web Application What do you call the practice of using (overly) complex words specific to a subject? Missing } inserted. \int dx = x + C & Lab colleague uses cracked software. Possibly you've downloaded a Class Library solution only.
A Project With An Output Type Of Class Library Cannot Be Started Directly In Order To Debug
Surely your problem will be solved. The project has come in a Folder, inside this folder there are - .sln file and a folder which has - Source files and .csproj file. A Project With An Output Type Of Class Library Cannot Be Started Directly Visual Studio How do I deal with my current employer not respecting my decision to leave? A Project With An Output Type Of Class Library Cannot Be Started Directly Mvc How can I claim compensation?
Does Intel sell CPUs in ribbons? I installed Visual Studio C# Express and opened the .sln file present in the main folder in the VS C# IDE. Was it legal to rant against trick or treating via loudspeaker during halloween? Now from the Solution Property Pages dialog that appears, select the StartUp Project list option. Add An Executable Project To This Solution Which References The Library Project
ASP.Net Sitemap Creator Reply bendJoe Member 352 Points 465 Posts Re: A project with an output type of class Library cannot be started directly Dec 19, 2007 09:51 AM|bendJoe|LINK Hi I Browse other questions tagged c# visual-studio selenium-webdriver or ask your own question. To rectify: Right click the project in Solution Explorer on the right Click Properties Select the Application tab (should be the top one) Change Output type to Windows Application Save Try When does TNG take place in relation to DS9?
Solution 1 Accept Solution Reject Solution To get this off the unanswered list, this question was answered here[^] Permalink Posted 30-Jul-12 11:16am Wes Aday104.2K Add a Solution Add your solution here Unity A Project With An Output Type Of Class Library Cannot Be Started Directly Not the answer you're looking for? Thanks.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL) Top Experts Last 24hrsThis month OriginalGriff 295 F-ES Sitecore 220 ppolymorphe
current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. Treat my content as plain text, not as HTML Preview 0 … Existing Members Sign in to your account ...or Join us Download, Vote, Comment, Publish. Expand the common Properties. A Project With An Output Type Of Class Library Cannot Be Started Directly Xamarin The error "Class library cannot be started directly" is due to the fact that said .dll's do not have a Main.
It gave me this message. Once your project has a solution with any of the previous mentiones types (or maybe is a third party project and it already has but it isn't configured), just follow these Join them; it only takes a minute: Sign up A project with an output type of class library cannot be started directly (2) up vote 6 down vote favorite 1 A ASP.Net Sitemap Creator Reply crissty82 None 0 Points 1 Post Re: A project with an output type of class Library cannot be started directly Nov 17, 2007 07:35 AM|crissty82|LINK Can someone
You will need to add a second project, which is an executable which references the other project, and calls something in it. Thank you share|improve this answer answered Oct 11 at 16:14 user7002447 1 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google share|improve this answer edited Jun 2 at 6:20 Gandhi 3,8433724 answered Jun 2 at 4:39 ShaneRoode 513 add a comment| Your Answer draft saved draft discarded Sign up or log Steen Sep 6 '12 at 14:02 1 The project you've attempted to debug can't be debugged because it's a class library so there is no point of execution.
Update In response to your comment, these are possibilities to run the class library: Create a console application and reference the class library. In opened tab with properties select Application and there will be ComboBox marked with Output Type label. It is also much easier than the answer that got the green check mark. –JohnH Sep 8 at 14:01 add a comment| up vote 3 down vote .Exe's and .dll's are Polyglot Anagrams Cops' Thread QGIS Print composer scale problems What Could Cause Flash Over / Arcing to Reappear on New Plugs?
Solution 2 Accept Solution Reject Solution You need to set as startup project. Why do some banks have more than one routing number in the US? Rate this: Please Sign up or sign in to vote. Make a console project inside the same solution.
Does Intel sell CPUs in ribbons? Vent kitchen hood vent to roof turbine vent? Professor Lewin: "Which string will break?" / Me: "That one." / Professor Lewin: "Wrong!" How do unlimited vacation days work? Output type of the project you can find and change by the following steps: Right click on project in Solution Explorer -> Properties.