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

Renaming .NET Core Project breaks Restore and Build #1293

Closed
natidea opened this issue Jan 21, 2017 · 3 comments · Fixed by #1318
Closed

Renaming .NET Core Project breaks Restore and Build #1293

natidea opened this issue Jan 21, 2017 · 3 comments · Fixed by #1318
Assignees
Milestone

Comments

@natidea
Copy link
Contributor

natidea commented Jan 21, 2017

Ported from NuGet/Home#4287

VS 2017 26114.00 (rc3 not final)

Repro Steps

  1. Create a NetStandard project named ClassLibraryNetStandard
  2. Rename the project ClassLibraryNetStandard14
  3. Build

Expected: no error, restore works

Actual: In build output window, see a message: Error occurred while restoring NuGet packages: The operation failed as details for project ClassLibraryNetStandard14 could not be loaded.

Workaround: unload + reload project or close solution/open solution.
or: hand edit the project file and add/remove or change a package reference, and the Project and NuGet will be in sync again enabling NuGet package operations

@natidea
Copy link
Contributor Author

natidea commented Jan 21, 2017

Adding the MSBuildProjectFile property to NuGetRestore subscription rules fixes this.

@devinvisible
Copy link

@natidea Where exactly can I find the NuGetRestore subscription rules? I'd like to try this for NuGet/Home#8456

@drewnoakes
Copy link
Member

@devinvisible the linked PR #1318 shows what @natidea was referring to.

@drewnoakes drewnoakes removed the Bug label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants