# How to install?
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.
# Referencing assemblies (recommended)
You can install Nuget packages automatically via Visual Studio
, Visual Studio Code
, dotnet command line
, and many other ways.
# Visual Studio
In the [Solution Explorer] of the development project, right click on the module you need to add Senparc.Weixin.TenpayV3, click [Manage Nuget Packages], enter Senparc.Weixin.TenpayV3 in the [Browse] tab, and click the [Install] button on the right side. As shown in the picture below:
# Visual Studio Code
First, make sure you have installed VS Code (opens new window) and dotnet command line (it will be installed automatically after installing .NET SDK (opens new window)).
Then, open the solution or project directory and press Ctrl+~ to open the terminal panel:
Go to the directory of the project where you need to add the module Senparc.Weixin.Tenpay and type:
dotnet add package Senparc.Weixin.TenpayV3
After the installation is complete, you can see the corresponding .csproj file, which is being added with references such as:
<ItemGroup>
<PackageReference Include="Senparc.Weixin.TenpayV3" Version="0.6.4-beta1" />
</ItemGroup>
# dotnet command line
First of all, make sure that the dotnet command line is installed (it will be installed automatically after installing .NET SDK (opens new window)).
Go to the directory of the project where you want to add the module Senparc.Weixin.TenpayV3 and enter:
dotnet add package Senparc.Weixin.TenpayV3
! Install via dotnet CLI (opens new window)
After the installation is complete, you can see the corresponding .csproj file, which is being added with references such as:
<ItemGroup>
<PackageReference Include="Senparc.Weixin.TenPayV3" Version="0.6.4-beta1" />
</ItemGroup>