Bug 17834 - New "Xamarin.Mac Library Project" template has OutputType "Exe" rather than "Library"
Summary: New "Xamarin.Mac Library Project" template has OutputType "Exe" rather than "...
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Mac Add-in ()
Version: 4.2.x
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2014-02-17 18:36 UTC by Brendan Zagaeski (Xamarin Team, assistant)
Modified: 2014-03-26 05:43 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Brendan Zagaeski (Xamarin Team, assistant) 2014-02-17 18:36:47 UTC
## Steps to reproduce

1. Create a new "Xamarin.Mac Library Project".

2. Add an empty class with any name.

3. Attempt to build the project.


## Result

The build fails with an error:
Program `TestLib.exe' does not contain a static `Main' method suitable for an entry point


## Workaround

Open the .csproj file for the Xamarin.Mac Library Project in a text editor, and change:

> <OutputType>Exe</OutputType>

... to:

> <OutputType>Library</OutputType>


## Version information

Xamarin Studio 4.2.3 build 54
Xamarin.Mac 1.6.34
Also tested with: Xamarin.Mac 1.6.27
Comment 1 Jeffrey Stedfast 2014-02-17 21:38:15 UTC
This has already been fixed for 4.2.4
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2014-02-18 11:36:30 UTC
Excellent! Thanks for the info!
Comment 3 Nischal 2014-03-26 05:43:53 UTC
Now Xamarin.Mac Library Project builds successfully after adding an empty class with any name. Screencast: http://screencast.com/t/B1jO0GXB

Environment Info:
Xamarin Studio
Version 4.2.4 (build 266) 
Build Information
Git revision: 57fa6b7639703775ae1d5c46536e42ab424cb177
Xamarin addins: eee141c29724a19529e77b8e743086d95b29f5ba
Xamarin.Mac: 1.8.0.7