Bug 46714 - Xbuild warning when building solution with shared project references Could not find project file Microsoft.CodeSharing.Common.Default.props
Summary: Xbuild warning when building solution with shared project references Could no...
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Tools
Classification: Mono
Component: xbuild ()
Version: 4.6.0 (C8)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-11-10 14:50 UTC by John Miller [MSFT]
Modified: 2018-03-15 10:39 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Full build output (42.61 KB, text/plain)
2016-11-10 14:50 UTC, John Miller [MSFT]
Details
Sample Project (11.91 KB, application/zip)
2016-11-10 14:52 UTC, John Miller [MSFT]
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description John Miller [MSFT] 2016-11-10 14:50:58 UTC
Created attachment 18412 [details]
Full build output

**Overview:**

   When building a solution with shared project references from the command line with xbuild, some warnings are output. It's unclear why and what these warnings mean.
   
**Steps to Reproduce:**

   1. Run the following command for the attached project from terminal

xbuild /p:Configuration=Release /target:Build Xbuildtesting/Xbuildtesting.sln

**Actual Results:**

   Attached are the full results.

   Build succeeded.

Warnings:

/Users/johnmiller/Projects/Xbuildtesting/Xbuildtesting/Xbuildtesting.shproj:  warning : Could not find project file /Library/Frameworks/Mono.framework/External/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.Default.props, to import. Ignoring.
/Users/johnmiller/Projects/Xbuildtesting/Xbuildtesting/Xbuildtesting.shproj:  warning : Could not find project file /Library/Frameworks/Mono.framework/External/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.Common.props, to import. Ignoring.
/Users/johnmiller/Projects/Xbuildtesting/Xbuildtesting/Xbuildtesting.shproj:  warning : Could not find project file /Library/Frameworks/Mono.framework/External/xbuild/Microsoft/VisualStudio/v/CodeSharing/Microsoft.CodeSharing.CSharp.targets, to import. Ignoring.

/Users/johnmiller/Projects/Xbuildtesting/Xbuildtesting.sln (Build) ->
(Build target) ->
   
**Expected Results:**

   No warnings
   
**Build Date & Platform:**

   === Xamarin Studio Enterprise ===

Version 6.1.1 (build 17)
Installation UUID: e01c3049-a2d2-4e0a-aad8-afe6fb627c4d
Runtime:
	Mono 4.6.1 (mono-4.6.0-branch-c8sr0/ef43c15) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 406010005

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 8.1 (11544)
Build 8B62

=== Xamarin.Android ===

Version: 7.0.1.3 (Xamarin Enterprise)
Android SDK: /Users/johnmiller/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 25.1.7
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Xamarin.iOS ===

Version: 10.2.0.4 (Xamarin Enterprise)
Hash: b638977
Branch: xcode8.1
Build date: 2016-10-25 14:38:48-0400

=== Xamarin.Mac ===

Version: 2.10.0.105 (Xamarin Enterprise)

=== Xamarin Inspector ===

Version: 0.10.0.0
Hash: e931a52
Branch: master
Build date: Thu, 18 Aug 2016 17:46:46 GMT

=== Build Information ===

Release ID: 601010017
Git revision: 44d481a9be9cf2bf7c01bfb99c59b77dfa08e712
Build date: 2016-10-25 14:27:24-04
Xamarin addins: 19cdb28081bf28d9688698030abb96e04e391f69
Build lane: monodevelop-lion-cycle8-sr0

=== Operating System ===

Mac OS X 10.12.0

   
**Additional Information:**

   The files mentioned in the warnings do not exist at that path on this machine.
Comment 2 John Miller [MSFT] 2016-11-10 14:52:56 UTC
Created attachment 18414 [details]
Sample Project

Added a sample to use
Comment 3 Marek Safar 2018-03-15 10:39:52 UTC
We deprecated xbuild and recommend using msbuild instead. Switching to msbuild will also most likely resolve the issue you reported.