Visual Studio 2013 - adding same link to foreground app and background job
I am new to background job in windows storage app.
I need to use the same library (Newtonsoft.json) in both the main application and the Windows environment component (background task).
Please, how can I achieve this?
I installed it using nuget, but I can only use it in my foreground application.
I have VS 2013 Express for Windows
source to share
1-You can install package for all projects in solution with this script inside package manager console
Get-Project -All | Install-Package Newtonsoft.Json
2. You can change the default project in the package manager, change it to a background project.
then install the package
Install-Package Newtonsoft.Json
3 - You can also check this answer to a similar question
Tools> Library Package Manager> Manage NuGet Packages for Solution ... Link
source to share
There are several ways to do this.
-
Ahmed Rashad's method works if you want to install it in all your projects. To limit projects, you simply name the project individually or in a comma-separated list, i.e.
Get-Project, | Install-Package Newtonsoft.Json
-
You can also right-click the project you want to install and select Manage Nuget Packages and install from the Internet source (left navigation bar).
-
Right click on Solution, select Manage Nuget Packages for Solution, then click Installed packages in the left navigation pane. From there, you simply find the package you want in the central navigation bar and click "Manage". Select another project and click "OK".
The first option is the easiest and fastest IMO.
source to share