The Last Slice: challenge


Beat challenge 1 (download the game, change the code) here. Then beat challenge 2. First five to beat challenge 3 win $10,000 USD each. No joke.

Challenge 1

This is the first of three challenges for The Last Slice: A retro 8-bit video game that's currently impossible to beat. Clone or download the code, install the prerequisites on your Windows 10 PC, open TheLastSlice.sln file with Visual Studio and run the game. You have the source code...change it any way you'd like to beat the game.

The Prerequisites

Here's what you'll need to get started:

After installing the prerequisites find and open TheLastSlice.sln file with Visual Studio, and run the game.

The Problem

The Last Slice retro video game is fun to play, but impossible to beat as coded. You won’t beat this challenge with just gamer skills. Break out your development skills, change the code and find a way to win the game. The possibilities are endless, and you have the source what’s next is up to you.

The Reward

Solving this challenge gives you instant access to challenge 2, and you'll be one step closer to being one of five lucky participants that could win $10,000 USD.

But hurry - to be eligible to compete in the third and final challenge, you'll need to solve both this challenge and challenge 2 before midnight UTC on July 17, 2018.

Get the Most Out of iOS 11 with Visual Studio Tools for Xamarin

Join Craig Dunn explains what’s new in iOS 11 and how to take advantage of the latest updates – from drag-and-drop for iPad to machine learning and more – 100% in .NET and Visual Studio. Whether you’re building new or updating existing Xamarin.iOS apps, you’ll see how to implement new frameworks, APIs, and UI features, walk-through code samples, get expert tips and tricks, so you can start shipping iOS 11-ready apps to your users. In this webinar, you’ll:

  • Explore iOS 11 UI changes, including adapting to the iPhone X form factor
  • Dive into what .NET developers need to know about iOS 11
  • Add iOS 11 features to new and existing Xamarin apps with step-by-step examples
  • Ensure backwards compatibility with prior OS versions
  • Learn how to incorporate Azure Machine Learning tools into CoreML
  • Ask questions and receive guidance from our team of app experts

To develop for iOS 11, you'll need to have a machine that supports macOS Sierra and Xcode 9.

Download the source code of this video from GitHub.

Visual Studio 2017 is coming on March 7


Join us at 8:00 AM PST on March 7 for a two-day online event celebrating the launch of our latest version as well as 20 years of Visual Studio. Watch the live stream featuring Julia Liuson, Brian Harry, Miguel de Icaza, and Scott Hanselman as they share the newest innovations in Visual Studio, .NET, Xamarin, Azure, and more. After the keynote, Microsoft engineers will lead interactive technical demo sessions to help you get the most out of Visual Studio 2017 and the rest of our tools and platform.

On March 8, we’ll help you get productive even faster by hosting a full day of live interactive trainings. Don’t forget to click Save the Date above and sign up for email reminders!

Whether you are new to our tools or have been with us since the beginning, we’d love to hear and share your Visual Studio story. Share a photo of memorabilia or a short video clip of your story with Visual Studio on Instagram or post your story on Twitter and Facebook using #MyVSstory. Check out Julia’s launch event announcement for more details.

Microsoft delivers test builds of Visual Studio for Mac, Visual Studio 2017 for Windows

Visual Studio for Mac is not a port of Visual Studio for Windows; it's a rebranded version of Xamarin Studio integrated development environment (IDE) that will work on the Mac. (Microsoft bought mobile-tool vendor Xamarin in February 2016.) Visual Studio for Mac is available as of today as a preview for download.


Visual Studio 2017 is the official name of the product Microsoft has been calling "Visual Studio Next" and/or codename "VS '15'." As of today, a near-final Release Candidate version of that product is available to testers. The RC includes a few brand-new features, but is mostly complete at this point. Officials told me this week that the final/general availability version of Visual Studio 2017 would be out in early 2017.

Microsoft made these announcements at its Connect() 2016 developer event in New York City on November 16.

