In a project with the Async CTP for VS2010 -
http://www.microsoft.com...ad/details.aspx?id=9983 - the NCrunch build fails as follows:
CSC (0)#0: Predefined type 'System.Runtime.CompilerServices.IAsyncStateMachine' is not defined or imported
Workers\DecryptionDecompressionQueueWorker.cs (46)#1: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
Workers\DecryptionDecompressionQueueWorker.cs (49)#2: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
Workers\DecryptionDecompressionQueueWorker.cs (28)#3: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
CSC (0)#4: Predefined type 'System.Runtime.CompilerServices.IAsyncStateMachine' is not defined or imported
Workers\DecryptionDecompressionQueueWorker.cs (74)#5: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
Workers\DecryptionDecompressionQueueWorker.cs (72)#6: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
CSC (0)#7: Predefined type 'System.Runtime.CompilerServices.IAsyncStateMachine' is not defined or imported
Workers\CompressionEncryptionQueueWorker.cs (48)#8: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
Workers\CompressionEncryptionQueueWorker.cs (51)#9: Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
:Workers\CompressionEncryptionQueueWorker.cs (28)#10 Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
:CSC (0)#11 Predefined type 'System.Runtime.CompilerServices.IAsyncStateMachine' is not defined or imported
:Workers\CompressionEncryptionQueueWorker.cs (81)#12 Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
:Workers\CompressionEncryptionQueueWorker.cs (79)#13 Cannot find all types required by the 'async' modifier. Are you targeting the wrong framework version, or missing a reference to an assembly?
The required library for the CTP (AsyncCtpLibrary) is copied to a relative "lib" path and referenced from there. I've tried adding the AsyncCtpLibrary.dll to the NCrunch "additional files to include", but it made no difference.
Any ideas?
Thanks,
Dave.