docs/en/guide/work/install.md
You can either directly reference the Senparc.Weixin source code for development, or you can reference the packaged dlls (via Nuget packages, which is recommended) to get official updates at any time. Note: You can only use either the source code or the Nuget package.
You can reference (copy) the assemblies you need to reference in the current solution, under the Libraries directory, to the solution of your development environment, please note that you need to reference the dependent projects at the same time, for example, the Senparc.Weixin project is a dependency of all projects.
The current example project uses a direct reference to the source code by default, which can be seen in the .csproj file:
<ItemGroup>
<ProjectReference Include="... \... \... \src\Senparc.Weixin.AspNet\Senparc.Weixin.AspNet.net6.csproj" />
<ProjectReference Include="... \... \... \src\Senparc.Weixin.Work.Middleware\Senparc.Weixin.Work.Middleware.net6.csproj" />
<ProjectReference Include="... \... \... \src\Senparc.Weixin.Work\Senparc.Weixin.Work\Senparc.Weixin.Work.net6.csproj" />
</ItemGroup>
You can install Nuget packages automatically via Visual Studio, Visual Studio Code, dotnet command line, and many other ways.
In the Solution Explorer of the development project, right-click the module you want to add Senparc.Weixin.Work, click Manage Nuget Packages, enter Senparc.Weixin.Work in the Browse tab, and click the Install button on the right side. As shown in the following figure:
First, make sure you have installed VS Code and dotnet command line (it will be installed automatically after installing .NET SDK).
Then, open the directory where the solution or project is located, press Ctrl+~ to open the Terminal panel, go to the directory of the project where you need to add the module Senparc.Weixin.Work and type:
csdotnet add package Senparc.Weixin.Work
After the installation is complete, you can see the corresponding .csproj file, which has been added as a reference, for example:
<ItemGroup>
<PackageReference Include="Senparc.Weixin.Work" Version="3.14.10" />
</ItemGroup>
First of all, make sure that you have installed the dotnet command line (it will be installed automatically after installing the .NET SDK).
Go to the directory of the project where you want to add the Senparc.Weixin.Work module and type:
csdotnet add package Senparc.Weixin.Work
After the installation is complete, you can see the corresponding .csproj file, which is added with references such as:
<ItemGroup>
<PackageReference Include="Senparc.Weixin.Work" Version="3.14.10" />
</ItemGroup>