question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<Private>True</Private> is Visual Studio-specific

See original GitHub issue

When making a change with Paket, it automatically adds the <Private>True</Private> element to each dependency reference in the xxproj files.

I would rather it did not. After making a change to a project file in Xamarin Studio, this is the result:

screen shot 2015-01-23 at 13 14 29

It means that all project files receive a lot of churn, and it’s an annoyance to manually fiddle with a project in XS before committing every time paket has been used.

If it’s the opposite case for Visual Studio, and it requires the Private-element-flag, or otherwise adds it itself, then perhaps a nice heuristic would be to check whether paket is running on mono, and then not add the flag?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:28 (25 by maintainers)

github_iconTop GitHub Comments

5reactions
forkicommented, Jan 23, 2015

Strange. In referenced docs we find:

Private - Optional string. Determines whether to copy the file to the output directory. Values are:
  - Never
  - Always
  - PreserveNewest

According to this true is not even a valid value.

3reactions
BrainSlugs83commented, Jun 10, 2016

@forki on the linked page, for the “Reference” element’s “Private” attribute it says:

Optional boolean. Specifies whether the reference should be copied to the output folder. This attribute matches the Copy Local property of the reference that’s in the Visual Studio IDE.

The only place where “Always”, “Never” and “PreserveNewest” are mentioned is on the “CopyToOutputDirectory” attribute.

Further, I can confirm that “True” and “False” are what Visual Studio 2015 places in that value. According to the MSDN documentation, “True” and “False” are the only valid values.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does the Private setting do on a ProjectReference in ...
Private metadata on a ProjectReference item corresponds to the "Copy Local" property on the reference node in Visual Studio's Solution ...
Read more >
Common MSBuild Project Items
All project types in Visual Studio have several items in common. ... Private, Optional boolean. ... Defaults to true . Private, Optional ...
Read more >
PackageReference in project files - NuGet
When developmentDependency is set to true in a .nuspec file, this marks a package ... Starting with NuGet 5.7 & Visual Studio 2019...
Read more >
MSBuild reference for .NET SDK projects
The IsPublishable property allows the Publish target to run. This property only affects processes that use .*proj files and the Publish target, ...
Read more >
ResolveAssemblyReference Task - MSBuild
Private : Boolean value. If true , then the item is copied locally. The default value is true . - HintPath : String...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found