At that event, Microsoft also announced it is joining The Linux Foundation as a Platinum member, and that Google is joining the .NET Foundation's Technical Steering Committee. The .NET Foundation is the vehicle Microsoft has used to open source a number of its developer technologies, including .NET and ASP.NET implementations and components.

Visual Studio for Mac will include IntelliSense and refactoring via the Roslyn Compiler platform. It will use MSBuild and the same debugger engines for Xamarin and .NET Core apps, as well as the same designers for Xamarin.iOS and Xamarin.Android.

Visual Studio 2017 for Windows also is relying on the "Roslyn" work to rearchitect the C# and Visual Basic compilers. The coming release includes enhancements in refactorings, code generation, code analysis, navigation, testing, and debugging, officials said.


Other Connect() announcements today included a preview of a new Visual Studio Mobile Center, and general availability of both Visual Studio Team Foundation server 2017 and Azure Application Insights.


Visual Studio Mobile Center is a portal that is meant to help developers build, test, distribute, and monitor apps built in Objective-C, Swift, Java, Xamarin, and React Native for Android, iOS, and Windows devices. Documentation for the new Mobile Center is here.


Samsung also is releasing a preview of Visual Studio Tools for the Tizen operating system, which will allow developers to build apps for Tizen running on Samsung TVs, wearables, mobile, and other IoT devices.

Preserve data when deploying Xamarin.Android app

By default all your data from your previous runs is deleted when you’re deploying an Xamarin.Android app. In many cases you don’t want the data to be deleted.

Visual Studio

To preserve data go to Tools -> Options -> Xamarin -> Android Settings and check “Preserve application data/cache on device between deploys”.


Xamarin Studio

To preserve data go to Tools -> Options -> Android and check “Preserve data/cache between application deploys”.


Happy coding!

Visual Studio updates Xamarin

When you open Visual Studio 2015 and there is a pop windows to invite you to click on it for updating Xamarin and you click, nothing happends. There is a bug but clicking the update available popup was fixed in one of the recent releases. You can manually update in the Options menu under Tools.

As for the errors, I get those all the time. Support packages can often be a problem. Update to the latest XF package. Try deleting bin, obj, and the contents of packages folders and rebuild.


What’s New in Visual Studio Update 1 for .NET Managed Languages


Hold on to your hats, cowboys and cowgirls! A lot of exciting things are coming out of the .NET Managed Languages team for Visual Studio 2015 Update 1. Read on to learn more about new IDE features, interactive C#, new code analysis management, Visual F# improvements, and the new F5 experience for Roslyn open source development.


New Editor Features

Now that we have Roslyn in Visual Studio 2015, we can leverage its power to create the smartest IDE out there. The improvements we’ve made to the IDE experience in Update 1 relate chiefly to navigation and refactoring:

  • Go To Implementation. The most notable change we made with regards to navigation is the introduction of “Go To Implementation.” You can now navigate from a base class or type to its various implementations. This saves a lot of time when searching in large solutions—when using Find All References returns a long list.
  • Convert Method to Property. We added the refactoring that now allows you to press “Ctrl+.” inside a method with no arguments and convert it into a property. We’ll even notice if you have a pair of Get/Set methods and convert them into a single property. This refactoring cascades throughout your solution so you don’t have to manually fix this change elsewhere.
  • VB Go to Definition and Object Browser. After hearing feedback from many of you, we added an option to make it easy to restore the behavior where VB Go to Definition would navigate to the Object Browser. You can find this option under "Tools->Options->Text Editor->Basic->Advanced->Navigate to Object Browser for symbols defined in metadata".
  • VB Commands for Next/Previous Member Fix. Many VB customers noticed that we forgot to implement support for navigate to the next and previous method. Oops. We brought that back, and added support for C# as well. Look for it on the Edit menu.
  • Go To/Peek Definition Bug Fix. We fixed this issue where you had to change your tabs to spaces in order to Peek Definition or Go To Definition. Huzzah! (Could you tell that Roslyn’s coding style is to use spaces instead of tabs? ;))

New Features in Visual Studio 2015 RC


