Visual Studio Build for windowsphone error : (XapDeployCmd.exe) didn't found - visual-studio

I build and emulate my cordova app in android device and VisualStudio Android Emulator successfully in Visual Studio.
But when I try to build and deploy my app to windowsphone device I got this error that said the file "XapDeployCmd.exe" does not in %PATH%
ERROR: Error executing ""XapDeployCmd" /enumeratedevices":
'"XapDeployCmd"' is not recognized as an internal or external command,
WARNING: XapDeploy tool (XapDeployCmd.exe) didn't found. Assume that it's in
%PATH% and deploy fails.
When I referred to the path that I must find the file "XapDeployCmd.exe" in "C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment" I saw there is one file there: "XapDeploy.exe" and "XapDeployCmd.exe" is not there
so where is "XapDeployCmd.exe" ?
I'm using Visual Studio 2015 Community With Update 3 and I installed Windows Phone SDK 8.0

Tools for Apache Cordova only supports deploying to Windows devices 8.1.
To deploy to Windows 8, you need Visual Studio 2013 which has a completely different project structure, and I don't recommend using it.
Most users who are on a version of Windows 8 tend to be on version 8.1

As I stated before، I had installed Windows Phone SDK 8.0 .
with installing Windows Phone SDK 8.0 , Visual Studio 2012 will be installed.
But the file "XapDeployCmd.exe" is not with this version of visual studio.
Installing Update 5 (update 2 or later) of visual studio 2012 will install "XapDeployCmd.exe" with itself. Visual Studio 2012 Iso and problem will be solved.
after solving this problem if you encounter with error like 'Exception from HRESULT: 0x89721800' , refer to this article

Related

Visual Studio 2017 does not detect Windows Driver Kit installation

I already have Visual Studio 2017 professional with Desktop Development with C++ installed.
I am trying to build the Virtual Serial project found here:
https://github.com/Microsoft/Windows-driver-samples/tree/master/serial/VirtualSerial
When I try to build it, I get the error:
Severity Code Description Project File Line Suppression State
Error MSB8020 The build tools for WindowsUserModeDriver10.0 (Platform Toolset = 'WindowsUserModeDriver10.0') cannot be found. To build using the WindowsUserModeDriver10.0 build tools, please install WindowsUserModeDriver10.0 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". virtualserial C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets
I cannot find any instructions on installation aside from this website.
https://learn.microsoft.com/en-us/windows-hardware/drivers/download-the-wdk
I downloaded the WDK for Windows 10, version 1803.
I closed VS2017 and ran the installer.
When running the installer I got the message in the screenshot below, I clicked Next to continue installing
After running the installer, the project still does not build, with the same error: WindowsUserModeDriver10.0 is not installed.
What am I missing during installation? Is this the correct installer for regular VS2017 (not community edition)?
Thanks,
I know this is old, but I recently fell into this rabbit hole. What worked for me was uninstalling all of the WDKs, rebooting, and installing WDK 1803 (the wdksetup.exe program downloaded from Other WDK downloads shows version 10.0.17134.1 in properties). That WDK installer specifically calls out VS 2017 when you add the Visual Studio integration at the end of the install process.
In my situation, I installed vs2022 with SDK 19041 and WDK 19041.
After some testing, I realized that VS2022 only supports WDK 22621(so on this date). So I installed WDK 22621 and SDK 22621, and problem solved.
If you still can't find Kernel Driver Build option, try run this file C:\Program Files (x86)\Windows Kits\10\Vsix\VS2022\10.0.22621.0\WDK.vsix(WDK 19041 only has VS2019). It's a Visual Studio's extension.
According to this: https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware-winpc/windows-wdk-on-visual-studio-2017-community/fdbd2b44-e57a-4849-903d-04001205a764
WDK is not currently supported by visual studio 2017.
This is ridiculous

Error building sample driver: An SDK corresponding to WDK version '8.1' was not found

