c# - Multi-targeting .NET assembly to use async/await on .NET 4.5 and .NET 4 -
i trying build small portable library need use async/await. goal want able use library on both .net 4, .net 4.5 runtime. ideally use microsoft.bcl.async pack when targeting .net 4, whereas .net 4.5 want use built-in async/await support without including bcl pack.
that said, have bcl.async dll excluded project when compiling .net 4.5, gives me warnings ambigous references between built-in async of c# 5 in .net 4.5 , bcl.async pack.
is possible, if how, else better way of going problem?
i ended using answer @stephencleary, whereas targeted pcl .net 4.0, , used bcl.async pack.
thanks!
Comments
Post a Comment