<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Visual Studio on DVLUP</title><link>/en/tags/visual-studio/</link><description>Recent content in Visual Studio on DVLUP</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 07 Aug 2019 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/visual-studio/index.xml" rel="self" type="application/rss+xml"/><item><title>Postmortem - Child node "2" compilation error after updating to 18362 SDK</title><link>/en/blog/2019.08.07-postmortem-child-node-2-compilation-error-after-updating-to-18362-sdk/</link><pubDate>Wed, 07 Aug 2019 00:00:00 +0000</pubDate><guid>/en/blog/2019.08.07-postmortem-child-node-2-compilation-error-after-updating-to-18362-sdk/</guid><description>&lt;p&gt;[Update May 2020] This has been fixed in the 19041 SDK. Install the 19041 SDK, set your project&amp;rsquo;s Target SDK to 19041 and finally Rebuild the project/solution**.**&lt;/p&gt;&#10;&lt;p&gt;One of the more frustrating things for me is not being able to debug a problem. After updating my UWP app&amp;rsquo;s Target SDK to 18362 (Windows 10 1903), I was no longer able to compile. I got a very vague error. that I had to dig out of the msbuild logs:&lt;/p&gt;</description></item><item><title>Error XF001: Xamarin.Forms targets have been imported multiple times</title><link>/en/blog/2018.10.01-error-xf001-xamarin-forms-targets-have-been-imported-multiple-times/</link><pubDate>Mon, 01 Oct 2018 00:00:00 +0000</pubDate><guid>/en/blog/2018.10.01-error-xf001-xamarin-forms-targets-have-been-imported-multiple-times/</guid><description>&lt;p&gt;If you&amp;rsquo;re in the process of updating a Xamarin.Forms app to a more modern style project set up (NET Standard 2.0, PackageReference, etc), you may get the following error.&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Error XF001: Xamarin.Forms targets have been imported multiple times. Please check your project file and remove the duplicate import(s).&lt;/strong&gt;&lt;/p&gt;&#10;&lt;p&gt;This can be because of the move to using PackageReference for your NuGet packages and a simple fix awaits you.&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Close Visual Studio and navigate to the Solution in File Explorer&lt;/li&gt;&#10;&lt;li&gt;Delete the hidden &lt;strong&gt;.vs&lt;/strong&gt; folder&lt;/li&gt;&#10;&lt;li&gt;Go into each affected project sub folder and delete the following files; &lt;strong&gt;project_name.nuget.props&lt;/strong&gt; and &lt;strong&gt;project_name.nuget.targets&lt;/strong&gt;&lt;/li&gt;&#10;&lt;li&gt;Open the solution in Visual Studio, do a Clean and Rebuild, &lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt; &lt;/p&gt;</description></item><item><title>Invalid XAML error updating from WP7</title><link>/en/blog/2014.08.04-invalid-xaml-error-updating-from-wp7/</link><pubDate>Mon, 04 Aug 2014 00:00:00 +0000</pubDate><guid>/en/blog/2014.08.04-invalid-xaml-error-updating-from-wp7/</guid><description>&lt;p&gt;We are now seeing the beginning of the fast decline of Windows Phone 7 as it exits the market over the next several months, many of you will need to act to update your app to at least Windows Phone 8.  I did this for all of my WP7 apps and there was one error that was In just about every upgrade:&lt;/p&gt;&#10;&lt;p&gt;An error on this XAML namespace declaration:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;xmlns:controls=&amp;#34;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls&amp;#34;&#10;&#10;```Previous to Windows Phone 8, the Pivot and Panorama controls were part of a toolkit. The Windows Phone team did a solid by included these in the OS, they also added new controls like the LongListSelector to replace the toolkit&amp;#39;s ListPicker . These controls are now found in the Phone namespace.&#10;&#10;It&amp;#39;s a very frustrating problem if you&amp;#39;re seeing it for the first time. Don&amp;#39;t worry, there is a really easy fix... Delete the xmlns:controls line and use only the xmlns:phone one or edit it and remove the &amp;#34;.Contols&amp;#34; part of the assembly pointer. Here is what it will look like after doing the edit option:&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;xmlns:controls=&amp;ldquo;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone&amp;rdquo;&lt;/p&gt;</description></item><item><title>App Studio - Design-Time Sample Data</title><link>/en/blog/2014.07.02-app-studio-design-time-sample-data/</link><pubDate>Wed, 02 Jul 2014 00:00:00 +0000</pubDate><guid>/en/blog/2014.07.02-app-studio-design-time-sample-data/</guid><description>&lt;p&gt;If you&amp;rsquo;re like me, you like to fiddle and tweak things to &lt;a href="http://www.windowsphone.com/en-us/store/app/vsauce-supreme/296588cc-ca8f-4851-a1df-8e1cc5de8246" target="_blank" rel="noopener"&gt;get just the right result&lt;/a&gt;&#10;. Recently, Microsoft has really beefed up &lt;a href="http://appstudio.windows.com/" target="_blank" rel="noopener"&gt;App Studio&lt;/a&gt;&#10; apps and if you explore the downloaded source code you&amp;rsquo;ll see a new Universal app structure leveraging MVVM. Let&amp;rsquo;s start with the before and after photo (&lt;em&gt;click any image to view larger&lt;/em&gt;):&lt;/p&gt;&#10;&lt;figure&gt;&lt;img src="../../../en/blog/2014.07.02-app-studio-design-time-sample-data/before-after-blog.png"&#10;&#9;&#9;&#9;alt="Before and after changes to the items lists"&gt;&lt;figcaption&gt;&#10;&#9;&#9;&#9;&lt;p&gt;Before and after changes to the items lists&lt;/p&gt;&#10;&#9;&#9;&lt;/figcaption&gt;&#10;&lt;/figure&gt;</description></item><item><title>Creating Design-Time Sample Data</title><link>/en/blog/2014.03.19-creating-design-time-sample-data/</link><pubDate>Wed, 19 Mar 2014 00:00:00 +0000</pubDate><guid>/en/blog/2014.03.19-creating-design-time-sample-data/</guid><description>&lt;p&gt;One of the best things you can have when developing a Windows Phone app is design-time sample data. I will show you in this post how to create sample data from a class using Blend. (click images to view larger)&lt;/p&gt;&#10;&lt;p&gt;You can apply this technique to an existing class you have, but for the purposes of this tutorial I&amp;rsquo;ll be using a File &amp;gt; New Visual Studio 2013 Windows Phone project.  If you have an existing app, you can skip to Step 3, but I recommend skimming the first two.&lt;/p&gt;</description></item><item><title>Monetizing App Studio with Ads</title><link>/en/blog/2014.03.07-monetizing-app-studio-with-ads/</link><pubDate>Fri, 07 Mar 2014 00:00:00 +0000</pubDate><guid>/en/blog/2014.03.07-monetizing-app-studio-with-ads/</guid><description>&lt;p&gt;So, you&amp;rsquo;d like to put some ads in your awesome App Studio app? No problem! I thought I would write a post to show just how easy it can be. Follow these easy steps and you&amp;rsquo;ll start earning money from ads&amp;hellip;&lt;/p&gt;&#10;&lt;h3 id="ad-provider"&gt;Ad provider&lt;/h3&gt;&#10;&lt;p&gt;The ad provider is the service the AdControl in your app gets the ad to display and also where you earn the revenue. As of Windows Phone 8 there is a PubCenter AdControl built into the framework, all you need to do is get an &lt;strong&gt;ApplicationId&lt;/strong&gt; and an &lt;strong&gt;AdUnitId&lt;/strong&gt;. You get that information from &lt;a href="https://dev.windowsphone.com/en-us" target="_blank" rel="noopener"&gt;Windows Phone DevCenter&lt;/a&gt;&#10;, find out how to get your ApplicationId and AdUnitId in &lt;a href="http://blogs.windows.com/windows_phone/b/wpdev/archive/2012/10/10/tips-for-using-ads-in-your-windows-phone-apps.aspx" target="_blank" rel="noopener"&gt;this great blog post&lt;/a&gt;&#10;.&lt;/p&gt;</description></item><item><title>Registering Extensions</title><link>/en/blog/2013.01.02-registering-extensions/</link><pubDate>Wed, 02 Jan 2013 00:00:00 +0000</pubDate><guid>/en/blog/2013.01.02-registering-extensions/</guid><description>&lt;p&gt;With the entrance of Visual Studio 2012 we saw a new interface to edit your WMAppManifest file. This is a great tool to help you properly setup your app&amp;rsquo;s meta data. There is one limitation you should be aware of&amp;hellip; there is no support for extensions. What are extensions? They are the added functionality that lets you tie your app into other parts of the OS and user experience. This blog post will cover the extensions for photos, but the process is the same for other extensions.&lt;/p&gt;</description></item><item><title>From The Ground Up</title><link>/en/blog/2012.12.27-from-the-ground-up/</link><pubDate>Thu, 27 Dec 2012 00:00:00 +0000</pubDate><guid>/en/blog/2012.12.27-from-the-ground-up/</guid><description>&lt;p&gt;This post is to get you started on Windows Phone Development &amp;ldquo;from the ground up&amp;rdquo; and is targeted towards people who have &lt;em&gt;no prior experience&lt;/em&gt; with the Windows Phone SDK.  At any time you can refer to my &lt;a href="http://nokiawpdev.wordpress.com/resources/" target="_blank" rel="noopener"&gt;resources page&lt;/a&gt;&#10; for additional links to WPDev assets, tutorials and example code.&lt;/p&gt;&#10;&lt;h2 id="ok-lets-begin"&gt;Ok, let&amp;rsquo;s begin.&lt;/h2&gt;&#10;&lt;p&gt;The first thing you should know is that is does not cost a penny to develop for Windows Phone! The SDK and the tools are free. The only time you will need to pay is when you sign up for your Microsoft DevCenter account. The DevCenter is your portal to the Windows Phone Store. It is where you will submit, update and track your apps. I can help mitigate those costs for you. If you are an Android or iOS Developer and are porting an app, or a true &amp;ldquo;from the ground up&amp;rdquo; developer,  I will pay for your first year&amp;rsquo;s DevCenter fee. &lt;a href="../../../about/"&gt;Contact me&lt;/a&gt;&#10; for details.&lt;/p&gt;</description></item></channel></rss>