microsoft / azure-pipelines-tasks

Tasks for Azure Pipelines
https://aka.ms/tfbuild
MIT License
3.5k stars 2.61k forks source link

Xamarin.iOS msbuild fails #5075

Closed apwillies closed 7 years ago

apwillies commented 7 years ago

We have been unsuccessful so far in getting this task to work in our CI process. We are using this code installed onto our TFS server on prem. The build server is a Mac running VS for Mac, all updates applied. The Build definition has the Build Tool set to "MS Build (Visual Studio for Mac)". At the end of the process, the build fails with this error:

Xamarin.iOS task failed with error Error: /Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild failed with return code: 1. For guidance on setting up the build definition, see https://go.microsoft.com/fwlink/?LinkId=760847.

The first error that we get is this:

The type or namespace name 'AssemblyCompanyAttribute' could not be found (are you missing a using directive or an assembly reference?)

The same error is reported for all base .NET objects, including System.Object.

Our error is similar to the errors reported in these two issues, https://github.com/Microsoft/vsts-tasks/issues/3974 and https://github.com/Microsoft/vsts-tasks/issues/4425. We updated to the latest version of the code, but the problem persists. What can we do?

apwillies commented 7 years ago

@madhurig We finally found a solution to this problem. Here's a post we found https://stackoverflow.com/questions/42737784/visual-studio-2017-build-agent-fails-to-build-with-error-cs0400. Issue was that the version of Nuget.exe on the build server was out-of-date. The post explains it this way:

Because the project file was in VS 2017 format, nuget.exe was unable to find any referenced packages, so was completing successfully without actually pulling anything in.

The solution is to update Nuget: nuget update -Self on the build server.

I believe this issue can be marked as resolved - is not an issue with the task, but an issue with configuration on the machine.

DarshanS3792 commented 6 years ago

Hey guys @madhurig @apwillies

I am trying to build my Android app on App Center, but the build fails everytime. Build works fine on local machine but it fails only on App Center. Please help ! BTW if i need to update nuget on App Center, how do i do that. Steps please !

I am using VS 2017 version 15.7.3 and Nuget package manager version on VS is 4.6.0

Below is the log.

git-lfs/2.4.2 (GitHub; darwin amd64; go 1.10.2)

[command]git init "/Users/vsts/agent/2.134.2/work/1/s"

Initialized empty Git repository in /Users/vsts/agent/2.134.2/work/1/s/.git/

[command]git remote add origin https://darshancanarys.visualstudio.com/***/_git/***

[command]git config gc.auto 0

[command]git config --get-all http.https://darshancanarys.visualstudio.com/***/_git/***.extraheader

[command]git config --get-all http.proxy

[command]git remote set-url origin https://***:***@darshancanarys.visualstudio.com/***/_git/***

[command]git remote set-url --push origin https://***:***@darshancanarys.visualstudio.com/***/_git/***

[command]git lfs install --local

Updated git hooks. Git LFS initialized.

[command]git config remote.origin.lfsurl https://***:***@darshancanarys.visualstudio.com/***/_git/***.git/info/lfs

[command]git config remote.origin.lfspushurl https://***:***@darshancanarys.visualstudio.com/***/_git/***.git/info/lfs

[command]git fetch --tags --prune --progress --no-recurse-submodules origin

remote: remote: vSTs
remote: vSTSVSTSv
remote: vSTSVSTSVST
remote: VSTS vSTSVSTSVSTSV
remote: VSTSVS vSTSVSTSV STSVS
remote: VSTSVSTSvsTSVSTSVS TSVST
remote: VS tSVSTSVSTSv STSVS
remote: VS tSVSTSVST SVSTS
remote: VS tSVSTSVSTSVSts VSTSV
remote: VSTSVST SVSTSVSTs VSTSV
remote: VSTSv STSVSTSVSTSVS
remote: VSTSVSTSVST
remote: VSTSVSTs
remote: VSTs (TM)
remote: remote: Microsoft (R) Visual Studio (R) Team Services
remote: remote: remote: Found 160 objects to send. (6 ms)
Receiving objects: 100% (160/160), 2.11 MiB | 884.00 KiB/s, done. Resolving deltas: 100% (47/47), done. From https://darshancanarys.visualstudio.com/***/_git/***

NuGet Config files used: /Users/vsts/.config/NuGet/NuGet.Config

Feeds used: /Users/vsts/.nuget/packages/ https://api.nuget.org/v3/index.json

