Bug 23790 - MSBuild task does not run mkdir
Summary: MSBuild task does not run mkdir
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.3.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-10-13 15:54 UTC by Alan McGovern
Modified: 2014-10-20 20:29 UTC (History)
5 users (show)

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

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 Developer Community or GitHub 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:

Description Alan McGovern 2014-10-13 15:54:45 UTC
1) Delete the 'obj' and 'bin' directories from your project.
2) Alter a '.xaml' file
3) The task fails with this error:


Fix: Add a mkdir to the forms '.targets' file so the output directory is created before xamlg itself is invoked.
Comment 1 Sadik Ali 2014-10-14 05:03:22 UTC
I have checked this issue and I am able to reproduce this issue.

Steps I followed:

1. Create a Blank App ( Xamarin.Forms Portable)
2. Delete the "obj" and "bin" file of newly created project
3. Add new Forms ContentPage Xaml page.

When I add a xml page to the portable project I observed that I am getting following error:
"Error: Unknown MSBuild failure. Please try building the project again".

I am getting same error with both project "Blank App (Xamarin.Forms Portable)" and "Blank App ( Xamarin.Forms Shared)"

Screencast: http://www.screencast.com/t/KXiLQvVRm

Build output: https://gist.github.com/saurabh360/e7fcbdd7f07580e1b6ae
Tool output: https://gist.github.com/saurabh360/561f2de01b4fbe962347

Environment Info:


=== Xamarin Studio ===

Version 5.6.1 (build 5)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
	Mono 3.10.0 ((detached/633e444)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000020

=== Apple Developer Tools ===

Xcode 6.0.1 (6528)
Build 6A317

=== Xamarin.Mac ===

Version: (Business Edition)

=== Xamarin.Android ===

Version: 4.18.0 (Business Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.0   (API level 11)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 6049af6
Build date: 2014-10-12 21:49:14-0400

=== Build Information ===

Release ID: 506010005
Git revision: 4a603dc77610b9eff2a41582146c56b69a81ceba
Build date: 2014-10-09 11:07:06-04

=== Operating System ===

Mac OS X 10.9.5