visual studio does not recognize windows 10 sdk in version 10.0.14393.0 - c#

my Visual Studio does not recognize my Windows 10 SDK.
The steps to reproduce it:
Install VS 2015 Professional with update 3 and select the windows SDK for version 10.0.14393.0 as optional feature
Create an UWP App with this version
The following error is displayed in the output window:
error : The project requires a platform SDK (UAP, Version=10.0.14393.0) that is not installed. Please visit the following link for more information: http://go.microsoft.com/fwlink/?prd=12514&pver=14.0&sbp=PlatformSDKMissing&plcid=0x409&o1=UAP,%20Version=10.0.14393.0
Uninstall Windows 10 SDK 10.0.14393.0
Install Windows 10 SDK 10.0.14393.0 from the link provided in step 3
Create an UWP App with the version 10.0.14393.0 and the same error like in step 3 is displayed
further information: in the list of programs and features in the control panel the name of the sdk is:
Windows Software Development Kit - Windows 10.0.14393.795
and the version is
10.1.14393.795
My guess is that the version is wrong in the registry and therefore visual studio cannot find the sdk.
If I look under the path C:\Program Files (x86)\Windows Kits\10\Platforms\UAP I can see a directory named 10.0.14393.0 that contains a Platform.xml and a PreviousPlatforms.xml as it should.
Under the path C:\Program Files (x86)\Windows Kits\10\bin there is a directory named 10.0.14393.0 too so the SDK seems to be installed correctly
I already tried reinstalling of visual studio and several SKDs in different versions from VS or the online link and nothing worked. If I target another SDK Version like 10.0.10586 I am able to create the project.
Thank you for reading. I am thankful for every hint into the right direction.

Reinstalling Windows is not necessary. Modify the existing installation of VS2017 and remove the check next to Universal Windows Platform development, then go to the Individual components tab and select the Windows SDK 10.0.14393.
Click Modify.
Once finished, Modify the existing installation of VS2017 again and recheck the Universal Windows Platform development box and Click Modify.
Problem resolved and no restart required.

I had this same issue but resolved it by installing the .033 version rather than the latest .795. It is available on the SDK download page in the description of the SDK by clicking on the link behind 'QFE':
Windows 10 SDK (ver. 10.0.14393.795 – a QFE for 10.01.14393.033) and Microsoft Emulator for Windows 10 mobile
Also, even though it wasn't required, I uninstalled .795, then rebooted. Then installed .033 and then rebooted again prior to trying to open visual studio.

I'v already installed Windows SDK 10.0.14393.795 successfully. Then I create UWP project which targets 14393 successfully. So I could not reproduce your issue.
I already tried reinstalling of visual studio and several SKDs in different versions from VS or the online link and nothing worked.
If you have tried to repair your visual studio, but it still didn't work. You'd better use  http://aka.ms/vscollect to gather the installation logs. Find vslogs.zip from %temp% folder. Please upload the file and share the link here. I will help you find the root cause according to the log file.

The solution is to reinstall windows and make a clean install of Visual Studio. Somehow the system got messed up and not even a visual studio reinstall could help.

Related

I can't find cross platform app Xamarin on visual studio 2017

I have installed visual studio 2017 community properly with mobile development packge and I can't find cross platform app in c#
What can I do to install it ?
You should review the installation procedure documented by Microsoft.
If you don't have the Xamarin menu under Help then you may have missed something. You can re-run the installer and change workflows to confirm you have all the required pieces. Note that additional steps are needed to build and deploy, although you see stuck at just the installation step if templates are missing.
The problem was that some files was corrupted because of a faild complete unistallation of xamarin ... so i prefered a speed and smart solution that can help me to continue my work so i installed a new os windows in new partition i tried to install those files , they worked on the new os so it's clear that xamarin will be installed properly finaly i installed the hole visual studio and that worked for me ...

Q: Does VS2015 Community Update 3 compile Windows UWP Apps for Win10 Build 10586 on Win7SP1?