I used one Windows Driver samples from github (Filesys) and tried to build it on Windows 10 with Visual Studio 2015.
I have installed both:
WDK8.1 with its SDK
WDK10
But when i try to build a project i see this error message:
An SDK corresponding to WDK version '8.1' was not found. Please install the SDK before building. minispy (Filter\minispy) C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets
but SDK of 8.1 is already installed.
Is there any option in Visual studio that i could use to point it to SDK 8.1?
I had the same problem and the solution
is sdk version 10 released after VS 2015 .
You should download and install it manually. I used the following link for downloading sdk :
https://dev.windows.com/en-us/downloads/windows-10-sdk
Also see this link for help with downloading and installing sdk
http://blogs.msdn.com/b/jpwdkblog/archive/2015/08/21/windows-10.aspx
good luck
In this case, you may missed No.3.
Check following points:
Install Visual Studio 2015
Install Visual C++ (Not installed by default)
Install Windows SDK for Windows 10 (Not installed by default)
Install WDK 10 (Download separately)
Upgrade project from WDK 8.1 (for more detail: https://msdn.microsoft.com/en-us/library/windows/hardware/mt270257%28v=vs.85%29.aspx )
Currently,
Visual Studio 2015 supports WDK 10.
Visual Studio 2013 supports WDK 8.1.
In my environment, Visual Studio 2015 may not support WDK 8.1.
When build in WindowsUserModeDriver8.1 with VS2015, an error was occurred: prop is not found.
WDK 10 supports build drivers for Windows 10 / 8.1 / 8 (/ 7?).
(see also: https://msdn.microsoft.com/en-US/library/windows/hardware/dn914754%28v=vs.85%29.aspx )
To build Windows 8.1 driver, follow below.
Open project properties
Navigate to Configuration Properties > General
Check: Platform Toolset Windows****ModeDriver10.0
Navigate to Configuration Properties > Driver settings
Check: Target OS Version: Windows 8.1
Check: Target Platform: Desktop (Default: Universal)
You are likely targeting the wrong platform toolset. To build a driver for Windows 10, you need to target one of the Windows 10 platform toolset (WindowsKernelModeDriver10.0 or WindowsUserModeDriver10.0). If you want to use SDK 8.1, then you should use the WDK 8.1 platform toolsets (WindowsKernelModeDriver8.1 or WindowsUserModeDriver8.1).
You cannot use the 10.0 toolsets and try to make them point to SDK 8.1 because there were some key changes to how files are laid on disk between the two kits. Using the appropriate toolset should hopefully fix the issue!
Have you followed all the instructions during the installation of VS? https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx
After correct installation I have handled the problem.
(Optional)
Did you install Windows 10 SDK?
Download link: https://dev.windows.com/en-us/downloads/windows-10-sdk

Task could not find "AL.exe" TFS 2013

I'm using Windows 7 SP1 and Visual studio Ultimate 2013. TFS server 2013 is installed in Windows Server 2008.
Below error occurred while trying to build one solution which supports multilingual resx files:
C:\Program Files
(x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets
(3001): Task could not find "AL.exe" using the SdkToolsPath "" or the
registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft
SDKs\Windows\v8.1A\WinSDK-NetFx40Tools-x86". Make sure the
SdkToolsPath is set and the tool exists in the correct processor
specific location under the SdkToolsPath and that the Microsoft
Windows SDK is installed
I have gone through similar questions, but those solutions didn't work. Few are given below:
Install Windows SDK
Windows SDK is already installed
al.exe is present in C:\Program Files\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools
al.exe is present in \Windows\v7.0A\bin and v8.0A\bin\NETFX 4.0 Tools
Remove resx files and build
Resx files are part of the project and I want them to be in my build.
Any idea to fix this issue?
Thanks for your comments. I installed Windows SDK in server machine, where TFS is installed. It solved my problem.

Microsoft.ReportView.ProcessingObjectModel Version 8.0.0.0 - Visual Studio 2005-2010

I have a program that was built in Visual Studio 2005. However, this program does not run on Windows 7 machine. I converted the project from Visual Studio 2005 to Visual Studio 2010. I then copied the published files to a Windows 7 laptop and ran the executable from there. When doing so, I got the following error:
Unable to install or run the application. The application requires that assembly Microsoft.ReportView.ProcessingObjectModel Version 8.0.0.0 be installed in the GAC first
Most of the solutions that I have found are for Visual Studio 8. Anybody have an answer?
I was able to resolve this by removing the Microsoft.ReportView.ProcessingObjectModel Version 8.0.0.0 from the assembly and adding 10.0.0.0 instead.

visual studio windows phone 7 installation error

I try to install latest Visual Studio Windows Phone Beta Tools and I get following error:
"Setup could not install the following component:
Microsoft .NET Framework 4"
Here is the error log: http://pastebin.com/CRumcpsN . I'm running under Windows 7 32bit.
What I have to do to install Visual Studio Windows Phone Beta Tools?
Try installing the .NET 4 framework first http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en
Are you sure you downloaded the correct WP7DT version? I noticed this in your dump.
dotNetFx40_Full_x86_x64.exe; error = 0x80091007

Resources