You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
csproj file is no longer updated after upgrading project's ToolsVersion #3837
when running paket install, the references in my project files (csproj) are updated according to the paket.references file. This worked fine as long as I was working with Visual Studio 2017 (the projects have set ToolsVersion="15.0").
After upgrading to Visual Studio 2019 (ToolsVersion="16.0"), paket ignores changes in the paket.references file. The references in the projects are staying the same when doing a paket install. However, paket touches the project file (it moves the import directive to Paket.Restore.targets to another location in the file).
When I change the paket.references file (e.g. adding NUnit), I expect that a reference to NUnit is added to the project when I run paket 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.
Activity
forki commentedon Apr 28, 2020
actuall we're always checking for
if toolsVersion >= 15.0 then.Can you please upload a zip where this reproduces? I want to fix it
peter-f-s commentedon Apr 28, 2020
Thank you! Here you go:
csprojUpdateIssue.zip
(I hope the zip is ok - I had to try several options and browsers until GitHub accepted the file)
ToolsVersion fixes #3837
forki commentedon Apr 29, 2020
this should be fixed
forki commentedon Apr 30, 2020
@peter-f-s does it work for you?
peter-f-s commentedon May 1, 2020
@forki: Yes, works perfectly! Many thanks for the quick reply. 👍