I have a PC with Windows 7 SP1 (64bit) that I have been using to build a Windows store app. I've been using Visual Studio 2015 Community Edition Update 2. This worked great until I applied Visual Studio Update 3 and the latest Windows SDK (14393).
When I target the previous release (10586), I get the following error when I try to compile a C# project:
Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2151,5): error APPX0002: Task 'GenerateAppxPackageRecipe' failed. 0x7F - Failed to load MRM support library.
(I have a C++ UWP project in the same solution and it compiles into a DLL without any issues.)
I've tried reinstalling VS2015 Update 2, reinstalling VS2015 Update 3, repairing Visual Studio, repairing the Windows SDK for 10586. None of these worked.
I know the latest Windows 10 SDK does not support Windows 7 SP1; however, does this apply to all previous Windows 10 SDK's?
Finally, after days of repairing and re-installing, I finally fixed this.
Step 1: Assuming you installed Visual Studio in the default location, goto the following folder: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage
Step 2: Rename Microsoft.AppxPackage.Targets to something else. I added "-old" after Package.
Step 3: Clean the solution.
Step 4: Confirm you are targeting Windows 10 Build 10586.
Step 5: Build the solution.
My targets file is dated May 31, 2016 before I even installed Visual Studio 2015. Before I did these steps, I also deleted everything in the bin/Debug folder but I'm not sure if this helped or not.
Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(2151,5): error APPX0002: Task 'GenerateAppxPackageRecipe' failed. 0x7F - Failed to load MRM support library.
This is a known issue in Windows 10 SDK (ver. 10.0.14393.33) which is included in Visual Studio 2015 with Update 3. And it has been fixed in QFE Build 10.0.14393.795.
This non-security update includes quality improvements:
Addressed issue where developers could not build UWP apps on Windows 7 because MRMSupport.dll failed to load.
Addressed issue where MidlRT and MDMerge failed to run on Windows 7
Addressed issue where SDK setup failed to install on Windows
Addressed issue where deploying a legacy Store app to a 8.1 Phone caused Visual Studio to crash
Addressed issue where application data was not preserved across remote debugging sessions when apps were getting un-registered
For more info, please see Windows SDK and emulator archive.
To solve this problem, please go to Add/Remove Programs and Uninstall Windows Software Development Kit - Windows 10.0.14393.33. Then reinstall the 10.0.14393.795 version from Windows SDK and emulator archive. After this, you should be able to build the UWP app with no error.
However, on Windows 7, with Visual Studio 2015, the official support for Windows Universal is "Build only". A lot of other Visual Studio features are degraded. So if you are developing Windows Universal Apps, Windows 10 is strongly recommended. For more info, please see this answer.

VS 2013 xaml editor and Microsoft.VCLibs.120.00.Debug

