Visual Studio 2015 更新 2 未显示通用 Windows 模板
Visual Studio 2015 Update 2 not showing Universal Windows Template
我在 Windows 10 Build 14332 上使用 Visual Studio 2015 Enterprise Update 2。它没有显示通用模板(下面的屏幕截图)
尽管它在 Windows 8 下显示通用。而且我认为它不像在 UWP 中那样通用(不是吗?)。
我尝试了什么?
- 我尝试使用 /Force 选项卸载它并重新安装它检查通用 Windows 平台。
- 我尝试使用在 GitHub 上找到的 VisualStudioUninstaller(Link) 工具卸载它并重新安装它检查通用 Windows 平台
- 我已经尝试了 New Anniversary Windows 10 SDK with Emulator。但我仍然没有看到通用 Windows 模板。
我已经用谷歌搜索了,但找不到解决方案。
正如@karann 所建议的。我似乎 Microsoft 已经解决了这个问题并修复了它 Microsoft Visual Studio Update 3 RC。将我的 Visual Studio Enterprise Update 2 更新为 Microsoft Visual Studio Update 3 RC 后,我有了 UWP 模板。
以防其他人仍然感到困惑。您可以在 MSDN 论坛上关注 this Post,我在那里发布了同样的问题,他们提供了一套广泛的可能解决方案。
我不知道我是否被允许,但我仍在发布 link 中提到的可能解决方案。
(我在转述)
According to your description, it looks like the UWP development tools (1.3) and Windows 10 SDK (10.0.10586) maybe not installed correctly with VS 2015 update 2, please go to Control Panel—Programs and Features, select the VS 2015 with Updates item to change and Modify, see if the Tool (1.3) and Windows 10 SDK (10.0.10586) option as below is selected or not. In my side, after installed the VS 2015 Update 2, this option is auto-selected, which means the tools (1.3) is installed successfully, and I can create a new UWP project.
As Yoann said, please refer to this thread: https://social.msdn.microsoft.com/Forums/en-US/fe4f3ea0-245d-4189-988d-6759d1d726d2/uwpxaml-designer-failed-to-load-on-vs2015-pro-update-2?forum=visualstudiogeneral&prof=required and if the above tool (1.3) was not installed, please follow the solutions as following:
Magellan82: After investigation I noticed that Tools for Universal Windows App 1.3 never got installed. If you run the setup again and choose modify you will see that Tools for Universal Windows App 1.3 is not checked. If you try to install it, it will go through the installation and everything seems ok. But is it not. It never installs. After checking the installation logs I noticed that the installation actually fails with a BootStrapper error. This is often connected to corrupt .NET installations. I then tried to deactivate and activate .NET 3.5 but this didn't help. Then I tried to deactivate .NET 3.5 and ran the setup and added Tools for Universal Windows App 1.3 again. To my surprise it then ran through the installation with no errors and the designer worked.
NGame-IranDev: Only thing you guys need to check is:
Programs and features -> Microsoft VS2015 -> Select Change -> Goto Modify and check if the SDK v1.3 is surely installed. if it didn't try to install it and double check the installation file and make sure that now sdk v1.3 is installed. if it weren't install and check over and over to be success at last. If you finally get success in installation of SDK v1.3 your XAML designer problem will surely gone.
Andrec: Installed ".NET Framework 3.5 (includes .NET 2.0 and 3.0)" via "Turn Windows features on or off". Used Visual Studio installer from control panel which now is able to add the tools.
Holly Ta (MSFT): I had this same issue when I was updating yesterday. My solution: Go to Settings. Choose Update & Security then For developers; uncheck developer mode and check side load apps. Open Visual Studio, start a new project under the first Windows expander should be Universal, click it to start download and update of UWP templates. Once complete Switch the setting back to developer mode and open VS. All of the templates should be there now.
Sara Liu (MSFT CSG): n case, the UWP template is missing, please go to the project template store folder like C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplates and check if the CSharp/Windows Root and CSharp/Windows folder are existing or not. if it exists, Please open an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and run the command: devenv /installvstemplates to install the default VS templates again.
我在 Windows 10 Build 14332 上使用 Visual Studio 2015 Enterprise Update 2。它没有显示通用模板(下面的屏幕截图)
尽管它在 Windows 8 下显示通用。而且我认为它不像在 UWP 中那样通用(不是吗?)。
我尝试了什么?
- 我尝试使用 /Force 选项卸载它并重新安装它检查通用 Windows 平台。
- 我尝试使用在 GitHub 上找到的 VisualStudioUninstaller(Link) 工具卸载它并重新安装它检查通用 Windows 平台
- 我已经尝试了 New Anniversary Windows 10 SDK with Emulator。但我仍然没有看到通用 Windows 模板。
我已经用谷歌搜索了,但找不到解决方案。
正如@karann 所建议的。我似乎 Microsoft 已经解决了这个问题并修复了它 Microsoft Visual Studio Update 3 RC。将我的 Visual Studio Enterprise Update 2 更新为 Microsoft Visual Studio Update 3 RC 后,我有了 UWP 模板。
以防其他人仍然感到困惑。您可以在 MSDN 论坛上关注 this Post,我在那里发布了同样的问题,他们提供了一套广泛的可能解决方案。
我不知道我是否被允许,但我仍在发布 link 中提到的可能解决方案。 (我在转述)
According to your description, it looks like the UWP development tools (1.3) and Windows 10 SDK (10.0.10586) maybe not installed correctly with VS 2015 update 2, please go to Control Panel—Programs and Features, select the VS 2015 with Updates item to change and Modify, see if the Tool (1.3) and Windows 10 SDK (10.0.10586) option as below is selected or not. In my side, after installed the VS 2015 Update 2, this option is auto-selected, which means the tools (1.3) is installed successfully, and I can create a new UWP project.
As Yoann said, please refer to this thread: https://social.msdn.microsoft.com/Forums/en-US/fe4f3ea0-245d-4189-988d-6759d1d726d2/uwpxaml-designer-failed-to-load-on-vs2015-pro-update-2?forum=visualstudiogeneral&prof=required and if the above tool (1.3) was not installed, please follow the solutions as following:
Magellan82: After investigation I noticed that Tools for Universal Windows App 1.3 never got installed. If you run the setup again and choose modify you will see that Tools for Universal Windows App 1.3 is not checked. If you try to install it, it will go through the installation and everything seems ok. But is it not. It never installs. After checking the installation logs I noticed that the installation actually fails with a BootStrapper error. This is often connected to corrupt .NET installations. I then tried to deactivate and activate .NET 3.5 but this didn't help. Then I tried to deactivate .NET 3.5 and ran the setup and added Tools for Universal Windows App 1.3 again. To my surprise it then ran through the installation with no errors and the designer worked.
NGame-IranDev: Only thing you guys need to check is: Programs and features -> Microsoft VS2015 -> Select Change -> Goto Modify and check if the SDK v1.3 is surely installed. if it didn't try to install it and double check the installation file and make sure that now sdk v1.3 is installed. if it weren't install and check over and over to be success at last. If you finally get success in installation of SDK v1.3 your XAML designer problem will surely gone.
Andrec: Installed ".NET Framework 3.5 (includes .NET 2.0 and 3.0)" via "Turn Windows features on or off". Used Visual Studio installer from control panel which now is able to add the tools.
Holly Ta (MSFT): I had this same issue when I was updating yesterday. My solution: Go to Settings. Choose Update & Security then For developers; uncheck developer mode and check side load apps. Open Visual Studio, start a new project under the first Windows expander should be Universal, click it to start download and update of UWP templates. Once complete Switch the setting back to developer mode and open VS. All of the templates should be there now.
Sara Liu (MSFT CSG): n case, the UWP template is missing, please go to the project template store folder like C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\ProjectTemplates and check if the CSharp/Windows Root and CSharp/Windows folder are existing or not. if it exists, Please open an administrative CMD window and navigate to C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE and run the command: devenv /installvstemplates to install the default VS templates again.