[{"data":1,"prerenderedAt":388},["ShallowReactive",2],{"article-unable-to-start-build-4-3-0-664-agent-when-building-ios-apps":3},{"article":4,"tags":69,"previous":84,"next":307},{"id":5,"title":6,"author":7,"body":8,"createdAt":58,"description":59,"extension":60,"img":51,"meta":61,"navigation":62,"path":63,"seo":64,"stem":65,"tags":66,"updatedAt":58,"__hash__":68},"articles\u002Farticles\u002Funable-to-start-build-4-3-0-664-agent-when-building-ios-apps.md","Unable to start Build 4.3.0.664 agent. when building iOS apps","[object Object]",{"type":9,"value":10,"toc":54},"minimark",[11,15,18,21,24,27,30],[12,13,14],"p",{},"Starting up Visual Studio 2017 RC today, opening a Xamarin Forms application and building",[12,16,17],{},"I am presented with…\n“Unable to start Build 4.3.0.664 agent. when building iOS apps”",[12,19,20],{},"Uggh, yes another build issue.  So before I can do anything I must once again work through connectivity, emulator, build errors.  Note, if you venture to go in this direction with your learning\u002Fcareer patience is a must.",[12,22,23],{},"1.) Delete this folder:\nC:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\Extensions\\Xamarin",[12,25,26],{},"2.) Delete this folder:\nC:\\Users{username}\\AppData\\Local\\Microsoft\\VisualStudio\\15.0_3bcaeaa8\n(this hash needs to correspond to the instance of VS 2017 you are using)   I am using 2017 RC.4+26206.0 right now by the way.",[12,28,29],{},"References:",[12,31,32,36,40,41],{},[33,34],"a",{"title":35,"href":35},"https:\u002F\u002Fbugzilla.xamarin.com\u002Fshow_bug.cgi?id=52320",[33,37,35],{"href":35,"rel":38},[39],"nofollow"," ",[33,42,45],{"style":43,"href":44},"display: none","\u002Farticles\u002Fimages\u002Fopen-live-writer-f3509fbbd236_cabe-xambear_2.png",[46,47],"img",{"title":48,"style":49,"border":50,"alt":48,"src":51,"width":52,"height":53},"xambear","border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px",0,"\u002Farticles\u002Fimages\u002Fopen-live-writer-f3509fbbd236_cabe-xambear_thumb.png",238,240,{"title":55,"searchDepth":56,"depth":56,"links":57},"",2,[],"2017-02-11T07:30:20.2700000-05:00",null,"md",{},true,"\u002Farticles\u002Funable-to-start-build-4-3-0-664-agent-when-building-ios-apps",{"title":6,"description":59},"articles\u002Funable-to-start-build-4-3-0-664-agent-when-building-ios-apps",[67],"xamarin","Bvk7DkjOIcwpBI7iCzu8qpkqzDHOQEEgIXovxsIBVhQ",[70],{"id":71,"title":72,"body":73,"description":77,"extension":60,"img":78,"meta":79,"name":67,"navigation":62,"path":80,"seo":81,"stem":82,"__hash__":83},"tags\u002Ftags\u002Fxamarin.md","Xamarin",{"type":9,"value":74,"toc":75},[],{"title":55,"searchDepth":56,"depth":56,"links":76},[],"Xamarin is an open-source platform for building modern and performant applications for iOS, Android, and Windows with . NET. Xamarin is an abstraction layer that manages communication of shared code with underlying platform code.","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fxamarin",{"description":77},"tags\u002Fxamarin","deVB66I7cJMtWvqybFh5POf9LBCBwHNe-5ZGMOzV5G4",{"id":85,"title":86,"author":7,"body":87,"createdAt":299,"description":300,"extension":60,"img":101,"meta":301,"navigation":62,"path":302,"seo":303,"stem":304,"tags":305,"updatedAt":299,"__hash__":306},"articles\u002Farticles\u002Fthe-type-object-is-defined-in-an-assembly-that-is-not-referenced-you-must-add-a-reference-to-assembly-mscorlib-version-2-0-5-0.md","The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0",{"type":9,"value":88,"toc":297},[89,92,104,240,243,246,293],[12,90,91],{},"Another day, another issue while building a Xamarin project. In this case, I was building a project from Xamarin and working through some logic. When building the Android project I was presented with the following build errors. I am getting use to different errors at the most unexpected times. This issue was not unlike others that I have come up against with my cross-device mobile development efforts. The good news, after much hunting and packing I found the solution. See below.",[12,93,94],{},[33,95,97],{"href":96},"\u002Farticles\u002Fimages\u002Fopen-live-writer-6b25ff33673e_d99f-image_5.png",[46,98],{"title":99,"style":100,"border":50,"alt":99,"src":101,"width":102,"height":103},"image","border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px","\u002Farticles\u002Fimages\u002Fopen-live-writer-6b25ff33673e_d99f-image_thumb_1.png",657,458,[105,106,110],"pre",{"className":107,"code":108,"language":109,"meta":55,"style":55},"language-html shiki shiki-themes github-light github-dark","Severity Code Description Project File Line Suppression State\nError CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral,\n\nPublicKeyToken=7cec85d7bea7798e'. GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 ActiveError CS0234 The type or namespace name 'TargetFrameworkAttributeAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) GreatQuotes.Android\n\nC:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0234 The type or namespace name 'TargetFrameworkAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) \nGreatQuotes.Android C:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0518 Predefined type 'System.String' is not defined or imported GreatQuotes.Android C:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0246 The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?) GreatQuotes.Android\n\nC:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0518 Predefined type 'System.String' is not defined or imported GreatQuotes.Android C:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0518 Predefined type 'System.Object' \nis not defined or imported \nGreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 Active\nError CS0518 Predefined type 'System.Void' is not defined or imported GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 ActiveError CS0012 The type 'Object' is defined in an assembly that is not referenced. \n\nYou must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 Active\n\nError CS0246 The type or namespace name 'Icon' could not be found (are you missing a using directive or an assembly reference?) GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 ActiveError CS0518 Predefined type 'System.Object' is not defined or imported GreatQuotes.Android \n\nC:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 Active\nError CS0518 Predefined type 'System.String' is not defined or imported GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 \n\nResources\\Start\\GreatQuotes.Android\\App.cs 9 ActiveError CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.\nGreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 Active  \n","html",[111,112,113,122,127,133,139,144,150,156,161,167,173,179,185,190,196,201,207,212,218,224,229,235],"code",{"__ignoreMap":55},[114,115,118],"span",{"class":116,"line":117},"line",1,[114,119,121],{"class":120},"sVt8B","Severity Code Description Project File Line Suppression State\n",[114,123,124],{"class":116,"line":56},[114,125,126],{"class":120},"Error CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral,\n",[114,128,130],{"class":116,"line":129},3,[114,131,132],{"emptyLinePlaceholder":62},"\n",[114,134,136],{"class":116,"line":135},4,[114,137,138],{"class":120},"PublicKeyToken=7cec85d7bea7798e'. GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 ActiveError CS0234 The type or namespace name 'TargetFrameworkAttributeAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) GreatQuotes.Android\n",[114,140,142],{"class":116,"line":141},5,[114,143,132],{"emptyLinePlaceholder":62},[114,145,147],{"class":116,"line":146},6,[114,148,149],{"class":120},"C:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0234 The type or namespace name 'TargetFrameworkAttribute' does not exist in the namespace 'System.Runtime.Versioning' (are you missing an assembly reference?) \n",[114,151,153],{"class":116,"line":152},7,[114,154,155],{"class":120},"GreatQuotes.Android C:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0518 Predefined type 'System.String' is not defined or imported GreatQuotes.Android C:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0246 The type or namespace name 'FrameworkDisplayName' could not be found (are you missing a using directive or an assembly reference?) GreatQuotes.Android\n",[114,157,159],{"class":116,"line":158},8,[114,160,132],{"emptyLinePlaceholder":62},[114,162,164],{"class":116,"line":163},9,[114,165,166],{"class":120},"C:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0518 Predefined type 'System.String' is not defined or imported GreatQuotes.Android C:\\Users\\dyardy\\AppData\\Local\\Temp\\MonoAndroid,Version=v7.1.AssemblyAttributes.cs 4 ActiveError CS0518 Predefined type 'System.Object' \n",[114,168,170],{"class":116,"line":169},10,[114,171,172],{"class":120},"is not defined or imported \n",[114,174,176],{"class":116,"line":175},11,[114,177,178],{"class":120},"GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 Active\n",[114,180,182],{"class":116,"line":181},12,[114,183,184],{"class":120},"Error CS0518 Predefined type 'System.Void' is not defined or imported GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 ActiveError CS0012 The type 'Object' is defined in an assembly that is not referenced. \n",[114,186,188],{"class":116,"line":187},13,[114,189,132],{"emptyLinePlaceholder":62},[114,191,193],{"class":116,"line":192},14,[114,194,195],{"class":120},"You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 Active\n",[114,197,199],{"class":116,"line":198},15,[114,200,132],{"emptyLinePlaceholder":62},[114,202,204],{"class":116,"line":203},16,[114,205,206],{"class":120},"Error CS0246 The type or namespace name 'Icon' could not be found (are you missing a using directive or an assembly reference?) GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 ActiveError CS0518 Predefined type 'System.Object' is not defined or imported GreatQuotes.Android \n",[114,208,210],{"class":116,"line":209},17,[114,211,132],{"emptyLinePlaceholder":62},[114,213,215],{"class":116,"line":214},18,[114,216,217],{"class":120},"C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 Resources\\Start\\GreatQuotes.Android\\App.cs 9 Active\n",[114,219,221],{"class":116,"line":220},19,[114,222,223],{"class":120},"Error CS0518 Predefined type 'System.String' is not defined or imported GreatQuotes.Android C:\\Xamarin\\10a_xam300\\Lab Materials\\Part 01 \n",[114,225,227],{"class":116,"line":226},20,[114,228,132],{"emptyLinePlaceholder":62},[114,230,232],{"class":116,"line":231},21,[114,233,234],{"class":120},"Resources\\Start\\GreatQuotes.Android\\App.cs 9 ActiveError CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.\n",[114,236,238],{"class":116,"line":237},22,[114,239,178],{"class":120},[12,241,242],{},"The solution (to make a very long story short) was to unload the project from Visual Studio. Open the csproj and add the following reference (in bold). I initially was comparing some of my working Android projects with this one that just would not build.",[12,244,245],{},"I noticed the reference to mscorlib. I tried to add a reference to this dll directly through ‘Add Reference’ but I got the following error \"mscorlib.dll\" component is already automatically referenced. The build system should add this reference for you.  Since I could not add through the VS.NET interface, i chose to add via csproj file. After reloading the project and rebuilding the reference to mscorlib was visible in the list of references and finally my project built fine.",[105,247,251],{"className":248,"code":249,"language":250,"meta":55,"style":55},"language-xml shiki shiki-themes github-light github-dark","\u003CItemGroup> \n    \u003CReference Include=\"Mono.Android\" \u002F>\n    \u003CReference Include=\"mscorlib\" \u002F>\n    \u003CReference Include=\"System\" \u002F> \n    \u003CReference Include=\"System.Xml\" \u002F> \n    \u003CReference Include=\"System.Core\" \u002F> \n    \u003CReference Include=\"System.Xml.Linq\" \u002F>\n\u003C\u002FItemGroup>\n","xml",[111,252,253,258,263,268,273,278,283,288],{"__ignoreMap":55},[114,254,255],{"class":116,"line":117},[114,256,257],{},"\u003CItemGroup> \n",[114,259,260],{"class":116,"line":56},[114,261,262],{},"    \u003CReference Include=\"Mono.Android\" \u002F>\n",[114,264,265],{"class":116,"line":129},[114,266,267],{},"    \u003CReference Include=\"mscorlib\" \u002F>\n",[114,269,270],{"class":116,"line":135},[114,271,272],{},"    \u003CReference Include=\"System\" \u002F> \n",[114,274,275],{"class":116,"line":141},[114,276,277],{},"    \u003CReference Include=\"System.Xml\" \u002F> \n",[114,279,280],{"class":116,"line":146},[114,281,282],{},"    \u003CReference Include=\"System.Core\" \u002F> \n",[114,284,285],{"class":116,"line":152},[114,286,287],{},"    \u003CReference Include=\"System.Xml.Linq\" \u002F>\n",[114,289,290],{"class":116,"line":158},[114,291,292],{},"\u003C\u002FItemGroup>\n",[294,295,296],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":55,"searchDepth":56,"depth":56,"links":298},[],"2017-02-12T08:38:11.7100000-05:00","This issue was not unlike others that I have come up against with my cross-device mobile development efforts.",{},"\u002Farticles\u002Fthe-type-object-is-defined-in-an-assembly-that-is-not-referenced-you-must-add-a-reference-to-assembly-mscorlib-version-2-0-5-0",{"title":86,"description":300},"articles\u002Fthe-type-object-is-defined-in-an-assembly-that-is-not-referenced-you-must-add-a-reference-to-assembly-mscorlib-version-2-0-5-0",[67],"RHG4SC8nF4gbrv4fVY5o1UgRK9wxXwly9sZS5lhbuJA",{"id":308,"title":309,"author":7,"body":310,"createdAt":381,"description":59,"extension":60,"img":319,"meta":382,"navigation":62,"path":383,"seo":384,"stem":385,"tags":386,"updatedAt":381,"__hash__":387},"articles\u002Farticles\u002Fxamarin-unable-to-debug-android-application.md","Xamarin Unable to Debug Android Application",{"type":9,"value":311,"toc":379},[312,320,327,330,340,343,353,361,363,371],[12,313,314],{},[33,315,317],{"style":43,"href":316},"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-xambear_2.png",[46,318],{"title":48,"style":49,"border":50,"alt":48,"src":319,"width":52,"height":53},"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-xambear_thumb.png",[12,321,322,323],{},"Using Visual Studio 2017 and opening small Xamarin forms application, building then debug-run I get the following error in the output window. This occurred while using the Visual Studio Android emulator.\n",[324,325,326],"em",{},"“Android application is debugging.\nCould not connect to the debugger.”",[12,328,329],{},"The solution was to open Hyper-V Manager, find the emulator (ensure that the emulator is shutdown), Settings – Processor then select ‘Migrate to a physical computer…’",[12,331,332],{},[33,333,335],{"href":334},"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-image_2.png",[46,336],{"title":99,"style":49,"border":50,"alt":99,"src":337,"width":338,"height":339},"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-image_thumb.png",326,310,[12,341,342],{},"While this seemed like the complete solution it wasn’t. One of my projects I could debug while the other one I could not. I compared the two csproj files and found this difference.",[12,344,345],{},[33,346,348],{"href":347},"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-image_4.png",[46,349],{"title":99,"style":100,"border":50,"alt":99,"src":350,"width":351,"height":352},"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-image_thumb_1.png",594,47,[12,354,355,356,360],{},"Once I set my project option to ",[357,358,359],"debug-symbols",{},"True"," it worked, and I could F5 Debug the solution\u002Fproject.",[12,362,29],{},[12,364,365,368],{},[33,366],{"title":367,"href":367},"https:\u002F\u002Fdeveloper.xamarin.com\u002Fguides\u002Fandroid\u002Fdeployment,_testing,_and_metrics\u002Fdebug-on-emulator\u002Fvisual-studio-android-emulator\u002F#Troubleshooting",[33,369,367],{"href":367,"rel":370},[39],[12,372,373,376],{},[33,374],{"title":375,"href":375},"http:\u002F\u002Fdotnetbyexample.blogspot.com\u002F2016\u002F02\u002Ffix-for-could-not-connect-to-debugger.html",[33,377,375],{"href":375,"rel":378},[39],{"title":55,"searchDepth":56,"depth":56,"links":380},[],"2017-02-07T02:28:10.7500000-05:00",{},"\u002Farticles\u002Fxamarin-unable-to-debug-android-application",{"title":309,"description":59},"articles\u002Fxamarin-unable-to-debug-android-application",[67],"xEMm429S_KQM-tgQHYtY0p4LQ9fk8AFAFkSktelwbHI",1781574770371]