Installed: 92 package(s) to packages.config projects

[section]Finishing: Restore Nuget

[section]Starting: Build Xamarin.Android project

============================================================================== Task : Xamarin.Android Description : Build an Android app with Xamarin Version : 1.134.0 Author : Microsoft Corporation Help : More Information

[command]/Library/Frameworks/Mono.framework/Versions/5_4_0/bin/msbuild /version /nologo [command]/Library/Frameworks/Mono.framework/Versions/5_4_0/bin/msbuild /Users/vsts/agent/2.134.2/work/1/s/Droid/***.Droid.csproj /t:PackageForAndroid /p:Configuration=Release Microsoft (R) Build Engine version 15.4.0.0 (master/f296e67b Thu Sep 21 19:38:16 EDT 2017) for Mono Copyright (C) Microsoft Corporation. All rights reserved.

Build started 6/7/2018 1:45:35 PM. Project "/Users/vsts/agent/2.134.2/work/1/s/Droid/.Droid.csproj" on node 1 (PackageForAndroid target(s)). _CreatePropertiesCache: Creating directory "obj/Release/". _SetLatestTargetFrameworkVersion: Found Android SDK. API levels: 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 Found Java SDK version 1.8.0. _ValidateAndroidPackageProperties: PackageName: com.microsoft. PrepareForBuild: Creating directory "bin/Release/". Project "/Users/vsts/agent/2.134.2/work/1/s/Droid/.Droid.csproj" (1) is building "/Users/vsts/agent/2.134.2/work/1/s//.csproj" (2:2) on node 1 (default targets). PrepareForBuild: Creating directory "bin/Release/netstandard2.0/". Creating directory "obj/Release/netstandard2.0/". /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(1783,5): warning : The referenced project '../../.Common/.Common.csproj' does not exist. [/Users/vsts/agent/2.134.2/work/1/s//*.csproj] _HandlePackageFileConflicts: Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Collections.NonGeneric.dll' and 'Reference:/Users/vsts/.nuget/packages/system.collections.nongeneric/4.3.0/ref/netstandard1.3/System.Collections.NonGeneric.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Collections.NonGeneric.dll' because AssemblyVersion '4.0.3.0' is greater than '4.0.1.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.ComponentModel.dll' and 'Reference:/Users/vsts/.nuget/packages/system.componentmodel/4.3.0/ref/netstandard1.0/System.ComponentModel.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.ComponentModel.dll' because AssemblyVersion '4.0.1.0' is greater than '4.0.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.ComponentModel.Primitives.dll' and 'Reference:/Users/vsts/.nuget/packages/system.componentmodel.primitives/4.3.0/ref/netstandard1.0/System.ComponentModel.Primitives.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.ComponentModel.Primitives.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll' and 'Reference:/Users/vsts/.nuget/packages/system.componentmodel.typeconverter/4.3.0/ref/netstandard1.5/System.ComponentModel.TypeConverter.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.ComponentModel.TypeConverter.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Dynamic.Runtime.dll' and 'Reference:/Users/vsts/.nuget/packages/system.dynamic.runtime/4.3.0/ref/netstandard1.3/System.Dynamic.Runtime.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Dynamic.Runtime.dll' because AssemblyVersion '4.0.11.0' is greater than '4.0.10.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Globalization.dll' and 'Reference:/Users/vsts/.nuget/packages/system.globalization/4.3.0/ref/netstandard1.3/System.Globalization.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Globalization.dll' because AssemblyVersion '4.0.11.0' is greater than '4.0.10.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.IO.dll' and 'Reference:/Users/vsts/.nuget/packages/system.io/4.3.0/ref/netstandard1.5/System.IO.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.IO.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Linq.Expressions.dll' and 'Reference:/Users/vsts/.nuget/packages/system.linq.expressions/4.3.0/ref/netstandard1.6/System.Linq.Expressions.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Linq.Expressions.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.ObjectModel.dll' and 'Reference:/Users/vsts/.nuget/packages/system.objectmodel/4.3.0/ref/netstandard1.3/System.ObjectModel.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.ObjectModel.dll' because AssemblyVersion '4.0.11.0' is greater than '4.0.10.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Reflection.dll' and 'Reference:/Users/vsts/.nuget/packages/system.reflection/4.3.0/ref/netstandard1.5/System.Reflection.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Reflection.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Reflection.Primitives.dll' and 'Reference:/Users/vsts/.nuget/packages/system.reflection.primitives/4.3.0/ref/netstandard1.0/System.Reflection.Primitives.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Reflection.Primitives.dll' because AssemblyVersion '4.0.1.0' is greater than '4.0.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Runtime.dll' and 'Reference:/Users/vsts/.nuget/packages/system.runtime/4.3.0/ref/netstandard1.5/System.Runtime.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Runtime.dll' because AssemblyVersion '4.1.2.0' is greater than '4.1.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll' and 'Reference:/Users/vsts/.nuget/packages/system.runtime.serialization.formatters/4.3.0/ref/netstandard1.3/System.Runtime.Serialization.Formatters.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Runtime.Serialization.Formatters.dll' because AssemblyVersion '4.0.2.0' is greater than '4.0.1.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll' and 'Reference:/Users/vsts/.nuget/packages/system.runtime.serialization.primitives/4.3.0/ref/netstandard1.3/System.Runtime.Serialization.Primitives.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Runtime.Serialization.Primitives.dll' because AssemblyVersion '4.1.3.0' is greater than '4.1.1.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Text.Encoding.dll' and 'Reference:/Users/vsts/.nuget/packages/system.text.encoding/4.3.0/ref/netstandard1.3/System.Text.Encoding.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Text.Encoding.dll' because AssemblyVersion '4.0.11.0' is greater than '4.0.10.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Threading.Tasks.dll' and 'Reference:/Users/vsts/.nuget/packages/system.threading.tasks/4.3.0/ref/netstandard1.3/System.Threading.Tasks.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Threading.Tasks.dll' because AssemblyVersion '4.0.11.0' is greater than '4.0.10.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Xml.ReaderWriter.dll' and 'Reference:/Users/vsts/.nuget/packages/system.xml.readerwriter/4.3.0/ref/netstandard1.3/System.Xml.ReaderWriter.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Xml.ReaderWriter.dll' because AssemblyVersion '4.1.1.0' is greater than '4.1.0.0'. Encountered conflict between 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Xml.XmlDocument.dll' and 'Reference:/Users/vsts/.nuget/packages/system.xml.xmldocument/4.3.0/ref/netstandard1.3/System.Xml.XmlDocument.dll'. Choosing 'Reference:/usr/local/share/dotnet/sdk/NuGetFallbackFolder/netstandard.library/2.0.0/build/netstandard2.0/ref/System.Xml.XmlDocument.dll' because AssemblyVersion '4.0.3.0' is greater than '4.0.1.0'. _CoreXamlG: Source: App.xaml Language: C# AssemblyName: * OutputFile obj/Release/netstandard2.0/.App.xaml.g.cs _CoreXamlG: Source: Pages/BagDetailsPage.xaml Language: C# AssemblyName: OutputFile obj/Release/netstandard2.0/.Pages.BagDetailsPage.xaml.g.cs _CoreXamlG: Source: Pages/FlightDetailsPage.xaml Language: C# AssemblyName: OutputFile obj/Release/netstandard2.0/.Pages.FlightDetailsPage.xaml.g.cs _CoreXamlG: Source: Pages/MainPage.xaml Language: C# AssemblyName: OutputFile obj/Release/netstandard2.0/.Pages.MainPage.xaml.g.cs _CoreXamlG: Source: Views/NavigationBar.xaml Language: C# AssemblyName: OutputFile obj/Release/netstandard2.0/.Views.NavigationBar.xaml.g.cs CoreCompile: /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/4.5/csc.exe /noconfig /unsafe- /checked- /nowarn:1701,1702,1705,1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:TRACE;RELEASE;NETSTANDARD2_0 /reference:/Users/vsts/.nuget/packages/autofac/4.6.2/lib/netstandard1.1/Autofac.dll /reference:/Users/vsts/.nuget/packages/microcharts.forms/0.7.1/lib/netstandard1.4/Microcharts.Forms.dll /reference:/Users/vsts/.nuget/packages/microsoft.appcenter.analytics/1.6.1/lib/netstandard1.0/Microsoft.AppCenter.Analytics.dll /reference:/Users/vsts/.nuget/packages/microsoft.appcenter.crashes/1.6.1/lib/netstandard1.0/Microsoft.AppCenter.Crashes.dll /reference:/Users/vsts/.nuget/packages/microsoft.appcenter.distribute/1.6.1/lib/netstandard1.0/Microsoft.AppCenter.Distribute.dll /reference:/Users/vsts/.nuget/packages/microsoft.appcenter/1.6.1/lib/netstandard1.0/Microsoft.AppCenter.dll /reference:/Users/vsts/.nuget/packages/microsoft.csharp/4.3.0/ref/netstandard1.0/Microsoft.CSharp.dll /reference:/usr/local/share/dotne... Pages/BagDetailsPage.xaml.cs(6,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Pages/FlightDetailsPage.xaml.cs(6,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Services/FlightService.cs(11,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/BagDetailsViewModel.cs(11,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/FlightDetailsViewModel.cs(11,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/MainViewModel.cs(15,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Services/FlightService.cs(29,32): error CS0246: The type or namespace name 'Flight' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Services/FlightService.cs(61,17): error CS0246: The type or namespace name 'Flight' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Services/FlightService.cs(81,32): error CS0246: The type or namespace name 'BaggageItem' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/BagDetailsViewModel.cs(112,20): error CS0246: The type or namespace name 'BaggageItem' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/FlightDetailsViewModel.cs(328,37): error CS0246: The type or namespace name 'BaggageItem' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/FlightDetailsViewModel.cs(422,20): error CS0246: The type or namespace name 'Flight' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/MainViewModel.cs(404,21): error CS0246: The type or namespace name 'Flight' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Done Building Project "/Users/vsts/agent/2.134.2/work/1/s//.csproj" (default targets) -- FAILED. Done Building Project "/Users/vsts/agent/2.134.2/work/1/s/Droid/.Droid.csproj" (PackageForAndroid target(s)) -- FAILED.

Build FAILED.

"/Users/vsts/agent/2.134.2/work/1/s/Droid/.Droid.csproj" (PackageForAndroid target) (1) -> "/Users/vsts/agent/2.134.2/work/1/s//.csproj" (default target) (2:2) -> (ResolveProjectReferences target) -> /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(1783,5): warning : The referenced project '../../.Common/.Common.csproj' does not exist. [/Users/vsts/agent/2.134.2/work/1/s//***.csproj]

"/Users/vsts/agent/2.134.2/work/1/s/Droid/.Droid.csproj" (PackageForAndroid target) (1) -> "/Users/vsts/agent/2.134.2/work/1/s//.csproj" (default target) (2:2) -> (CoreCompile target) -> Pages/BagDetailsPage.xaml.cs(6,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Pages/FlightDetailsPage.xaml.cs(6,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Services/FlightService.cs(11,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/BagDetailsViewModel.cs(11,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/FlightDetailsViewModel.cs(11,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/MainViewModel.cs(15,22): error CS0234: The type or namespace name 'Common' does not exist in the namespace '' (are you missing an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Services/FlightService.cs(29,32): error CS0246: The type or namespace name 'Flight' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Services/FlightService.cs(61,17): error CS0246: The type or namespace name 'Flight' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] Services/FlightService.cs(81,32): error CS0246: The type or namespace name 'BaggageItem' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/BagDetailsViewModel.cs(112,20): error CS0246: The type or namespace name 'BaggageItem' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/FlightDetailsViewModel.cs(328,37): error CS0246: The type or namespace name 'BaggageItem' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/FlightDetailsViewModel.cs(422,20): error CS0246: The type or namespace name 'Flight' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//.csproj] ViewModels/MainViewModel.cs(404,21): error CS0246: The type or namespace name 'Flight' could not be found (are you missing a using directive or an assembly reference?) [/Users/vsts/agent/2.134.2/work/1/s//***.csproj]

1 Warning(s)
13 Error(s)

Time Elapsed 00:00:06.36

[error]Error: /Library/Frameworks/Mono.framework/Versions/5_4_0/bin/msbuild failed with return code: 1

See https://go.microsoft.com/fwlink/?LinkId=760847.

[section]Finishing: Build Xamarin.Android project

[section]Starting: Post Job Cleanup

Cleaning any cached credential from repository: *** (Git)

[command]git remote set-url origin https://darshancanarys.visualstudio.com/***/_git/***

[command]git remote set-url --push origin https://darshancanarys.visualstudio.com/***/_git/***

[section]Finishing: Post Job Cleanup

[section]Finishing: Job

madhurig commented 6 years ago

For building in AppCenter, please post on their support channel: https://intercom.help/appcenter/build. In VSTS, there is a NuGet installer task that allows downloading and updating NuGet: https://docs.microsoft.com/en-us/vsts/pipelines/tasks/tool/nuget?view=vsts

Thanks, Madhuri

DarshanS3792 commented 6 years ago

@madhurig Thank you. Will post on their support channel.