Error. Package.[iOS|Droid].csproj object reference not set to an instance of an object

Hello, I'm having problems compiling my app.

It gives problems in "Droid" and "iOS",

I try to attach the two csproj. and a screenshot but i can't do.

Output console:

Compilando la solución GassistApp (Debug)

Build started 9/27/2017 11:56:19 AM.
__________________________________________________
Project "/Users/Alexandre/Projects/GassistApp/GassistApp/GassistApp.csproj" (Build target(s)):

Target PrepareForBuild:
    Configuration: Debug Platform: AnyCPU

Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.

Target _GenerateTargetFrameworkMonikerAttribute:
Skipping target "_GenerateTargetFrameworkMonikerAttribute" because its outputs are up-to-date.

Target _CoreXamlG:
Skipping target "_CoreXamlG" because its outputs are up-to-date.

Target _CoreXamlG:
Skipping target "_CoreXamlG" because its outputs are up-to-date.

Target CoreCompile:
Skipping target "CoreCompile" because its outputs are up-to-date.

Target XamlC:
    Compiling Xaml

Assembly: obj/Debug/GassistApp.dll
    ReferencePath:  /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/Microsoft.CSharp.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/Microsoft.VisualBasic.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Collections.Concurrent.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Collections.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.ComponentModel.EventBasedAsync.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.ComponentModel.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Core.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Diagnostics.Contracts.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Diagnostics.Debug.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Diagnostics.Tools.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Diagnostics.Tracing.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Dynamic.Runtime.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Globalization.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.IO.Compression.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.IO.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Linq.Expressions.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Linq.Parallel.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Linq.Queryable.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Linq.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Net.Http.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Net.NetworkInformation.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Net.Primitives.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Net.Requests.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Net.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Numerics.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.ObjectModel.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Reflection.Extensions.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Reflection.Primitives.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Reflection.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Resources.ResourceManager.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.Extensions.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.InteropServices.WindowsRuntime.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.InteropServices.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.Numerics.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.Serialization.Json.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.Serialization.Primitives.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.Serialization.Xml.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.Serialization.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Runtime.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Security.Principal.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.ServiceModel.Web.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Text.Encoding.Extensions.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Text.Encoding.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Text.RegularExpressions.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Threading.Tasks.Parallel.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Threading.Tasks.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Threading.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Windows.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Xml.Linq.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Xml.ReaderWriter.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Xml.Serialization.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Xml.XDocument.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Xml.XmlSerializer.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.Xml.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/System.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/mscorlib.dll;/Users/Alexandre/.nuget/packages/Microsoft.Bcl.Async/1.0.168/lib/portable-net45+win8+wpa81/Microsoft.Threading.Tasks.Extensions.dll;/Users/Alexandre/.nuget/packages/Microsoft.Bcl.Async/1.0.168/lib/portable-net45+win8+wpa81/Microsoft.Threading.Tasks.dll;/Users/Alexandre/.nuget/packages/Microsoft.Net.Http/2.2.29/lib/portable-net45+win8+wpa81/System.Net.Http.Extensions.dll;/Users/Alexandre/.nuget/packages/Microsoft.Net.Http/2.2.29/lib/portable-net45+win8+wpa81/System.Net.Http.Primitives.dll;/Users/Alexandre/.nuget/packages/Newtonsoft.Json/10.0.3/lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll;/Users/Alexandre/.nuget/packages/Syncfusion.Xamarin.Core/15.3.0.29/lib/portable-win+net45+wp80+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Syncfusion.Core.XForms.dll;/Users/Alexandre/.nuget/packages/Syncfusion.Xamarin.DataSource/15.3.0.29/lib/portable-win+net45+wp80+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Syncfusion.DataSource.Portable.dll;/Users/Alexandre/.nuget/packages/Syncfusion.Xamarin.GridCommon/15.3.0.29/lib/portable-win+net45+wp80+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Syncfusion.GridCommon.Portable.dll;/Users/Alexandre/.nuget/packages/Syncfusion.Xamarin.OfficeChart/15.3.0.29/lib/portable-win+net45+wp80+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Syncfusion.OfficeChart.Portable.dll;/Users/Alexandre/.nuget/packages/Syncfusion.Xamarin.SfChart/15.3.0.29/lib/portable-win+net45+wp80+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Syncfusion.SfChart.XForms.dll;/Users/Alexandre/.nuget/packages/Syncfusion.Xamarin.SfListView/15.3.0.29/lib/portable-win+net45+wp80+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10/Syncfusion.SfListView.XForms.dll;/Users/Alexandre/.nuget/packages/Vapolia.XamarinFormsGesture/1.1.0/lib/.NETPortable0.0-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/XamarinFormsGesture.dll;/Users/Alexandre/.nuget/packages/Xam.Plugins.Settings/3.0.1/lib/netstandard1.0/Plugin.Settings.Abstractions.dll;/Users/Alexandre/.nuget/packages/Xam.Plugins.Settings/3.0.1/lib/netstandard1.0/Plugin.Settings.dll;/Users/Alexandre/.nuget/packages/Xamarin.FFImageLoading/2.2.17/lib/portable-net45+win8+wpa81+wp8/FFImageLoading.Platform.dll;/Users/Alexandre/.nuget/packages/Xamarin.FFImageLoading/2.2.17/lib/portable-net45+win8+wpa81+wp8/FFImageLoading.dll;/Users/Alexandre/.nuget/packages/Xamarin.FFImageLoading.Forms/2.2.17/lib/portable-net45+win8+wpa81+wp8+netstandard1.0/FFImageLoading.Forms.dll;/Users/Alexandre/.nuget/packages/Xamarin.Forms/2.3.4.270/lib/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/Xamarin.Forms.Core.dll;/Users/Alexandre/.nuget/packages/Xamarin.Forms/2.3.4.270/lib/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/Xamarin.Forms.Platform.dll;/Users/Alexandre/.nuget/packages/Xamarin.Forms/2.3.4.270/lib/portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20/Xamarin.Forms.Xaml.dll;/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks/.NETPortable/v4.5/Profile/Profile111/mscorlib.dll
     Module: GassistApp.dll
      Resource: GassistApp.App.xaml... Has XamlCompilationAttribute set to Skip and not Compile... skipped
      Resource: GassistApp.GassistAppPage.xaml... Has XamlCompilationAttribute set to Skip and not Compile... skipped
      Resource: GassistApp.Resource.Media.geisoft.png... skipped.
      Resource: GassistApp.Resource.Icons.clear-button.png... skipped.
      Resource: GassistApp.Resource.Icons.refresh-button.png... skipped.

    No compiled resources. Skipping writing assembly.
Done building project "/Users/Alexandre/Projects/GassistApp/GassistApp/GassistApp.csproj".

Build succeeded.
 0 Warning(s)
 0 Error(s)

Time Elapsed 00:00:00.1577320

---------------------- Hecho ---------------------

Compilar: 2 errores, 0 advertencias

Errors:

Error: /Users/Alexandre/Projects/GassistApp/iOS/GassistApp.iOS.csproj: Object reference not set to an instance of an object (GassistApp.iOS)
Error: /Users/Alexandre/Projects/GassistApp/Droid/GassistApp.Droid.csproj: Object reference not set to an instance of an object (GassistApp.Droid)

Thanks

Answers

  • up;

  • Felix.xFelix.x USMember ✭✭

    I'm having the same problem with Xamarin Studio for a .iOS project. It's strange that the error is directly to the .ios.csproj but does not show the line number.

    The same .csproj can be compiled by Visual Studio for Mac, btw.

  • Nor0xNor0x USMember

    up.

    for iOS and Android csproj

Sign In or Register to comment.