Filter out PackageReferences that are marked as development dependencies from inclusion in the ClickOnce manifest (#6037)
Filter out PackageReferences that are marked as development dependencies from inclusion in the ClickOnce manifest (#6037)

Fixes #1257168

Context
Issue: ClickOnce is currently publishing contents of Nuget packages that are marked as developement dependencies. These package references should be excluded by publishing providers.

Changes Made
Filter out the development dependencies from the _DeploymentReferencePaths item group. The filtering happens by looking at the CopyToPublishDirectory attribute on ReferenceCopyLocalPaths group which is set to false for said packages.

Testing
CTI has validated specific packages that are affected and also validated the change against top 50 NuGet packages.
AndyGerlicher/msbuild,mono/msbuild,AndyGerlicher/msbuild,mono/msbuild,sean-gilliam/msbuild,rainersigwald/msbuild,sean-gilliam/msbuild,AndyGerlicher/msbuild,rainersigwald/msbuild,rainersigwald/msbuild,rainersigwald/msbuild,mono/msbuild,sean-gilliam/msbuild,sean-gilliam/msbuild,mono/msbuild,AndyGerlicher/msbuild