why did not launch windows application - windows
**i find this error when i try to run my application on windows **
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Nuget.exe not found, trying to download or use cached version.
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: The command "setlocal [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmEnd [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmErrorLevel [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: exit /b %1 [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :cmDone [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(157,5): error MSB3073: :VCEnd" exited with code 1. [D:\fluttr_project\downloader\build\windows\INSTALL.vcxproj]
Exception: Build process failed.
------------------------------ flutter docotor ---------------------------------------
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.2, on Microsoft Windows [Version 10.0.22000.613], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
X cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Enterprise 2022 17.1.4)
[√] Android Studio (version 4.1)
[√] IntelliJ IDEA Community Edition (version 2020.3)
[√] VS Code (version 1.66.2)
[√] Connected device (3 available)
[√] HTTP Host Availability
! Doctor found issues in 1 category.
I found a fix for that recently:
In Visual Studio go to Tools -> Options -> Nuget -> General and click on the "Clear All Nuget Cache(s)" button.
Mentioned here: Package is not found in the following primary source
Update visual studio and down load nuget Package manager in it. then restart your pc.
Related
Build Failed after adding Kapsel Plugins to Cordova Project - Could not find SDK "Microsoft.VCLibs, Version=12.0"
I'm trying to make a Windows Cordova build using cmd but I'm getting below errors. Can any of you please guide me on how to fix this issue. C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets( 2377,5): error MSB3774: Could not find SDK "Microsoft.VCLibs, Version=12.0". No valid MSBuild was detected for the selected target: Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe: Command failed with exit code 1 PS: I'm using Visual Studio Community 2017.
Visual Studio 2017 doesn't see SDK
I have Visual Studio 2017 Community Edition; along with a bunch of SDKs: > dir "C:\Program Files (x86)\Windows Kits\10\Include" 10.0.10150.0 10.0.10586.0 10.0.15063.0 10.0.17134.0 10.0.10240.0 10.0.14393.0 10.0.16299.0 10.0.17763.0 However, "Командная строка разработчика для VS 2017" (VsDevCmd.bat) doesn't see my SDK. Environment variables: IFCPATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ifc\x86 INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include; LIB=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86; LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\lib\x86\store\references;C:\Windows\Microsoft.NET\Framework\v4.0.30319; resulting in fatal error C1083: Не удается открыть файл включение: sys/types.h: No such file or directory on compilation with cl.exe. Are any additional steps needed to configure SDKs for Visual Studio 2017?
Quite unexpectedly, the problem was in C:\Windows\System32 missing from PATH. set VSCMD_DEBUG=3 helped to pin down the issue.
How to use "nmake" command in Visual studio 2017
I would like to run a batch file below with VisualStudio2017 developer's command prompt. Set PATH=c:\Program Files\Microsoft Visual Studio 8\VC\bin;%PATH% Set INCLUDE=c:\Program Files\Microsoft Visual Studio 8\VC\include;c:\Program Files\Microsoft Platform SDK\Include;%INCLUDE% Set LIB=c:\Program Files\Microsoft Visual Studio 8\VC\lib;c:\Program Files\Microsoft Platform SDK\Lib;%LIB% Set COMSPEC=cmd.exe rem nmake -f Makefile.msvc clean nmake -f Makefile.msvc But, my command prompt say that "nmake is not recognized as internal-command, external-command, operatable-program or batch-file." in JAPANESE.(see attatched file) Please tell me that how to use "nmake" command with VisualStudio2017.
dia2dump: CoCreateInstance failed - HRESULT = 80040154
I'm trying to dump the signature of a PDB on Windows 7 x64 using Visual Studio 2017 and its dia2dump. I loaded C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\DIA2Dump.sln. It built successfully: 1>------ Rebuild All started: Project: Dia2Dump, Configuration: Debug x64 ------ 1>stdafx.cpp 1>regs.cpp 1>PrintSymbol.cpp 1>dia2dump.cpp 1>Generating Code... 1>Dia2Dump.vcxproj -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.exe 1>Dia2Dump.vcxproj -> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.pdb (Partial PDB) ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ========== When I run it on the PDB, I get the following error: C:\>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\Samples\DIA2Dump\x64\Debug\Dia2Dump.exe" file.pdb CoCreateInstance failed - HRESULT = 80040154 Just in case, I ran the following and it was successful, but dia2dump failed with the same error (also after reboot): regsvr32 "C:\Program Files\Common Files\Microsoft Shared\VC\msdia100.dll" How do I debug this?
x64 Class not registered. you need run regsvr32 with x64 bit msdiaXXX.dll RbMm posted the correct answer as comment already. But if someone faces the same problem: To register a 64-bit-DLL you need to use the regsvr32.exe from the C:/Windows/SYSWOW64 folder! Microsoft should have named it regsvr64.exe...
As of 20 June 2018, what I did was: regsvr32 C:\Program Files\Common Files\Microsoft Shared\VC\msdia100.dll regsvr32 C:\Program Files\Common Files\Microsoft Shared\VC\msdia90.dll regsvr32 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\DIA SDK\bin\msdia140.dll Then I compiled as x64. It worked for me. If x64 didn't work, you can try x86.
For Visual Studio 2019 i had to execute: regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\DIA SDK\bin\msdia140.dll" regsvr32 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\DIA SDK\bin\amd64\msdia140.dll" These files were not found in any of the "Common Files" folders
I managed to get it to work by building Dia2Dump.exe as a 32-bit application. I did this in Visual Studio Community 2017 by opening the solution's project's properties, opened the Configuration Manage..., then changed the platform for the project to Win32. I rebuilt the project, and now I no longer have CoCreateInstance failed - HRESULT = 80040154 errors! It works fine with any pdb file I give it.
Syntax Error when opening Windows Phone Emulator though CMD line
I'm trying to open Windows Phone Emulator through CMD line. I can't figure out what the syntax error is. This is my CMD line code: C:\Users\Dell>cd.. C:\Users>cd.. C:\>cd "Program Files" C:\Program Files>cd "Microsoft XDE" C:\Program Files\Microsoft XDE>cd 1.0 C:\Program Files\Microsoft XDE\1.0>xde C:\Program Files\Microsoft XDE\1.0>xde "C:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Emulation\Images\WM70C1.en-US.bin" /vmid <c3cd7d93-42e7-4b5d-8e6b-0f7 54b773e55> // fetching the location of the emulator image The syntax of the command is incorrect. C:\Program Files\Microsoft XDE\1.0>