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

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.

Related

"C# 2017 compiler could not be created" error message while opening project

I've Visual Studio 2017 community edition. I have a C# project created using Visual Studio 2015. When I try to open the project in VS 2017 I get an error message prompt:
--------------------- Microsoft Visual Studio
Project 'dataStructureInCSharp' could not be opened because the Visual C# 2017 compiler could not be created.
Please re-install Visual Studio.
--------------------------- OK
I'm trying to obtain help if anyone else has faced similar issue. I feel going the uninstall and then reinstall route is very costly for me and would try that option last if I've got no other resort.
What I've done so far :
Tried starting visual studio with administrative privileges
But problem remained same.
I tried creating a new console project solution from scratch but in that case I get very same error and an additional error error also shown below:
System Environment: Windows 7 Ultimate Service Pack 1
You can try to close all VS 2017 instances and delete the folder %localappdata%\Microsoft\VisualStudio\15.0_xxxx\ComponentModelCache, then open VS to create a new Console project.
Or
please re-run the VS 2017 installer as administrator, click the icon beside ‘Launch’ button and choose ‘Repair’ to repair as shown below:
Just to brief the history of my problem, I had first installed Visual Studio(VS) 2017 community when it was in RC stage. This was first time when I saw the workload based UI of visual studio installation. Initially I simply chose .Net desktop development workload to get started as I was interested in creating only console applications to get my hands dirty.
Initially it was all working well. One fine day I added all other workloads I was interested in namely Universal Windows Platform Development, Azure Development, ASP.NET and web development,Node.js development, and Mobile development with .Net. I'm not sure if there any of the specific workloads to be blamed for the issue I've posted.
Just to avoid the case if RC and RTM release builds might not have messed up my entire environment, I simply uninstalled the entire stuff, rebooted my machine and installed it again from scratch from latest RTM release for Visual Studio Community.
I would strongly recommend that you first try possible solutions suggested by #Sara-MSFT before doing clean reinstall just in case if it works. It can save you couple of hours required in whole reinstallation process if it works.

visual studio does not recognize windows 10 sdk in version 10.0.14393.0

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.

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.

How to fix "You must upgrade the project to target Microsoft Azure Tools 2.8"?

I've got a project that's set to Azure 2.6. I have Visual Studio 2015 installed. I get prompted to upgrade the project (see image 1 below), which I do not want to do (it's production code and I don't know what the side effects may be, how many things might break).
I tried installing Azure 2.6 and related tools, but it doesn't help. Image 2 shows all the Azure related stuff I have installed
I have a coworker who has Visual Studio 2015 and can load the Azure project in the solution without a problem (see image 3). So it's clear that you don't have to upgrade the project.
I'm going to try installing VS 2013 Community Edition + Azure 2.7 tools to see if that satisfies it. I'm grasping at straws at this point.
Any ideas?
A coworker helped me to come up with the solution:
Go to the "Microsoft Azure SDK for .NET - 2.6" page here:
https://www.microsoft.com/en-us/download/details.aspx?id=46892
Download "MicrosoftAzureTools.VS140.exe" and install it
Run appwiz.cpl from the run prompt and filter on "azure" in upper right
You should see "Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.6"
Open Visual Studio 2015 again and your project should now load without prompting to upgrade. Do a Rebuild All just in case to make sure it builds.
It turns out I had dang near everything installed except that one 2015 tools + 2.6 Azure combination.

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

Categories