Repository navigation
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.propsfile for packages withcopy_local: falseto avoid VS2017 changing theprops.assets.jsonwhen loading the project.Tweaked the result of combining copy_local flags from lock and references file:
copy_local: truereturnsSome truewhich results inPrivateAssets=Allcopy_local: trueandcopy_local: falseresults in eitherSome falseorNonewhich results in eitherExcludeAssets=runtimeor no flags at all.Moved the
copy_localsetting to element 5 in the.paket.resolvedfile in theobjfolder and updatedpaket.Restore.targetsto read the 5th element instead.