Microsoft Visual C# Step by Step, 8th Edition: Suggested fix for using the projects


CsharpSBS8th

We always appreciate hearing from our readers through the blog, Amazon, and book surveys. We can discover issues and try to fix them as quickly as possible. Thanks to author John Sharp for being so responsive and figuring out how to replicate the errors and come up with a solution.

As some readers have suggested, many of the projects will not open when using VS 2015 Community Edition unless you have also installed the Universal Windows Platform Tools and Windows 10 SDK. This is mentioned on page xxiii of the book, although when the author wrote the material it was simply called the Windows 10 Developer Tools.

Some of you might have installed these tools from the Control Panel. However, the author suggests that you try to install these tools directly from within Visual Studio as follows. We hope this helps those of you who are having some issues with the book projects.

1. When you load a project that is marked as unavailable, right-click the project in solution explorer and then click Install Missing Features(s)

Step 1

2. In the Install Missing Features dialog box, click Install

Step 2

3. Close Visual Studio when prompted by the wizard.

4. Follow the steps in the wizard – it is probably best to install all features

Step 3       Step 4

5. Wait while the install runs – this may take a few minutes.

6. Restart Visual Studio, load the project, and rebuild it. This action will download any additional packages required from NuGet that are not already available on your setup.

Comments (3)

  1. lisa says:

    I had the same problem the reviewer at Amazon complained of, which seemed to have been deleted but was that in the first graphical app assignment, the design view kept on loading forever when it was opened.

    I did the same thing as suggested above, but it didn't work.

    Then, I looked for the different aproach and within a couple of minutes, I was lucky enough to find this (http://www.reddit.com/…/cyp8kzg) just posted a couple of hours before.

    In my case, it turned out to be anti-virus(Panda) that was causing this problem. I was able to fix it by intall this hotfix(http://www.pandasecurity.com/…/hotfix_psinenag_16.00.x.exe).

    I  also have the other problem. When I opened almost every grapical app project, I got like hundreds errors. Then, I don't remember how to find this solution but, I had to open the NuGet managers and update a couple of apps(which were called Microsoft.Application.Insights somthing…) and the problem was gone.

    The updates, however, seemed to work only for the project. When I opend another project, I got hundreds errors again and had to perform the same updates.

    So, I wonder if this is a problem on my end or yours.

  2. Paulo says:

    This solution didn’t work. I tried this one, then I removed Visual Studio and installed it again, then I tried with and without my antivirus (Norton Security). The projects still don’t load. Please, change it. Things could (or should) be simpler!

  3. Dana Budke says:

    I have windows 10 pro and visual studio 2015. I’ve loaded the latest updates without error
    I get the following error when I try to load MainPage.xaml in designer for all sample programs.
    I am trying to use the sample programs in C Sharp step by step 8th edition. it is a Microsoft Press book.
    I did load Windows 10 developer tools with Visual  Studio 2015
    and installed the Universal Windows App  Development Tools with Visual Studio 2015.
    and I tried to reload the designer
    and I tried disabling running project code and reload
    thank you in advance for your help

    System.TypeLoadException
    Method ‘GetStylePropertyTargetType’ in type ‘Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.Metadata.WindowsUIXamlPlatformMetadata’ from assembly ‘Microsoft.VisualStudio.DesignTools.UniversalXamlDesigner, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ does not have an implementation.
       at Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.WindowsStoreXamlPlatform..ctor(IPlatformRuntimeAssemblyResolver platformRuntimeAssemblyResolver, IPlatformReferenceAssemblyResolver platformReferenceAssemblyResolver)
       at Microsoft.VisualStudio.DesignTools.WindowsPhoneXamlDesigner.WindowsPhoneXamlPlatform..ctor(IPlatformRuntimeAssemblyResolver platformRuntimeAssemblyResolver, IPlatformReferenceAssemblyResolver platformReferenceAssemblyResolver)
       at Microsoft.VisualStudio.DesignTools.UniversalXamlDesigner.UniversalXamlPlatformCreator.CreatePlatformImpl(IPlatformReferenceAssemblyResolver referenceAssemblyResolver, IPlatformRuntimeAssemblyResolver runtimeAssemblyResolver)
       at Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.WindowsStoreXamlPlatformCreator.CreatePlatformInternal(IPlatformReferenceAssemblyResolver referenceAssemblyResolver)
       at Microsoft.VisualStudio.DesignTools.Platform.PlatformCreatorBase.CreatePlatform(IPlatformReferenceAssemblyResolver referenceAssemblyResolver)
       at Microsoft.VisualStudio.DesignTools.Designer.Project.ProjectContex

Skip to main content