I recently installed VS 2013 on Windows 8.1. When I open up any xaml file I get this error message below.
This happens even if I create a project from scratch in VS 2013. I've tried re-installing Windows 8.1 and VS 2013.
Has anyone come across this issue?
System.Exception Package failed updates, dependency or conflict
validation.
Windows cannot install package
App.a94e67374.a8775.a4662.ab57f.a7f1805386d2c because this package
depends on another package that could not be found. This package
requires minimum version 0.0.0.0 of framework
Microsoft.VCLibs.120.00.Debug published by any publisher to install.
Provide the framework along with this package.
I had the same error just like you.
I registered myself and got a developer licence. After registerering
I debugged the program and it all got fixed by itself
I use windows 10, to fixed it, I go to Setting -> Update & Security -> For developers, I choose Developer mode. In windows 8 and 8.1, I don't know.
the figure of setting
It happened to me as well with both VS 2013 and VS 2015. I think it's a common problem when VS is freshly installed.
I solved it both the times with running VS with administrator privileges (right click on the VS tile on Windows 8 and select "Run as Admin") and opening a XAML file with the editor. It takes some more time than usual, but then the problem gets fixed by itself.
After that you can continue using VS with standard user privileges.
Sadly none of the above solutions seemed to work for me.
My windows 8 installation is quite old and over the years, I had installed several visual studio versions such as 2010,2012 and 2013.
Even uninstalling visual studio, there will be many files and packages left behind.
I managed to fix this issue with the following steps:
1. Install Revo Uninstaller and from the options menu I enabled the "Show system components".
2. For some reason along with the visual studio 2013 ultimate installation (main application - do not uninstall this) I uninstalled two installations related to the main visual studio 2013 application such as: vs 2013 premium and vs 2013 professional apart from the main application (Repeat: Do not uninstall the main app)
3. Uninstall all the Microsoft Visual C++ runtime packages
4. Performed a repair of the the visual studio
Something else that I would rather prefer doing than performing a full repair as it takes far too long, would be to uninstall all the visual C++ runtimes packages and anything related to them (you might brake some apps but they are easy to find and easier to install)
and simply reinstall those visual c++ redistributes starting from the latest version and see if it works.
Before anything however, make sure you have a developer license like said on a previous post (no developer account is required. You don't have to pay for anything yet).
I'll try to provide step-by-step guid to fix the issue.
Please create an MSDN account here https://msdn.microsoft.com and use your login credentials in VS 2013
You have to enable "Developer mode" option from UPDATE & SECURITY (Windows 10). Attaching the screen shot for more clarity.
This should solve the problem, but if it doesn't then,
Try restarting your Visual Studio as administrator.
Some nice reads about configuring your device for development Windows 8 and Windows 10

Problems installing Windows SDK 7.1 for dot.net Framework 4.0 / 2 Problems in 1

Since yesterday I try to install Windows SDK 7.1 for dot.net Framework 4.0 on my windows 7 x64
machine. I get everytime the same Error during the installation.
Error message:
"Installation of the "Microsoft WIndows SDK for Windows 7" product has reported the
following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information"
Thats a pretty unhelpful error message, so I browsed the www about more information and did the suggested steps peoples recommend.
I opened the View Log and get the same return error like others.
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation failed with the return code 5100"
I tried all that stuff that Microsoft, MSDN and others recommended but nothing works for me.
Stuff i tried to resolve the problem:
Deinstallation of the Document Explorer (recommended by msdn)
Deinstallation of the lastest Microsoft Visual C++ 2010 Redist x64/x86 Versions (microsoft)
Deinstallation of Microsoft Windows SDK Windows 7 (dot.net 3.5)
Installation of Microsoft Windows SDK 8
but like i said nothing helps :/ I get everytime the same Error message during the Installation.
other facts about my system:
I have a lot of several Microsoft Visual C++ 2008 Redist versions on my system
Microsoft Visual C++ Compilers 2008 Standard Edition enu x64/x86
Microsoft Windows SDK for Visual Studio 2008
Background info:
I installed Jenkins as Service on my machine Windows 7 x64. We did a changeover from dot.net Framework 3.5 to dot.net Framework 4.0.
But the problem was that sgen.exe sends an error:
"SGEN : error : An attempt was made to load an assembly with an incorrect format.." (to find in build log).
Windows SDKs containing the sgen.exe in their bin folders like "C:\Program Files\Microsofft SDKs\Windows\v7.0\Bin".
So I thought the SDK is out of date (v7.0a) and i tried to install the Windows SDK v7.1 for dot.net Framework 4.0.
May installing the latest Visual Studio version on my system could help to resolve the problem, because it should simultaneously install Windows SDKs.
But i wouldn't like to install Visual Studio on it to prevent wasting a license because nobody works on this computer.
Solving the Problem by installing .Net 4.5 and SDK 7.0.
Additionally set SdkToolsPath to $(TargetFrameworkSDKToolsDirectory) (find in WINDOWSDIR\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets)
... all in all a strange stituation with the SDK. Leaves a bad feeling.
I had the same problem installing the windows SDK 7.1, vcredist_x86 installation failed although when i looked at the unistall a program tab of the control panel no VC 2010 x86 redist was installed. I also had the windows 7.0 SDK installed. It turns out, there is a registry key describing if and which version of the vc 210 x86 redist is installed:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x86
The key is Installed
Mine was at 1 even if the uninstall tab did not show it, i set it to 0 it did not solve the problem, but deleting the whole
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x86
did.
Hope it helps, I recommend you backup your registry before doing that.
I find it deeply astonishing that Microsoft would release a SDK with such a problem.

Azure SDK is installed but Visual Studio 2012 doesn't see it

Under cloud I only see "Get Windows Azure SDK for .NET" yet I know it's installed. The installer sees it.
I should mention I have Visual Studio 2010 installed along size 2012. 2010 has all the project types and works great.
Open Programs and Features, locate the 'Windows Azure Tools for Microsoft Visual Studio 20xx' (where xx is the version of Visual Studio you are experiencing the issue with)
Right click and choose Repair.
Once the repair is complete, re-open Visual Studio, search installed templates for 'Cloud' and the 'Windows Azure Cloud Service' project should appear, confirming that the issue is resolved.
I had this same problem. Rebooted, still couldn't get it to recognize the Azure SDK 2.1 for VS 2012.
When I right-clicked, I only had the options to Uninstall or Change. I chose Uninstall, and another windows popped up asking if I wanted to repair. I chose Repair and then finally Windows Azure Cloud Service appeared.
I've had similar issue few days ago. Both, VS10 and VS12 installed on Win 7 machine. And VC12 didn't see azure so I followed steps from VS12 and installed it again and then it still didn't work.
However, after VS12 and system restart it actually worked.

Categories