Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Issues building in nCrunch when using Task<T>
oriches
#1 Posted : Tuesday, September 10, 2013 10:05:31 AM(UTC)
Rank: Member

Groups: Registered
Joined: 10/15/2012(UTC)
Posts: 12
Location: United Kingdom

Thanks: 2 times
I'm seeing the following error when nCrunch is building, any ideas what I have to do to resolve the issue?


NCrunch: If you are experiencing problems in getting this project to build, have a look at http://www.ncrunch.net/d..._project-build-issues#0
ServiceModel\ServiceClientBase.cs (91)#1: Cannot await 'System.Threading.Tasks.Task'
ServiceModel\ServiceClientBase.cs (92)#2: Cannot await 'System.Threading.Tasks.Task<T>'
ServiceModel\ServiceClientBase.cs (99)#3: Cannot await 'System.Threading.Tasks.Task<object>'
ServiceModel\ServiceClientBase.cs (102)#4: Cannot await 'System.Threading.Tasks.Task<XXXXXXX.Framework.Contracts.Config.IJediConfig>'


The method in question looks like this:

protected async Task<T> InvokeWhenReadyAsync<T>(Func<Task<T>> action)
{
await EnsureReadyAsync();
return await action();
}
Remco
#2 Posted : Tuesday, September 10, 2013 10:27:20 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,123

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi,

Thanks for sharing this issue. Does turning on compatibility mode make any difference for this?

Is there any chance you could share a small reproduction of the issue through the contact form? If you're able to isolate the issue sufficiently, I'm fairly certain we can get it fixed quickly.


Cheers,

Remco
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download