Microsoft Visual C# Step by Step, 8th Edition: Suggested fix for using the projects
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)
2. In the Install Missing Features dialog box, click Install
3. Close Visual Studio when prompted by the wizard.
4. Follow the steps in the wizard – it is probably best to install all features
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
- Anonymous
February 19, 2016
The comment has been removed - Anonymous
May 09, 2016
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! - Anonymous
December 27, 2016
I have windows 10 pro and visual studio 2015. I've loaded the latest updates without errorI 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 2015and installed the Universal Windows App Development Tools with Visual Studio 2015.and I tried to reload the designerand I tried disabling running project code and reloadthank you in advance for your helpSystem.TypeLoadExceptionMethod '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