Visual Studio 2015 RC has major changes including an integrated suite of developer productivity tools, cloud services and extensions that enable you and your team to create great apps and games for the web, for Windows Store, for the desktop, for Android and for iOS. This article highlights some of the most important features in the Visual Studio 2015 RC IDE.

The following are the new features in Visual Studio 2015 RC.

  1. Sign In across multiple accounts

    You can work with multiple user accounts in Visual Studio by adding them as you go or through the new Account Manager. Then, you can switch among those accounts on the fly when connecting to services or accessing online resources. Visual Studio remembers the accounts you add so you can use them from any instance of Visual Studio or Blend.


    Figure 1: You can add multiple accounts in Visual Studio by clicking on Add an account link

  2. Choose your target platform(s)

    Visual Studio 2015 supports cross-platform mobile device development. You can write apps and games that target iOS, Android and Windows and share a common code base, all from within the Visual Studio IDE. You'll see all these new project types in the File, New Project dialog.

    And also support for classic desktop applications are better than ever, with many improvements to languages, libraries and tools. The following are the various platforms.

    • Cross-platform mobile apps in C# with Xamarin for Visual Studio
    • Cross-platform mobile apps in HTML/CSS/JavaScript with Apache Cordova
    • Cross-platform mobile games in C# with Unity
    • Classic desktop and Windows Store
    • Cross-platform mobile games in C# with Unity
    • Cross-platform apps and libraries for native C++
    • Web

    ASP.NET 5 is a major update to MVC, Web API and SignalR and runs on Windows, Mac and Linux. ASP.NET 5 has been designed from the ground up to provide you with a lean and composable .NET stack for building modern cloud-based apps. The Visual Studio 2015 RC tooling is more closely integrated with popular web development tools such as Bower and Grunt.
  3. Live code analysis (Light Bulbs)

    In Visual Studio 2015 RC, light bulbs display in the left margin (when using the keyboard) or a tool tip (when hovering over an error with the mouse). The light bulbs indicate in real time that the compiler (possibly using a custom rule set) has detected an issue in your code and also has a suggestion for how to fix the issue. When you see a light bulb, click on it for actionable suggestions.


    Figure 2: Live code analysis - image reference from MSDN site

  4. Design your UI

    The Blend experience for designing XAML user interfaces has been significantly enhanced. Blend has been completely redesigned to provide a more intuitive UI, more powerful XAML editing capabilities and better integration with Visual Studio.
  5. Diagnose Issue

    • Advance Breakpoints

      Breakpoints in the debugger are significantly more configurable and the UI for interacting with breakpoints is consolidated into a peek window so that you never need to leave the code editor.


      Figure 3: Breakpoint with expression condition -Image reference from MSDN site

    • Performance Tips

      Performance tips display the execution time of methods during debugging, enabling you to quickly spot bottlenecks without having to invoke the profiler.


      Figure 4: Elapsed time (Image from MSDN site)

    • Error List

      The error list now supports filtering on any column. It is also scalable enough to show a live view of errors, warnings and code analysis across your entire C# or Visual Basic solution as you type, even when a code change produces thousands of warnings. The new Error List is backward-compatible with existing usage.
    • GPU Usage Tool

      The GPU Usage Tool helps you collect and analyze GPU usage data in DirectX apps and games and troubleshoot whether performance bottlenecks are originating in the CPU or GPU.
  6. Connect To Service

    The Add Connected Service wizard also integrates with the new Account Manager to make it easy to work with multiple user accounts and subscriptions. In Visual Studio 2015 RC, support for the following services are provided out of the box (assuming that you have an account):

    • Azure Mobile Services
    • Azure Storage
    • Office 365 (mail, contacts, calendars, files, users and groups)
    • Salesforce


    Figure 5: Add Connected Service (Image from MSDN site)

  7. Synchronized Settings (Roaming Settings)

    Visual Studio 2015 improves on this experience by synchronizing more of your settings and synchronizing settings across the Visual Studio family of applications, like Professional, Enterprise, Express SKUs and Blend. Settings includes settings for some of the most commonly configured settings such as Text Editor, Key bindings, Theme and Fonts and Colors, Startup and Environment Aliases
  8. High Resolution Images and Touch Support

    The Visual Studio IDE now has true high-resolution images on denser displays (in areas like menus, context menus, tool window command bars and in some projects in Solution Explorer). And on a touch-screen in the Visual Studio code editor window, you can now use gestures such as touch and hold, pinch, tap and so on to zoom, scroll, select text and invoke context menus.
  9. Title Case Menu

    Visual Studio menus are once again title-case by default. However if you happen to like the ALL CAPS style, you can set it on start up or in the Tools > Options > General property page as in the following:


    Figure 6: Title Case Menu- Image reference from MSDN site

  10. Custom Layouts

    You can create store and roam custom window layouts. For example, you can define one preferred layout for use on your desktop machine and a different layout for use on a laptop or small screen device. Or you may prefer one layout for a UI project and another for a database project. Key bindings enable you to rapidly switch among layouts. These layouts are available on any instance of Visual Studio when you are signed in.


    Figure 7:
    Custom Layout (Image from MSDN site)

  11. Notification Hub

    The UI for the notification hub has been streamlined to make it easier to scan quickly. Additional kinds of notifications have been added, including performance issues, rendering issues and crashes and you can now tell Visual Studio to stop showing a notification.


    Figure 8: Notification Hub (image from MSDN site)

  12. Code Lens: Find what happened to your code (Enterprise and Professional editions only)

    You can review changes and other history for work items, bugs, code reviews and so on for code that's stored in Visual Studio Online (VSO) or in Team Foundation Server (TFS).

    In Visual Studio Enterprise and Visual Studio Professional, you can now:

    • Get the history for an entire code file in the Visual Studio editor.


      Figure 9:
      Code Lens (image from MSDN site)

    • See a graph that shows the people that have changed your code. This can help you find patterns in your team's changes and assess their impact.

      Figure 10: Code Lens (image from MSDN site)

    • Easily see when your code was last changed.
    • Find changes in other branches that affect your code.

