Quick Start
Deploying CADP for .NET Core
- Open the command prompt or terminal from the directory where the sample needs to be created. 
- Run - dotnet new console. It will create a console application with the required files.
- Download the Samples. 
- Copy the desired sample file (for example, - CryptoOpRijndael.cs) and paste it in the same folder.
- Remove the existing - Program.csfile.
- Add the NuGet package as mentioned in the next section. 
Adding NuGet Package to the Project
- Open sample application ( - CADP.NETCoreNaeSamples.sln) in the Visual Studio.
- Right-click the sample application in the Solution Explorer and select Manage NuGet Packages. 
- Click Settings (  ) next to the Package source. ) next to the Package source.- The Options dialog box appears. 
- Click (  ) symbol to add the Package Sources from the NuGet Package Manager. ) symbol to add the Package Sources from the NuGet Package Manager.
- In the Source, add/browse the location of the latest NuGet package. You can change the package source name if required. 
- Click OK. 
- Select the added package source from the Package source drop-down list. 
- Go to Browse and select the "CipherTrust.CADP.NETCore" package. 
- Click the Install button in the right pane. Follow the online instructions to install the Nuget package. - In the Solution Explorer, you can see that Packages is added under Dependencies. This package contains the - dllfile.
Note
When adding or updating the NuGet package, if you face any issues, you need to clear the NuGet cache. Refer to Troubleshooting for more details.
Verifying Deployment
After compilation, the project can be run to test your deployment. To verify the installation:
- Configure the - CADP.NETCore_Properties.xmlproperties file available in the NuGet Installation directory under the- contentfolder. Refer to the Configuration section for the configuration parameters details.
- Specify a valid user name and password when the project prompts for it. The project uses this information to log on to the CipherTrust Manager specified in the - CADP.NETCore_Properties.xmlfile.
- Follow the instructions prompted during the execution. 
Samples
You can download the CADP samples from the corresponding Github location.