Use Async, Await with VS2013 Target-.NET 4

I work with a third-party API that uses .NET 4 . I would like to use Async / Await functions in my class library. I installed Microsoft.Bcl.Async from NuGet. I have a few questions regarding deployment:

1) When installing Microsoft.Bcl.Async , I have a number of links added to my project ( Microsoft.Threading.Tasks , Microsoft.Threading.Tasks.Extensions ..). An app.config file is also created. What are the deployment requirements?

2) How can I deploy the app.config file for the class library, which is included in the installation directory of a third-party application. Do i need to add xml from app.config to application configuration?

3) Do I need to install Microsoft.Bcl.Async in all projects that link to the mentioned project?

Environment:

Visual Studio Express 2013 .NET 4

+7
c #
source share
1 answer

1) After installing Microsoft.Bcl.Async, I have a number of links added to my project (Microsoft.Threading.Tasks, Microsoft.Threading.Tasks.Extensions ..). An app.config file is also created. What are the deployment requirements?

Expand dll and app.config.

2) How can I deploy the app.config file for the class library, which is included in the installation directory of a third-party application. Do i need to add xml from app.config to application configuration?

Yes.

3) Do I need to install Microsoft.Bcl.Async for all projects that link to this project?

Maybe. As a best practice, install Microsoft.Bcl.Build in all of your projects. This will generate assembly warnings notifying you if you need to establish links to your other projects.

+3
source share

All Articles