Main Reference: MSDN library for image references also.

Enable your device for development

Important  Currently you cannot enable devices installed with Windows 10 Insider Preview with the System Setting Developer Mode controls as outlined in this article. This feature is not currently supported, but will be enabled in a future release of Windows 10. So you don't need to follow the steps in the future approach in this article. But you must follow the links directly below to enable your specific Windows 10 device.

Enable developer mode

If you use Visual Studio on a Windows 10 desktop and you open a solution for a Windows 8.1 or Windows 10 app, you will be prompted to enable your device with this dialog. (You also need your device to be enabled to use the designers and debug your app.)

Enable developer mode dialog that is displayed in Visual Studio

When you see this dialog, click OK. Then follow the steps below to enable your desktop from Windows 10 Insider Preview.

For Windows 10 desktop

Use gpedit.msc to set the group policies to enable your device, unless you have Windows 10 Insider Preview Home Edition. If you do have Home Edition, you need to use regedit or PowerShell commands to set the registry keys directly to enable your device.

Dn706236.wedge(en-us,WIN.10).gifUse gpedit to enable your device

  1. Open a cmd prompt with administrator privileges.
  2. Run Gpedit.msc.
  3. Go to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > App Package Deployment
  4. Edit the policies to enable the following:
    • Allow all trusted apps to install (Enables your device for sideloading apps)
    • Allows development of Windows Store apps and installing them from an integrated development environment (IDE) (Enables your device for development from Visual Studio)
  5. Reboot your machine.

Dn706236.wedge(en-us,WIN.10).gifUse regedit to enable your device

  1. Open a cmd prompt with administrator privileges.
  2. Run regedit.
  3. Set the value of this DWORD to 1: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowAllTrustedApps
  4. Set the value of this DWORD to 1: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\AllowDevelopmentWithoutDevLicense

