Daily Usage Issues

Issues building in nCrunch when using Task<T>

Started by oriches on 5,277 views

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/documentation/troubleshooting_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();
}
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

Post a reply

Log in to reply.