Is this a VS2005 or VS2008 solution? The accessor support between them is very different.
If it is VS2008, check that the _Accessor.dll files exist in the build output directory. Also, check whether "Test References" directory in the unit test project is checked in. Sometimes the accessors go a bit quirky. I have found that failing everything else, deleting the "Test References" directory, regenerating the accessor from the class under test and running a rebuild works. This has only been for local issues though, not on the build server. RORY PRIMROSE SOFTWARE DEVELOPER INFORMATION SERVICES Tel +61(0) 2 62036720 Ext 156720 www.afp.gov.au From: [email protected] [mailto:[email protected]] On Behalf Of Jakob Ehn Sent: Friday, 12 December 2008 9:48 PM To: [email protected] Subject: RE: Build error for private Accessor Hi! Might be a silly question, but are you sure that you have checked in everything. To me it sounds like you have checked in your new test(s) but the class with the private accessor has not been checked in Regards /Jakob ---------------------------------- Jakob Ehn Utvecklingschef Osiris Data AS Direkt: +46 854525284 Brusetsvingen 25, Hvalstad Mobil: +46 707995669 Postboks 288, 1379 Nesbru Fax: +46 854525289 http://www.osiris.no <http://www.osiris.no/> Mail: [email protected] <mailto:[email protected]> From: [email protected] [mailto:[email protected]] On Behalf Of Dennis van de Laar Sent: 12. desember 2008 09:20 To: [email protected] Subject: Build error for private Accessor Hi all, On the project that I was doing last week we wanted to attach our Unit tests to our Daily build. Everything works fine until we added unit tests for private methods. Because those methods are private we had to generate an accessor class (which is not included in the project). When I run the Unit tests local it works fineJ, but when I attach the tests to the Daily build I get the following error. "CalculationTest.cs(93,19): error CS0103: The name 'Calculation_Accessor' does not exist in the current context" Does anyone have an idea how to solve this issue? Thanks in advance. Met vriendelijke groet / With kind regards, Dennis van de Laar | Consultant Avanade Netherlands BV Versterkerstraat 6, 1322 AP Almere Mobile: +31 (0) 6 - 52 38 14 18 Office: +31 (0) 36 - 54 61 483 Fax: +31 (0) 36 - 54 61 479 IM: [email protected] www.avanade.com <blocked::http://www.avanade.com/> Avanade /systems.solutions.success/from Accenture & Microsoft ________________________________ List address: [email protected] <mailto:[email protected]> Subscribe: [email protected] <mailto:[email protected]> Unsubscribe: [email protected] <mailto:[email protected]> List FAQ: http://www.codify.com/lists/oztfs <http://www.codify.com/lists/oztfs> Other lists you might want to join: http://www.codify.com/lists <http://www.codify.com/lists> ________________________________ List address: [email protected] <mailto:[email protected]> Subscribe: [email protected] <mailto:[email protected]> Unsubscribe: [email protected] <mailto:[email protected]> List FAQ: http://www.codify.com/lists/oztfs <http://www.codify.com/lists/oztfs> Other lists you might want to join: http://www.codify.com/lists <http://www.codify.com/lists> ********************************************************************** WARNING This email message and any attached files may contain information that is confidential and subject of legal privilege intended only for use by the individual or entity to whom they are addressed. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient be advised that you have received this message in error and that any use, copying, circulation, forwarding, printing or publication of this message or attached files is strictly forbidden, as is the disclosure of the information contained therein. If you have received this message in error, please notify the sender immediately and delete it from your inbox. AFP Web site: http://www.afp.gov.au ********************************************************************** -------------------------------------------------------------------------------- List address: [email protected] Subscribe: [email protected] Unsubscribe: [email protected] List FAQ: http://www.codify.com/lists/oztfs Other lists you might want to join: http://www.codify.com/lists
<<image001.gif>>