Dn706236.wedge(en-us,WIN.10).gifUse PowerShell to enable your device

  1. Run Windows PowerShell with administrator privileges.
  2. Run the following command: PS C:\WINDOWS\system32> reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
  3. Run this command too: PS C:\WINDOWS\system32> reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowAllTrustedApps" /d "1"

Future approach using System Setting Developer Mode controls

There is a different approach for development for Windows 10 devices. A developer license is no longer required for each device that you want to use to develop, install or test your app. You just enable a device once for these tasks from the settings for the device. That's it. No more renewing your developer licenses every 30 or 90 days!

If you are still using a Windows 8.1 device to develop or test your apps with Visual Studio 2013 or Visual Studio 2015, you still need to get a developer license or register your Windows Phone.

Develop your app with Visual Studio

If you use Visual Studio on a Windows 10 device and you open a solution for a Windows 8.1 or Windows 10 app, you will be prompted to enable your device with this dialog. (You also need your device to be enabled to use the designers and debug your app.)

Enable developer mode dialog that is displayed in Visual Studio

When you see this dialog, click OK. Then follow the steps below to enable your device from Windows 10 Insider Preview.

Enable your Windows 10 devices

For Windows 10 Insider Preview, you choose what tasks you want to enable on the device. This includes any devices: Windows 10 desktops, tablets and phones. You can enable a device for development, or just sideloading.

Sideloading is installing and then running or testing an app that has not been certified by the Windows store. For example, an app that is internal to your company only. (Does the Windows store allow sideloading?)

Note  If you sideload apps, you should still only install apps from trusted sources. When you install a sideloaded app that has not been certified by the Windows store, you are agreeing that you have obtained all rights necessary to sideload these apps and that you are solely responsible for any harm that results from installing and running these apps. See this privacy statement.

Dn706236.wedge(en-us,WIN.10).gifWindows 10 Desktops/tablets

  1. On your device that you want to enable, go to Settings. Choose Update & security. Then choose For developers.

    Go to Settings, choose Update and security and then choose For developers to view your options
  2. Choose the level that you need. Developer mode allows you to sideload apps too.

Dn706236.wedge(en-us,WIN.10).gifWindows 10 Phones

  1. On your device that you want to enable, go to Settings. Choose Update & security. Then choose For developers.

    From Settings on your phone, choose Update and security

  2. Choose the level that you need. Developer mode allows you to sideload apps too.

Visual Studio 2015 RC Available Now

Microsoft announced the Release Candidate (RC) version of Visual Studio 2015. The Release Candidate version is very close to the final public release version.

Microsoft is now targeting every developer and every app by opening up its one of the best software development IDE, Visual Studi0 2015 to all for free, minus enterprise developers.

At Build, Microsoft announced a free version of Visual Studio IDE named Visual Studio Code for developers that supports development on Windows, Mac OS X, or Linux.

Visual Studio Community and Visual Studio Code, both are free.

Visual Studio Community

Visual Studio Community is a full-featured and extensible tool for developers building non-enterprise Web, Windows Desktop, and cross-platform iOS, Android, and Windows apps. This free version of the product is usually for open source projects, academic research, training, education and small professional teams.

Visual Studio Code

Visual Studio Code currently PREVIEW edition is free to build applications for any platform including Linux, Mac OSX, and Windows. Key features of Visual Studio Code include the following:

  • First-class support for building ASP.NET 5 and Node.js applications
  • A lightweight, fast, keyboard-centric tool
  • Support for all programming languages
  • Intelligent code authoring, understanding, and navigation help you be productive
  • Integrated debugging and Git support right at your fingertips

Visual Studio Professional and Enterprise

These two editions are for professional and enterprise developers. These products allow end-to-end solution for development teams to build enterprise level applications including team management, issue tracking, version control, documentation, load testing, powerful advanced Intellisense and IntelliTest capabilities, deployment, code map and several other features to make complex application developers lives easier.

Check out more details about Visual Studio Enterprise 2015 here > 



Planet Xamarin

Planet Xamarin