-
Notifications
You must be signed in to change notification settings - Fork 525
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
Fixes 3352 - copy local has no effect when opening project in vs2017 #3356
Fixes 3352 - copy local has no effect when opening project in vs2017 #3356
Conversation
to avoid VS2017 to change the project.assets.json when opening a project Excract function for combining copy_local from lock and references files
So, what's up with the Travis build? Does it break from time to time or did my changes break something? |
Why I'm asking about |
Other than the |
I guess this is why: #2951 |
Maybe I could change the code to only consider |
… either lock or references file Separated the PrivateAssets and CopyLocal settings in .paket.resolved Added CopyLocal tag in paket.Restore.targets which reads the new column
I'm done with this one as it fixes the problem I had with opening projects in VS2017 with |
Unless I have to change the |
@forki @matthid Sorry for bothering you, but these changes fixes the issues I got when converting a C# solution with 180 projects (I know, I want to hang myself) to new SDK format. We're using the Is there another way to fix this I should try instead? Running |
@atlemann Thanks for the PR. Regarding the Code: I think there should be a built-in to get the "package settings" after considering the paket.references file. So I'm a bit hesitant about doing that manually. Regarding the Test-Suite: Yes it is probably broken again. I assume at least appveyor should be green again after adding the netcoreapp2.2 changes to the integration test suite (/cc @forki ) |
Um, not sure I follow what you mean by |
@matthid Is there anything I can change to make it mergable? I basically have to postpone switching to new SDK format due to this. |
please merge with master |
At least the Appveyor build succeeded again now |
thanks! |
Fixes: #3352
Setting
<ExcludeAssets>runtime</ExcludeAssets>
in the.paket.props
file for packages withcopy_local: false
to avoid VS2017 changing theprops.assets.json
when loading the project.Tweaked the result of combining copy_local flags from lock and references file:
copy_local: true
returnsSome true
which results inPrivateAssets=All
copy_local: true
andcopy_local: false
results in eitherSome false
orNone
which results in eitherExcludeAssets=runtime
or no flags at all.Moved the
copy_local
setting to element 5 in the.paket.resolved
file in theobj
folder and updatedpaket.Restore.targets
to read the 5th element instead.