Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuget update does not work for PackageReference with .NetFramework v4.6.1 #6985

Closed
let-thomas opened this issue May 30, 2018 · 1 comment
Closed
Labels
Product:NuGet.exe NuGet.exe Resolution:Duplicate This issue appears to be a Duplicate of another issue Style:PackageReference

Comments

@let-thomas
Copy link

I have 1 clean small solution with 1 project having

  <ItemGroup>
    <PackageReference Include="PcgDNF">
      <Version>1.0.*</Version>
    </PackageReference>
  </ItemGroup>

nuget restore DepMaster.sln
works fine

C:\work\git_poc\DepMaster>nuget restore DepMaster.sln
MSBuild auto-detection: using msbuild version '15.7.179.6572' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\
Professional\MSBuild\15.0\bin'.
Committing restore...
Assets file has not changed. Skipping assets file writing. Path: C:\work\git_poc\DepMaster\Master\obj\project.assets
.json
Restore completed in 79,82 ms for C:\work\git_poc\DepMaster\Master\Master.csproj.

NuGet Config files used:
    C:\Users\xxxx\AppData\Roaming\NuGet\NuGet.Config
    C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config

Feeds used:
    C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
    C:\nuget_packages_glob
    https://someaddr/api/nuget/nuget
    https://someaddr/api/nuget/r4cbe7f7a-0d73-4f9c-bebb-64b455431174
    https://someaddr/api/nuget/raa810a8d-d88c-4dab-95df-3736a89784b4

Now I would like to fetch newest version of PcgDNF package

C:\work\git_poc\DepMaster>nuget update -safe DepMaster.sln
Scanning for projects...
No projects found with packages.config.

And similar for csproj

C:\work\git_poc\DepMaster>nuget update -safe Master\Master.csproj
MSBuild auto-detection: using msbuild version '15.7.179.6572' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\
Professional\MSBuild\15.0\bin'.
Unable to locate the packages folder. Verify all the packages are restored before running 'nuget.exe update'.

Tested nuget versions
nuget_3.3.0.exe
nuget_3.4.4.exe
nuget_3.5.0.exe
nuget_4.4.1.exe
nuget_4.5.1.exe
nuget_4.6.0.exe
nuget_4.6.2.exe
nuget_4.7.0.exe

@nkolev92
Copy link
Member

Thanks for filing this issue. @let-thomas

This is a known feature gap.

Duplicate of #4103

@nkolev92 nkolev92 added Resolution:Duplicate This issue appears to be a Duplicate of another issue Style:PackageReference Product:NuGet.exe NuGet.exe labels May 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product:NuGet.exe NuGet.exe Resolution:Duplicate This issue appears to be a Duplicate of another issue Style:PackageReference
Projects
None yet
Development

No branches or pull requests

2 participants