Bug 37791 - Error executing task XamlCTask: Object reference not set to an instance of an object
Summary: Error executing task XamlCTask: Object reference not set to an instance of an...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.5.2
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-19 11:46 UTC by Adam Hartley [MSFT]
Modified: 2016-01-20 09:27 UTC (History)
6 users (show)

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


Attachments
Sample project and logs (29.44 KB, application/zip)
2016-01-19 11:46 UTC, Adam Hartley [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 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:
Status:
RESOLVED FIXED

Description Adam Hartley [MSFT] 2016-01-19 11:46:27 UTC
Created attachment 14626 [details]
Sample project and logs

## Steps to reproduce

1. Download attached sample
2. Build All

## Expected result

No errors

## Actual result

/Users/Adam/Downloads/XamlCrash/packages/Xamarin.Forms.2.0.0.6490/build/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Xamarin.Forms.targets: Error: Error executing task XamlCTask: Object reference not set to an instance of an object (XamlCrash.iOS)

/Users/Adam/Downloads/XamlCrash/packages/Xamarin.Forms.2.0.0.6490/build/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Xamarin.Forms.targets: Error: Error executing task XamlCTask: Object reference not set to an instance of an object (XamlCrash.Droid)

## Notes

Commenting out the following in XamlCrash.cs will allow it to build without errors:

[assembly: XamlCompilation (XamlCompilationOptions.Compile)]
Comment 3 Stephane Delcroix 2016-01-20 09:27:24 UTC
This is fixed in our tree, and will be released soon.

Thanks for reporting that issue.

Warm regards,

The XF team