MSBuild ProjectReference:private (“Copy Local”) - what are the allowed values and behaviour?

后端 未结 1 923
予麋鹿
予麋鹿 2021-02-03 17:00

TL;DR Is there any official documentation that describes in detail how the / \"Copy Local\" option works with MSBuild

相关标签:
1条回答
  • 2021-02-03 17:46

    For Reference and ProjectReference items, the accepted values for Private are: True or False

    This property in msbuild corresponds with the project reference property in VS as Copy Local.

    I got the above answer by manually setting the reference properties in VS and viewing the xml. I couldn't find official documentation of the Private item metadata.

    Checking the docs at https://msdn.microsoft.com/en-us/library/bb629388.aspx shows the accepted values as Never, Always, and PreserveNewest. These seem to be wrong and only available for the CopyLocal metadata, which is used on Content, None, and other file items.

    0 讨论(0)
提交回复
热议问题