I am using VS 2015. I have an Azure Cloud project (CCPROJ) that references a C # project (CSPROJ). Unfortunately, the C # project has to reference Microsoft.Bcl.Build because of the dependency it has. However, when the cloud project builds, it receives this warning:
All projects referencing MyProject.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569. MyProject.Cloud
The problem is that cloud projects cannot reference NuGet packages. After searching the Internet, I found that this was reported by Microsoft at:
https://connect.microsoft.com/VisualStudio/feedback/details/789839/unexpected-warning-when-building-solution-that-has-azure-cloud-services-and-a-reference-to-the-microsoft- bcl-build-nuget-package
But this report was closed as "do not fix." They crawled and actually referred to StackOverflow:
warning: all projects that reference MyProject.csproj must install the Microsoft.Bcl.Build nuget package
I tried a workaround, actually here is from my CCPROJ project of my cloud project:
<ItemGroup> <ProjectReference Include="..\MyProject\MyProject.csproj"> <Name>MyProject</Name> <Project>{77ACF4A4-5F19-40E9-991D-BDB09B175366}</Project> <Private>True</Private> <RoleType>Web</RoleType> <RoleName>MyProject</RoleName> <UpdateDiagnosticsConnectionStringOnPublish>True</UpdateDiagnosticsConnectionStringOnPublish> <Properties>SkipValidatePackageReferences=true</Properties> </ProjectReference> </ItemGroup>
As you can see, the SkipValidatePackageReferences property is set to true. However, even with this, I still get the same warning. My solution actually has several cloud projects, and they all have the same problem. Am I something wrong here?
I tried the usual one - deleted my bin and obj directories, restarted Visual Studio and the machine. All I really want to do is suppress this annoying warning message.
thanks