Create a Nuget package from Visual Studio:

Artifactory: How to build and publish a Nuget project using the JFrog CLI to Artifactory and how to scan it and what to expect after it is scanned by JFrog Xray

AuthorFullName__c
Swarnendu Kayal
articleNumber
000005166
ft:sourceType
Salesforce
FirstPublishedDate
2021-11-17T14:09:29Z
lastModifiedDate
2024-03-10T07:49:12Z
VersionNumber
7


In order to do the build using the JFrog CLI, we need to create a .NET project from Visual Studio. Please follow the instructions below - 

1. Create a .NET project using this link - https://docs.microsoft.com/en-us/visualstudio/ide/create-new-project?view=vs-2019

2. After creating the project you should see the similar folder structure in the solution window of Visual Studio where you can find a folder called dependencies as shown below - 

User-added image

3. Right click on the “Dependencies'' folder and then click on the “Manage Nuget Packages'' and install the required dependencies. You may also refer to this link - https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio. I am currently installing the “log4net:2.0.8” package as it has vulnerabilities which will be scanned by the JFrog Xray. 

User-added image