Hi, I'm trying to load the Azure.DigitalTwins.Core -Version 1.4.0 package in azure cloud shell (power shell) and I'm getting the following error.
How can I solve it?
PS /home/p82salul/LocalFunctionProj> dotnet add package Microsoft.Azure.DigitalTwins.Core --version 1.4.0 Determining projects to restore...
Writing /tmp/tmps90Rbs.tmp
info : X.509 certificate chain validation will use the fallback certificate bundle at '/usr/share/dotnet/sdk/6.0.408/trustedroots/codesignctl.pem'.
info : Adding PackageReference for package 'Microsoft.Azure.DigitalTwins.Core' into project '/home/p82salul/LocalFunctionProj/LocalFunctionProj.csproj'.
info : Restoring packages for /home/p82salul/LocalFunctionProj/LocalFunctionProj.csproj...
info : GET https://api.nuget.org/v3-flatcontainer/microsoft.azure.digitaltwins.core/index.json
info : GET https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0
info : NotFound https://api.nuget.org/v3-flatcontainer/microsoft.azure.digitaltwins.core/index.json 377ms
info : NotFound https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0 469ms
log : Retrying 'FindPackagesByIdAsyncCore' for source 'https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0'.
log : Response status code does not indicate success: 404 (Not Found).
info : GET https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0
info : NotFound https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0 40ms
log : Retrying 'FindPackagesByIdAsyncCore' for source 'https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0'.
log : Response status code does not indicate success: 404 (Not Found).
info : GET https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0
info : NotFound https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0 37ms
error: NU1301: Failed to retrieve information about 'Microsoft.Azure.DigitalTwins.Core' from remote source 'https://www.nuget.org/packages/Azure.DigitalTwins.Core/FindPackagesById()?id='Microsoft.Azure.DigitalTwins.Core'&semVerLevel=2.0.0'.
info : Package 'Microsoft.Azure.DigitalTwins.Core' is compatible with all the specified frameworks in project '/home/p82salul/LocalFunctionProj/LocalFunctionProj.csproj'.
error: Value cannot be null. (Parameter 'version')
Usage: NuGet.CommandLine.XPlat.dll package add [options]
Options:
-h|--help Show help information
--force-english-output Forces the application to run using an invariant, English-based culture.
--package Id of the package to be added.
--version Version of the package to be added.
-d|--dg-file Path to the dependency graph file to be used to restore preview and compatibility check.
-p|--project Path to the project file.
-f|--framework Frameworks for which the package reference should be added.
-n|--no-restore Do not perform restore preview and compatibility check. The added package reference will be unconditional.
-s|--source Specifies NuGet package sources to use during the restore.
--package-directory Directory to restore packages in.
--interactive Allow the command to block and require manual action for operations like authentication.
--prerelease Allows prerelease packages to be installed.