Hi @Radha Pusarapu (Ernst & Young LLP) ,
Sorry for the delayed response.
If your NuGet packages are already uploaded to the Synapse Primary Gen2 account, you can install them using the notebook.
Here are the Steps:
1) upload file to primary gen2 storage
For this, you can use Azure storage explorer or Azure portal to upload the nuget package
2) copy your file to the synapse session
Here is the command
%%csharp
#!pwsh
/bin/bash -c " hdfs dfs -get /nuget/nuget.sample.package.1.0.0.18279 /tmp/nuget.sample.package.1.0.0.18279.nupkg"
Here, I have uploaded the sample NuGet package to the workspace's default account root container named nuget.
The root container is automatically available to the session runtime.
With the package file in a usable location, we need to copy it to the session’s local file system. The underlying location path changes every time you create a new session. The /tmp folder is always accessible to the session.
3) update the package reference location
%%csharp
#i "/Tmp"
When it runs successfully, you will receive the below message
Restore sources
4) install the package
%%csharp
#r "nuget:nuget.sample.package.1.0.0.18279"
Please let me know if you have any questions here.