Bugs item #1893938, was opened at 2008-02-14 20:25 Message generated for change (Comment added) made by tlaukkan You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1893938&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Framework support Group: 0.86 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Duane (dnewman31) Assigned to: Nobody/Anonymous (nobody) Summary: Automatic properties not working with solution builds Initial Comment: I've ran into an issue compiling our projects. automatic properties (ie: public string test { get; set; }) work when compiled through the csc task but not when part of a project and built with the solution task. I've attached a sample build and project that creates a test.dll assembly. this works: <csc target="library" output="test.dll" debug="true"> <sources> <include name="test.cs"/> </sources> </csc> this does not: <solution configuration="debug"> <projects> <include name="test.csproj" /> </projects> </solution> I just get: Error CS0501: 'test.test.TestProp.get' must declare a body because it is not marked abstract or extern almost like it is using the wrong compiler. ?? this is a VS 2008 .net 3.5 project. ---------------------------------------------------------------------- Comment By: Tommi Laukkanen (tlaukkan) Date: 2009-01-01 16:34 Message: I have observed this same problem with the same nant version on windows vista 64 bit: NAnt 0.85 (Build 0.85.2478.0; release; 14.10.2006) Copyright (C) 2001-2006 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/Development/OpenSimExample/OpenSim.Example.build Target framework: Microsoft .NET Framework 2.0 Target(s) specified: build [echo] Using 'net-2.0' Framework init: Debug: [echo] Platform win32 build: [nant] C:\Development\OpenSimExample\ExampleLibrary\Example.Library.dll.build build Buildfile: file:///C:/Development/OpenSimExample/ExampleLibrary/Example.Library.dll.build Target framework: Microsoft .NET Framework 2.0 Target(s) specified: build build: [echo] Build Directory is C:\Development\OpenSimExample\ExampleLibrary/bin/Debug [csc] Compiling 3 files to 'C:\Development\OpenSimExample\ExampleLibrary\bin\Debug\Example.Library.dll'. [csc] c:\Development\OpenSimExample\ExampleLibrary\ExampleClass.cs(12,33): error CS0501: 'Example.Library.ExampleClass.MyProperty.get' must de clare a body because it is not marked abstract or extern [csc] c:\Development\OpenSimExample\ExampleLibrary\ExampleClass.cs(12,38): error CS0501: 'Example.Library.ExampleClass.MyProperty.set' must de clare a body because it is not marked abstract or extern BUILD FAILED C:\Development\OpenSimExample\ExampleLibrary\Example.Library.dll.build(23,10): External Program Failed: C:\Windows\Microsoft.NET\Framework\v2.0.50727\csc.exe (return code was 1) Total time: 0.3 seconds. BUILD FAILED Nested build failed. Refer to build log for exact reason. Total time: 0.3 seconds. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1893938&group_id=31650 ------------------------------------------------------------------------------ _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers