Skip to content

convert-from-nuget doesn't properly update some project reference hint paths #266

Closed

Description

@sneal

When converting a solution over from nuget, some references do not have their csproj references element updated. See this repository for a VS solution which reproduces the issue.

$ paket convert-from-nuget
Paket version 0.8.5.0
Dependencies files saved to paket.dependencies
References file saved to c:\src\WseInstallTest\WseInstallTest\paket.references
Solution c:\src\WseInstallTest\WseInstallTest.sln changed
Deleted c:\src\WseInstallTest\WseInstallTest\packages.config
Parsing paket.dependencies
Resolving packages:
  - fetching versions for Microsoft.Web.Services2
    - exploring Microsoft.Web.Services2 2.0.3.0
Locked version resolutions written to c:\src\WseInstallTest\paket.lock
Microsoft.Web.Services2 2.0.3.0 unzipped to c:\src\WseInstallTest\packages\Microsoft.Web.Services2
05.06s - ready.

Inspecting the modified csproj the hintpath for Microsoft.Web.Service2 is unchanged, still referring to its old hint path location of ..\packages\Microsoft.Web.Services2.2.0.3.0\lib\net11\Microsoft.Web.Services2.dll when it should in fact be ..\packages\Microsoft.Web.Services2\lib\net11\Microsoft.Web.Services2.dll. Paket does properly download the nuget dependency to this location, it just doesn't update the csproj file hint path.

<Reference Include="Microsoft.Web.Services2">
 <HintPath>..\packages\Microsoft.Web.Services2.2.0.3.0\lib\net11\Microsoft.Web.Services2.dll</HintPath>
</Reference>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions