Build issue using Jenkins "error CS0246: The type or namespace name `Xamarin' could not be found"

HjaltiHjalti ISMember

Hi there.

I'm having issues with Jenkins and was wondering if anyone here had run into it.

Xbuild doesn't seem to handle building my Xamarin.forms iOS app, giving me these warning and errors:


I followed this guide to set it up

https://developer.xamarin.com/guides/cross-platform/ci/jenkins_walkthrough/

And the xbuild shell command is;
xbuild /p:Configuration="Debug" /p:Platform="iPhone" /p:BuildIpa=true /p:IpaPackageDir="$HOME/Builds" /t:Build Macland.sln

Xamarin Studio builds the app without any issue.

Best Answers

  • HjaltiHjalti IS
    edited March 2017 Accepted Answer

    Ah, of course! I'll edit the original post.

    Your answer led me to the fix, apparently Xamarin Studio had never run the actual build on the computer. Simply locating it and running it once in Xamarin allowed Jenkins to run in fine :)

    EDIT: Apparently cant edit posts older than 4 hours. So here are the logs;

    14:27:23 Warnings:
    14:27:23 
    14:27:23 /Users/i/.jenkins/workspace/Macland/Macland.sln (Build) ->
    14:27:23 (Build target) ->
    14:27:23 /Users/i/.jenkins/workspace/Macland/Macland/Macland.csproj (default targets) ->
    14:27:23 /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
    14:27:23 
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Core' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Platform' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Xaml' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Newtonsoft.Json' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Net.Http.Extensions' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Net.Http.Primitives' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'CarouselView.FormsPlugin.Abstractions' not resolved
    14:27:23 
    14:27:23 Errors:
    14:27:23 
    14:27:23 /Users/i/.jenkins/workspace/Macland/Macland.sln (Build) ->
    14:27:23 (Build target) ->
    14:27:23 /Users/i/.jenkins/workspace/Macland/Macland/Macland.csproj (default targets) ->
    14:27:23 /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) ->
    14:27:23 
    14:27:23    App.xaml.cs(1,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    MaclandPage.xaml.cs(1,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    Properties/AssemblyInfo.cs(3,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    AboutMaclandPage.xaml.cs(2,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
    14:27:23    AboutMaclandPage.xaml.cs(5,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    ShopPage.xaml.cs(7,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
    14:27:23    ShopPage.xaml.cs(10,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    TabPage.xaml.cs(4,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    HomePage.xaml.cs(4,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    RepairPage.xaml.cs(4,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    CartPage.xaml.cs(4,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    Models/ShopList.cs(2,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    Models/About.cs(3,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    ProductPage.cs(7,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
    14:27:23    ProductPage.cs(10,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    Constants.cs(3,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    App.xaml.cs(5,29): error CS0246: The type or namespace name `Application' could not be found. Are you missing an assembly reference?
    14:27:23    MaclandPage.xaml.cs(5,37): error CS0246: The type or namespace name `CarouselPage' could not be found. Are you missing an assembly reference?
    14:27:23    AboutMaclandPage.xaml.cs(10,42): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    ShopPage.xaml.cs(15,34): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    TabPage.xaml.cs(8,33): error CS0246: The type or namespace name `TabbedPage' could not be found. Are you missing an assembly reference?
    14:27:23    HomePage.xaml.cs(8,34): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    RepairPage.xaml.cs(8,36): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    CartPage.xaml.cs(8,34): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    ProductPage.cs(15,37): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    App.xaml.cs(16,27): error CS0115: `Macland.App.OnStart()' is marked as an override but no suitable method found to override
    14:27:23    App.xaml.cs(21,27): error CS0115: `Macland.App.OnSleep()' is marked as an override but no suitable method found to override
    14:27:23    App.xaml.cs(26,27): error CS0115: `Macland.App.OnResume()' is marked as an override but no suitable method found to override
    14:27:23    AboutMaclandPage.xaml.cs(21,33): error CS0115: `Macland.AboutMaclandPage.OnAppearing()' is marked as an override but no suitable method found to override
    14:27:23    ShopPage.xaml.cs(37,33): error CS0115: `Macland.ShopPage.OnAppearing()' is marked as an override but no suitable method found to override
    14:27:23    ShopPage.xaml.cs(51,45): error CS0246: The type or namespace name `ItemTappedEventArgs' could not be found. Are you missing an assembly reference?
    14:27:23    ProductPage.cs(41,33): error CS0115: `Macland.ProductPage.OnAppearing()' is marked as an override but no suitable method found to override
    14:27:23 
    14:27:23     7 Warning(s)
    14:27:23     32 Error(s)
    

Answers

  • HjaltiHjalti ISMember
    edited March 2017 Accepted Answer

    Ah, of course! I'll edit the original post.

    Your answer led me to the fix, apparently Xamarin Studio had never run the actual build on the computer. Simply locating it and running it once in Xamarin allowed Jenkins to run in fine :)

    EDIT: Apparently cant edit posts older than 4 hours. So here are the logs;

    14:27:23 Warnings:
    14:27:23 
    14:27:23 /Users/i/.jenkins/workspace/Macland/Macland.sln (Build) ->
    14:27:23 (Build target) ->
    14:27:23 /Users/i/.jenkins/workspace/Macland/Macland/Macland.csproj (default targets) ->
    14:27:23 /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveAssemblyReferences target) ->
    14:27:23 
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Core' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Platform' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Xaml' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Newtonsoft.Json' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Net.Http.Extensions' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Net.Http.Primitives' not resolved
    14:27:23    /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'CarouselView.FormsPlugin.Abstractions' not resolved
    14:27:23 
    14:27:23 Errors:
    14:27:23 
    14:27:23 /Users/i/.jenkins/workspace/Macland/Macland.sln (Build) ->
    14:27:23 (Build target) ->
    14:27:23 /Users/i/.jenkins/workspace/Macland/Macland/Macland.csproj (default targets) ->
    14:27:23 /Library/Frameworks/Mono.framework/Versions/4.8.0/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) ->
    14:27:23 
    14:27:23    App.xaml.cs(1,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    MaclandPage.xaml.cs(1,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    Properties/AssemblyInfo.cs(3,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    AboutMaclandPage.xaml.cs(2,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
    14:27:23    AboutMaclandPage.xaml.cs(5,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    ShopPage.xaml.cs(7,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
    14:27:23    ShopPage.xaml.cs(10,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    TabPage.xaml.cs(4,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    HomePage.xaml.cs(4,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    RepairPage.xaml.cs(4,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    CartPage.xaml.cs(4,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    Models/ShopList.cs(2,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    Models/About.cs(3,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    ProductPage.cs(7,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
    14:27:23    ProductPage.cs(10,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    Constants.cs(3,7): error CS0246: The type or namespace name `Xamarin' could not be found. Are you missing an assembly reference?
    14:27:23    App.xaml.cs(5,29): error CS0246: The type or namespace name `Application' could not be found. Are you missing an assembly reference?
    14:27:23    MaclandPage.xaml.cs(5,37): error CS0246: The type or namespace name `CarouselPage' could not be found. Are you missing an assembly reference?
    14:27:23    AboutMaclandPage.xaml.cs(10,42): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    ShopPage.xaml.cs(15,34): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    TabPage.xaml.cs(8,33): error CS0246: The type or namespace name `TabbedPage' could not be found. Are you missing an assembly reference?
    14:27:23    HomePage.xaml.cs(8,34): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    RepairPage.xaml.cs(8,36): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    CartPage.xaml.cs(8,34): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    ProductPage.cs(15,37): error CS0246: The type or namespace name `ContentPage' could not be found. Are you missing an assembly reference?
    14:27:23    App.xaml.cs(16,27): error CS0115: `Macland.App.OnStart()' is marked as an override but no suitable method found to override
    14:27:23    App.xaml.cs(21,27): error CS0115: `Macland.App.OnSleep()' is marked as an override but no suitable method found to override
    14:27:23    App.xaml.cs(26,27): error CS0115: `Macland.App.OnResume()' is marked as an override but no suitable method found to override
    14:27:23    AboutMaclandPage.xaml.cs(21,33): error CS0115: `Macland.AboutMaclandPage.OnAppearing()' is marked as an override but no suitable method found to override
    14:27:23    ShopPage.xaml.cs(37,33): error CS0115: `Macland.ShopPage.OnAppearing()' is marked as an override but no suitable method found to override
    14:27:23    ShopPage.xaml.cs(51,45): error CS0246: The type or namespace name `ItemTappedEventArgs' could not be found. Are you missing an assembly reference?
    14:27:23    ProductPage.cs(41,33): error CS0115: `Macland.ProductPage.OnAppearing()' is marked as an override but no suitable method found to override
    14:27:23 
    14:27:23     7 Warning(s)
    14:27:23     32 Error(s)
    
  • kopciakpakopciakpa ATMember

    SO, how did you fix this? Because I also have the problems which you have

  • kopciakpakopciakpa ATMember

    App.xaml.cs(1,7): error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvasA.cs(2,7): error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
    FBLogin.xaml.cs(3,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
    FBLogin.xaml.cs(4,7): error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(1,8): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(2,7): error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
    App.xaml.cs(5,32): error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)
    FBLogin.xaml.cs(8,36): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
    App.xaml.cs(19,33): error CS0115: 'App.OnStart()': no suitable method found to override
    App.xaml.cs(24,33): error CS0115: 'App.OnSleep()': no suitable method found to override
    App.xaml.cs(29,33): error CS0115: 'App.OnResume()': no suitable method found to override
    FBLogin.xaml.cs(34,56): error CS0246: The type or namespace name 'WebNavigatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(7,35): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(25,41): error CS0246: The type or namespace name 'WebNavigatingEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvasA.cs(7,28): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(50,40): error CS0246: The type or namespace name 'WebNavigatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(54,27): error CS0115: 'MonCanvas.OnAppearing()': no suitable method found to override
    MonCanvas.xaml.cs(60,33): error CS0115: 'MonCanvas.OnBackButtonPressed()': no suitable method found to override
    MonCanvasA.cs(28,41): error CS0246: The type or namespace name 'WebNavigatingEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvasA.cs(53,40): error CS0246: The type or namespace name 'WebNavigatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvasA.cs(57,27): error CS0115: 'MonCanvasA.OnAppearing()': no suitable method found to override
    MonCanvasA.cs(9,9): error CS0246: The type or namespace name 'WebView' could not be found (are you missing a using directive or an assembly reference?)
    FBLogin.xaml.cs(62,27): error CS0115: 'FBLogin.OnAppearing()': no suitable method found to override
    FacebookProfile.cs(12,10): error CS0246: The type or namespace name 'JsonPropertyAttribute' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(12,10): error CS0246: The type or namespace name 'JsonProperty' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(15,10): error CS0246: The type or namespace name 'JsonPropertyAttribute' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(15,10): error CS0246: The type or namespace name 'JsonProperty' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(17,10): error CS0246: The type or namespace name 'JsonPropertyAttribute' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(17,10): error CS0246: The type or namespace name 'JsonProperty' could not be found (are you missing a using directive or an assembly reference?)
    App.xaml.cs(8,9): error CS0246: The type or namespace name 'NavigationPage' could not be found (are you missing a using directive or an assembly reference?)
    Task "Csc" execution -- FAILED
    Done building target "CoreCompile" in project "/Users/matthias/.jenkins/workspace/Android My App WebNative/myappCanvas/myappCanvas.csproj".-- FAILED
    Done building project "/Users/matthias/.jenkins/workspace/Android My App WebNative/myappCanvas/myappCanvas.csproj".-- FAILED
    Task "MSBuild" execution -- FAILED
    Done building target "ResolveProjectReferences" in project "/Users/matthias/.jenkins/workspace/Android My App WebNative/Droid/myappCanvas.Droid.csproj".-- FAILED
    Done building project "/Users/matthias/.jenkins/workspace/Android My App WebNative/Droid/myappCanvas.Droid.csproj".-- FAILED

    Build FAILED.

    Warnings:

    /Users/matthias/.jenkins/workspace/Android My App WebNative/Droid/myappCanvas.Droid.csproj (PackageForAndroid) ->
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveProjectReferences target) ->
    /Users/matthias/.jenkins/workspace/Android My App WebNative/myappCanvas/myappCanvas.csproj (default targets) ->
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveAssemblyReferences target) ->

    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Core' not resolved
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Platform' not resolved
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Xamarin.Forms.Xaml' not resolved
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'ExifLib' not resolved
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Net.Http.Extensions' not resolved
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'System.Net.Http.Primitives' not resolved
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets:  warning : Reference 'Newtonsoft.Json' not resolved
    

    Errors:

    /Users/matthias/.jenkins/workspace/Android My App WebNative/Droid/myappCanvas.Droid.csproj (PackageForAndroid) ->
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets (ResolveProjectReferences target) ->
    /Users/matthias/.jenkins/workspace/Android My App WebNative/myappCanvas/myappCanvas.csproj (default targets) ->
    /Library/Frameworks/Mono.framework/Versions/5.0.1/lib/mono/xbuild/14.0/bin/Microsoft.CSharp.targets (CoreCompile target) ->

    App.xaml.cs(1,7): error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvasA.cs(2,7): error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
    FBLogin.xaml.cs(3,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
    FBLogin.xaml.cs(4,7): error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(1,8): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(2,7): error CS0246: The type or namespace name 'Xamarin' could not be found (are you missing a using directive or an assembly reference?)
    App.xaml.cs(5,32): error CS0246: The type or namespace name 'Application' could not be found (are you missing a using directive or an assembly reference?)
    FBLogin.xaml.cs(8,36): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
    App.xaml.cs(19,33): error CS0115: 'App.OnStart()': no suitable method found to override
    App.xaml.cs(24,33): error CS0115: 'App.OnSleep()': no suitable method found to override
    App.xaml.cs(29,33): error CS0115: 'App.OnResume()': no suitable method found to override
    FBLogin.xaml.cs(34,56): error CS0246: The type or namespace name 'WebNavigatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(7,35): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(25,41): error CS0246: The type or namespace name 'WebNavigatingEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvasA.cs(7,28): error CS0246: The type or namespace name 'ContentPage' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(50,40): error CS0246: The type or namespace name 'WebNavigatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvas.xaml.cs(54,27): error CS0115: 'MonCanvas.OnAppearing()': no suitable method found to override
    MonCanvas.xaml.cs(60,33): error CS0115: 'MonCanvas.OnBackButtonPressed()': no suitable method found to override
    MonCanvasA.cs(28,41): error CS0246: The type or namespace name 'WebNavigatingEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvasA.cs(53,40): error CS0246: The type or namespace name 'WebNavigatedEventArgs' could not be found (are you missing a using directive or an assembly reference?)
    MonCanvasA.cs(57,27): error CS0115: 'MonCanvasA.OnAppearing()': no suitable method found to override
    MonCanvasA.cs(9,9): error CS0246: The type or namespace name 'WebView' could not be found (are you missing a using directive or an assembly reference?)
    FBLogin.xaml.cs(62,27): error CS0115: 'FBLogin.OnAppearing()': no suitable method found to override
    FacebookProfile.cs(12,10): error CS0246: The type or namespace name 'JsonPropertyAttribute' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(12,10): error CS0246: The type or namespace name 'JsonProperty' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(15,10): error CS0246: The type or namespace name 'JsonPropertyAttribute' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(15,10): error CS0246: The type or namespace name 'JsonProperty' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(17,10): error CS0246: The type or namespace name 'JsonPropertyAttribute' could not be found (are you missing a using directive or an assembly reference?)
    FacebookProfile.cs(17,10): error CS0246: The type or namespace name 'JsonProperty' could not be found (are you missing a using directive or an assembly reference?)
    App.xaml.cs(8,9): error CS0246: The type or namespace name 'NavigationPage' could not be found (are you missing a using directive or an assembly reference?)
    
     7 Warning(s)
     30 Error(s)
    

    Time Elapsed 00:00:02.0998010
    Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure
    Finished: FAILURE

  • kopciakpakopciakpa ATMember

    Also, i tried to go this approach from here
    https://forums.xamarin.com/discussion/90298/nuget-command-not-found

    and i also can not find nuget and mono
    but i am running jenkins on the current user where i developed
    (altough the user of jenkins is admin - but that is just the jenkins account or is it?)

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai

    @kopciakpa

    Are you sure you added the mono commands to your path as I indicated in this post?

    Make sure you are logged in to the mac as the same user that your Jenkins is logging in to the Mac with.

Sign In or Register to comment.