{"id":615,"date":"2016-11-16T13:50:26","date_gmt":"2016-11-16T13:50:26","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=33"},"modified":"2016-11-16T13:50:26","modified_gmt":"2016-11-16T13:50:26","slug":"setting-up-for-programming-in-c","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/uwp-programming-in-c\/projects-general\/installing-c-for-winiot\/setting-up-for-programming-in-c","title":{"rendered":"Setting Up For Programming in C#"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Ensure you have installed the latest Windows 10 SDK<\/h4>\n\n\n\n<p><a href=\"https:\/\/developer.microsoft.com\/en-us\/windows\/downloads\/windows-10-sdk\">https:\/\/developer.microsoft.com\/en-us\/windows\/downloads\/windows-10-sdk<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Other things to install<\/h5>\n\n\n\n<p>You will need the SDK for the version of Windows you are running on your device.  If you don&#8217;t have it when you build you will get and error messaage such as: Error Could not find SDK &#8220;WindowsIoT, Version=10.0.17134.0&#8221;<\/p>\n\n\n\n<p>Visual Studio &gt; Menu &gt; Tools &gt; Get tools and features &gt; Individual components<\/p>\n\n\n\n<p>SDKs, libraries, and frameworks:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Windows 10 SDK (#.#.#.#) <\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Configure The Windows IoT Core device<\/h4>\n\n\n\n<p>To be able to deploy applications from Visual Studio the Visual Studio Remote Debugger must be running on your device.&nbsp; Use <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/iot-core\/downloads\">Windows 10 IoT Core Dashboard<\/a> &gt; Open device portal or open a Web Browser on your PC and point it to http:\/\/&lt;device name\/IP address&gt;:8080<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Username: Administrator<\/li><li>Passsword: the password you set when you created the device<\/li><\/ul>\n\n\n\n<p>Debug &gt;&nbsp;Debug settings &gt; click the Start button under Start Visual Studio Remote Debugger.<\/p>\n\n\n\n<p>If you get an error message about needing to deploy first, now try to deploy and run your project from Visual Studio (see <a href=\"https:\/\/ibex.tech\/windows-iot\/windows-iot\/uwp-programming-in-c\/projects-general\/running-the-application\">here<\/a>) before returning here and pressing start again.  <\/p>\n\n\n\n<p>Now do a reboot of the device (we found this was needed or the deploy would keep failing).<\/p>\n\n\n\n<p>The next deploy and run should then succeed.<\/p>\n\n\n\n<p>Note: It is possible for the Visual Studio Remote Debugger to time out after long periods of inactivity. If Visual Studio cannot connect to your Windows IoT Core device, try rebooting the device.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Troubleshooting<\/h4>\n\n\n\n<p>Using the command line \/ powershell you can run this to list all the running processes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tlist<\/code><\/pre>\n\n\n\n<p>There should be two instances of msvsmon.exe running on the device to confirm that the visual studio debugger is currently running.<\/p>\n\n\n\n<p>(If you have problems there are other fixes for build deploy run not working here:&nbsp;<a href=\"http:\/\/stackoverflow.com\/questions\/2646858\/visual-studio-2010-isnt-building-before-a-run-when-there-are-code-changes\">http:\/\/stackoverflow.com\/questions\/2646858\/visual-studio-2010-isnt-building-before-a-run-when-there-are-code-changes<\/a> )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ensure you have installed the latest Windows 10 SDK https:\/\/developer.microsoft.com\/en-us\/windows\/downloads\/windows-10-sdk Other things to install You will need the SDK for the version of Windows you are running on your device. If you don&#8217;t have it when you build you will get and error messaage such as: Error Could not find SDK &#8220;WindowsIoT, Version=10.0.17134.0&#8221; Visual Studio [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[65],"tags":[],"class_list":["post-615","post","type-post","status-publish","format-standard","hentry","category-installing-c-for-winiot"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=615"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/615\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}