-
Notifications
You must be signed in to change notification settings - Fork 520
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
csproj file is no longer updated after upgrading project's ToolsVersion #3837
Comments
actuall we're always checking for Can you please upload a zip where this reproduces? I want to fix it |
Thank you! Here you go: |
this should be fixed |
@peter-f-s does it work for you? |
@forki: Yes, works perfectly! Many thanks for the quick reply. 👍 |
This was referenced Oct 11, 2021
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
when running
paket install
, the references in my project files (csproj) are updated according to thepaket.references
file. This worked fine as long as I was working with Visual Studio 2017 (the projects have setToolsVersion="15.0"
).After upgrading to Visual Studio 2019 (
ToolsVersion="16.0"
), paket ignores changes in thepaket.references
file. The references in the projects are staying the same when doing apaket install
. However, paket touches the project file (it moves the import directive toPaket.Restore.targets
to another location in the file).Repro steps
paket.dependencies:
paket.references:
csproj file beginning like this:
Expected behavior
When I change the
paket.references
file (e.g. addingNUnit
), I expect that a reference to NUnit is added to the project when I runpaket install
.(This is actually the case when the csproj's
ToolsVersion="15.0"
)Actual behavior
The reference added to
paket.references
file is not added to the csproj file.Removing references also doesn't work.
The text was updated successfully, but these errors were encountered: