I've installed Qt 5.14.2 with 64-bit MSVC libraries and Qt Creator 4.12.1. When I attempt to build any of the example projects, I get the following error:
C1083: Cannot open include file: 'stddef.h': No such file or directory.
I've already installed Visual Studio, along with UCRT and the Windows 10 SDK. I've verified that stddef.h does in fact exist inside the SDK. The problem appears to be that vcvarsall.bat (or vcvars64.bat) does not add the include directories for the SDK.
Here are the environment variables that are assigned by vcvars64.bat:
CommandPromptType=Native
DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\
ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
Framework40Version=v4.0
FrameworkDir=C:\Windows\Microsoft.NET\Framework64\
FrameworkDir64=C:\Windows\Microsoft.NET\Framework64\
FrameworkVersion=v4.0.30319
FrameworkVersion64=v4.0.30319
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include;
LIB=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\lib\x64;
LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\lib\x86\store\references;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;
Path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\\Extensions\Microsoft\IntelliCode\CLI;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual…
Platform=x64
VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\
VCToolsInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\
VCToolsRedistDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.26.28720\
VCToolsVersion=14.26.28801
VisualStudioVersion=16.0
VS160COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x64
VSCMD_ARG_TGT_ARCH=x64
VSCMD_VER=16.6.0
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\
WindowsLibPath=References\CommonConfiguration\Neutral
WindowsSDKLibVersion=winv6.3\
WindowsSDKVersion=\
__DOTNET_ADD_64BIT=1
__DOTNET_PREFERRED_BITNESS=64
__VSCMD_PREINIT_PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\Perforce;C:\Program Files\ServiceNow;C:\Program Files\PuTTY\;C:\Program Files\PowerShell\7\;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\nodejs\;C:\Users\[REDACTED]\AppData\Local\Microsoft\WindowsApps;;C:\Users\[REDACTED]\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\[REDACTED]\AppData\Roaming\npm
__VSCMD_script_err_count=0
stddef.h is in C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt, but that path is not added to INCLUDE.
How is Qt Creator supposed to find the Windows SDK?
I recently had the exact same problem.
It's working in Visual Studio 2019 but not in Qt Creator and neither on the commandline.
The reason for my problem was missing rights to access the registry. To get some hints on your side just run the following:
set VSCMD_DEBUG=3
vcvars64.bat > log.txt
My output were multiple of these errors:
"ERROR: Registry editing has been disabled by your administrator."
Checking log.txt one could see that it was indeed not setting WindowsSdkDir properly.
I had similar issue, I don't know the exact cause but the workaround I followed is (I am building using QtCreator) adding following to .pro file.
INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10/shared"
INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10/um"
INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10/ucrt"
LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10/ucrt/x64"
LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10/um/x64"
I have a new Asp.NET Core Web / React application.
When I try to run it I get the error:
An unhandled exception occurred while processing the request.
AggregateException: One or more errors occurred. (One or more errors
occurred. (Failed to start 'npm'. To resolve this:.
[1] Ensure that 'npm' is installed and can be found in one of the PATH
directories.
I have a PATH variable set up:
C:\Program Files\nodejs
In this folder is node.exe
Do I need to install something into the project?
I have made no other changes to the project since creating it from the VS Web Application template. I just want it to run...
The full path error list:
Current PATH enviroment variable is: C:\Program
Files\Android\jdk\microsoft_dist_openjdk_1.8.0.9\bin;C:\Program
Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Intel\iCLS
Client\;C:\Program Files\Intel\iCLS
Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program
Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files
(x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files
(x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program
Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program
Files\TortoiseHg\;C:\Program Files (x86)\PKWARE\pkzipc;C:\Program
Files\Microsoft\Web Platform Installer\;C:\Program
Files\dotnet\;C:\Program Files\7-Zip;C:\Program
Files\OpenVPN\bin;C:\Program Files\nodejs\;C:\Program
Files\Mercurial\;C:\Program Files\Intel\WiFi\bin\;C:\Program
Files\Common Files\Intel\WirelessCommon\;C:\Program Files\010
Editor;C:\Program Files (x86)\Microsoft Emulator
Manager\1.0\;C:\Scripts;C:\Program Files\Microsoft SQL Server\Client
SDK\ODBC\130\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\130\DTS\Binn\;C:\Program Files
(x86)\GtkSharp\2.12\bin;C:\ProgramData\chocolatey\bin;C:\Program
Files\Java\jdk1.8.0_162\bin;C:\clojure-clr-1.8.0-Release 4.0\Release
4.0\clojure;C:\Program Files\PuTTY\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\140\DTS\Binn\;C:\Program Files\Git\cmd;C:\Program Files
(x86)\Windows Kits\10\Windows Performance
Toolkit\;C:\Users\stuarts.cargo\bin;C:\Program Files (x86)\Elm
Platform\0.18\bin;C:\Users\stuarts\AppData\Local\Programs\Python\Python35\Scripts\;C:\Users\stuarts\AppData\Local\Programs\Python\Python35\;C:\Users\stuarts\AppData\Local\Microsoft\WindowsApps;C:\Nuget\nuget.exe;C:\utils;C:\Users\stuarts\AppData\Roaming\Python35\Scripts;C:\Program
Files\7-Zip;C:\Users\stuarts\AppData\Roaming\npm;C:\Program
Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCommon\;C:\Users\stuarts\AppData\Local\Programs\Fiddler;C:\Scripts;C:\Nuget;C:\Program
Files\Microsoft VS
Code\bin;C:\Users\stuarts.lein\bin;C:\Users\stuarts\AppData\Local\atom\bin;C:\clojure-clr-1.8.0-Release
4.0\Release 4.0;C:\Users\stuarts.dotnet\tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2
Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program
Files\nodejs;
You can see node is the last one...
I am new to Azure. I have a ASP.Net solution that I deploy to Azure. Recently, I started getting the error "Azure error Process 'msbuild.exe' exited with code '1'" when I push my code to Azure and it builds. I have no errors when I build and run locally. Only when I commit and push to Azure. Anyone have any experience with this? I wish I had more to provide, but I am not sure what that could be. My project is set for Any CPU, VS 2017, and is a mix of ASP.Net and .Net projects. This error just started happening and use to work fine. I do not manage the Azure environment but I do have some access to the pipeline.
Here is the last bit on my build log. Its quite large but I can post the whole thing, if that would help.
2019-01-17T17:21:56.7483883Z No suggested binding redirects from ResolveAssemblyReferences.
2019-01-17T17:21:57.4429368Z ##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): Warning MSB3284: Cannot get the file path for type library "2df8d04c-5bfa-101b-bde5-00aa0044de52" version 2.5. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
2019-01-17T17:21:57.4430009Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "2df8d04c-5bfa-101b-bde5-00aa0044de52" version 2.5. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:57.4431536Z ##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): Warning MSB3284: Cannot get the file path for type library "4affc9a0-5f99-101b-af4e-00aa003f0f07" version 9.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
2019-01-17T17:21:57.4431938Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "4affc9a0-5f99-101b-af4e-00aa003f0f07" version 9.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:57.4436368Z ##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): Warning MSB3284: Cannot get the file path for type library "4ac9e1da-5bad-4ac7-86e3-24f4cdceca28" version 12.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
2019-01-17T17:21:57.4436922Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "4ac9e1da-5bad-4ac7-86e3-24f4cdceca28" version 12.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:57.4439882Z ##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): Warning MSB3284: Cannot get the file path for type library "0002e157-0000-0000-c000-000000000046" version 5.3. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
2019-01-17T17:21:57.4440471Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "0002e157-0000-0000-c000-000000000046" version 5.3. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:58.5690796Z ##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): Warning MSB3283: Cannot find wrapper assembly for type library "ADODB". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.
2019-01-17T17:21:58.5691374Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3283: Cannot find wrapper assembly for type library "ADODB". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit. [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:58.5783744Z Done Building Project "D:\a\1\s\ConsoleApp1\DataImportScript.vbproj" (default targets) -- FAILED.
2019-01-17T17:21:58.6375907Z Project "D:\a\1\s\GHApplicationGuide.sln" (1) is building "D:\a\1\s\PrintApplicationGuidePDF\PrintApplicationGuidePDF.vbproj" (8) on node 1 (default targets).
2019-01-17T17:21:58.6376071Z PrepareForBuild:
2019-01-17T17:21:58.6376597Z Creating directory "bin\Release\".
2019-01-17T17:21:58.7605601Z GenerateBindingRedirects:
2019-01-17T17:21:58.7606057Z No suggested binding redirects from ResolveAssemblyReferences.
2019-01-17T17:21:58.8006462Z ##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): Warning MSB3284: Cannot get the file path for type library "00020905-0000-0000-c000-000000000046" version 8.5. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
2019-01-17T17:21:58.8007039Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "00020905-0000-0000-c000-000000000046" version 8.5. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\PrintApplicationGuidePDF\PrintApplicationGuidePDF.vbproj]
2019-01-17T17:21:58.8010494Z ##[warning]C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): Warning MSB3284: Cannot get the file path for type library "0002e157-0000-0000-c000-000000000046" version 5.3. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
2019-01-17T17:21:58.8011248Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "0002e157-0000-0000-c000-000000000046" version 5.3. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\PrintApplicationGuidePDF\PrintApplicationGuidePDF.vbproj]
2019-01-17T17:21:58.8335534Z CoreResGen:
2019-01-17T17:21:58.8336350Z "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\resgen.exe" /useSourcePath /r:D:\a\1\s\packages\DocumentFormat.OpenXml.2.8.1\lib\net40\DocumentFormat.OpenXml.dll /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Core.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.DataSetExtensions.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Deployment.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Net.Http.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Runtime.Serialization.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Web.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.Linq.dll" /r:D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.ApplicationGuideBL.dll /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\WindowsBase.dll" /compile "My Project\Resources.resx",obj\Release\PrintApplicationGuidePDF.Resources.resources
2019-01-17T17:21:58.8337865Z Processing resource file "My Project\Resources.resx" into "obj\Release\PrintApplicationGuidePDF.Resources.resources".
2019-01-17T17:21:58.8703202Z GenerateTargetFrameworkMonikerAttribute:
2019-01-17T17:21:58.8704065Z Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
2019-01-17T17:21:58.8736923Z CoreCompile:
2019-01-17T17:21:58.8738046Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn\vbc.exe /noconfig /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Data,System.Diagnostics,System.Linq,System.Xml.Linq,System.Threading.Tasks /optioncompare:Binary /optionexplicit+ /optionstrict:custom /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 /optioninfer+ /nostdlib /platform:anycpu32bitpreferred /rootnamespace:PrintApplicationGuidePDF /sdkpath:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2" /highentropyva+ /doc:obj\Release\PrintApplicationGuidePDF.xml /define:"CONFIG=\"Release\",TRACE=-1,_MyType=\"Console\",PLATFORM=\"AnyCPU\"" /reference:D:\a\1\s\packages\DocumentFormat.OpenXml.2.8.1\lib\net40\DocumentFormat.OpenXml.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Core.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.DataSetExtensions.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Data.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Deployment.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Net.Http.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Runtime.Serialization.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Web.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.dll","C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\System.Xml.Linq.dll",D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.ApplicationGuideBL.dll,"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\WindowsBase.dll" /main:PrintApplicationGuidePDF.Module1 /debug:pdbonly /filealign:512 /optimize+ /out:obj\Release\PrintApplicationGuidePDF.exe /ruleset:"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Static Analysis Tools\\Rule Sets\MinimumRecommendedRules.ruleset" /subsystemversion:6.00 /resource:obj\Release\PrintApplicationGuidePDF.Resources.resources /target:exe /utf8output Module1.vb "My Project\AssemblyInfo.vb" "My Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My Project\Settings.Designer.vb" "C:\Users\VssAdministrator\AppData\Local\Temp\.NETFramework,Version=v4.5.2.AssemblyAttributes.vb"
2019-01-17T17:21:58.8741018Z Using shared compilation with compiler from directory: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Roslyn
2019-01-17T17:21:59.5718650Z _CopyFilesMarkedCopyLocal:
2019-01-17T17:21:59.5735372Z Copying file from "D:\a\1\s\packages\DocumentFormat.OpenXml.2.8.1\lib\net40\DocumentFormat.OpenXml.dll" to "bin\Release\DocumentFormat.OpenXml.dll".
2019-01-17T17:21:59.5735521Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.ApplicationGuideBL.dll" to "bin\Release\mycompany.gh.p3.ApplicationGuideBL.dll".
2019-01-17T17:21:59.5735800Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\NLog.dll" to "bin\Release\NLog.dll".
2019-01-17T17:21:59.5735841Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.UsersGuideDataLayer.dll" to "bin\Release\mycompany.gh.p3.UsersGuideDataLayer.dll".
2019-01-17T17:21:59.5735928Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.UsersGuideUtilities.dll" to "bin\Release\mycompany.gh.p3.UsersGuideUtilities.dll".
2019-01-17T17:21:59.5735984Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\Microsoft.AspNet.Identity.EntityFramework.dll" to "bin\Release\Microsoft.AspNet.Identity.EntityFramework.dll".
2019-01-17T17:21:59.5736038Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\Lucene.Net.dll" to "bin\Release\Lucene.Net.dll".
2019-01-17T17:21:59.5736243Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.DATA.dll" to "bin\Release\mycompany.gh.p3.DATA.dll".
2019-01-17T17:21:59.5736283Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\EntityFramework.dll" to "bin\Release\EntityFramework.dll".
2019-01-17T17:21:59.5757263Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\Microsoft.AspNet.Identity.Core.dll" to "bin\Release\Microsoft.AspNet.Identity.Core.dll".
2019-01-17T17:21:59.5775450Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.ApplicationGuideBL.pdb" to "bin\Release\mycompany.gh.p3.ApplicationGuideBL.pdb".
2019-01-17T17:21:59.5776238Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.ApplicationGuideBL.xml" to "bin\Release\mycompany.gh.p3.ApplicationGuideBL.xml".
2019-01-17T17:21:59.5795073Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.ApplicationGuideBL.dll.config" to "bin\Release\mycompany.gh.p3.ApplicationGuideBL.dll.config".
2019-01-17T17:21:59.5805126Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\NLog.xml" to "bin\Release\NLog.xml".
2019-01-17T17:21:59.5805484Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.UsersGuideDataLayer.xml" to "bin\Release\mycompany.gh.p3.UsersGuideDataLayer.xml".
2019-01-17T17:21:59.5805836Z Copying file from "D:\a\1\s\packages\DocumentFormat.OpenXml.2.8.1\lib\net40\DocumentFormat.OpenXml.xml" to "bin\Release\DocumentFormat.OpenXml.xml".
2019-01-17T17:21:59.5806443Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.UsersGuideDataLayer.pdb" to "bin\Release\mycompany.gh.p3.UsersGuideDataLayer.pdb".
2019-01-17T17:21:59.5926801Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.UsersGuideUtilities.pdb" to "bin\Release\mycompany.gh.p3.UsersGuideUtilities.pdb".
2019-01-17T17:21:59.5927177Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.UsersGuideUtilities.xml" to "bin\Release\mycompany.gh.p3.UsersGuideUtilities.xml".
2019-01-17T17:21:59.5927392Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\Lucene.Net.pdb" to "bin\Release\Lucene.Net.pdb".
2019-01-17T17:21:59.5927604Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\Lucene.Net.xml" to "bin\Release\Lucene.Net.xml".
2019-01-17T17:21:59.5927819Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.UsersGuideUtilities.dll.config" to "bin\Release\mycompany.gh.p3.UsersGuideUtilities.dll.config".
2019-01-17T17:21:59.5928236Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.DATA.xml" to "bin\Release\mycompany.gh.p3.DATA.xml".
2019-01-17T17:21:59.5928454Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\Microsoft.AspNet.Identity.EntityFramework.xml" to "bin\Release\Microsoft.AspNet.Identity.EntityFramework.xml".
2019-01-17T17:21:59.5928649Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\mycompany.gh.p3.DATA.pdb" to "bin\Release\mycompany.gh.p3.DATA.pdb".
2019-01-17T17:21:59.5928855Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\EntityFramework.xml" to "bin\Release\EntityFramework.xml".
2019-01-17T17:21:59.5929038Z Copying file from "D:\a\1\s\mycompany.gh.p3.ApplicationGuideBL\bin\Release\Microsoft.AspNet.Identity.Core.xml" to "bin\Release\Microsoft.AspNet.Identity.Core.xml".
2019-01-17T17:21:59.5950222Z Creating "D:\a\1\s\PrintApplicationGuidePDF\obj\Release\PrintApplicationGuidePDF.vbproj.CopyComplete" because "AlwaysCreate" was specified.
2019-01-17T17:21:59.5972301Z _CopyAppConfigFile:
2019-01-17T17:21:59.5972620Z Copying file from "App.config" to "bin\Release\PrintApplicationGuidePDF.exe.config".
2019-01-17T17:21:59.5981528Z CopyFilesToOutputDirectory:
2019-01-17T17:21:59.5981667Z Copying file from "obj\Release\PrintApplicationGuidePDF.exe" to "bin\Release\PrintApplicationGuidePDF.exe".
2019-01-17T17:21:59.5993676Z PrintApplicationGuidePDF -> D:\a\1\s\PrintApplicationGuidePDF\bin\Release\PrintApplicationGuidePDF.exe
2019-01-17T17:21:59.5995953Z Copying file from "obj\Release\PrintApplicationGuidePDF.pdb" to "bin\Release\PrintApplicationGuidePDF.pdb".
2019-01-17T17:21:59.6001750Z Copying file from "obj\Release\PrintApplicationGuidePDF.xml" to "bin\Release\PrintApplicationGuidePDF.xml".
2019-01-17T17:21:59.6034343Z Done Building Project "D:\a\1\s\PrintApplicationGuidePDF\PrintApplicationGuidePDF.vbproj" (default targets).
2019-01-17T17:21:59.6038955Z Done Building Project "D:\a\1\s\GHApplicationGuide.sln" (default targets) -- FAILED.
2019-01-17T17:21:59.6057301Z
2019-01-17T17:21:59.6058362Z Build FAILED.
2019-01-17T17:21:59.6097615Z
2019-01-17T17:21:59.6105865Z "D:\a\1\s\GHApplicationGuide.sln" (default target) (1) ->
2019-01-17T17:21:59.6106021Z "D:\a\1\s\ConsoleApp1\DataImportScript.vbproj" (default target) (7) ->
2019-01-17T17:21:59.6106071Z (ResolveAssemblyReferences target) ->
2019-01-17T17:21:59.6106404Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "System.Data.SqlClient, Version=4.2.0.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:59.6106682Z
2019-01-17T17:21:59.6106905Z
2019-01-17T17:21:59.6107152Z "D:\a\1\s\GHApplicationGuide.sln" (default target) (1) ->
2019-01-17T17:21:59.6107603Z "D:\a\1\s\ConsoleApp1\DataImportScript.vbproj" (default target) (7) ->
2019-01-17T17:21:59.6107852Z (ResolveComReferences target) ->
2019-01-17T17:21:59.6108127Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "2df8d04c-5bfa-101b-bde5-00aa0044de52" version 2.5. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:59.6108541Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "4affc9a0-5f99-101b-af4e-00aa003f0f07" version 9.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:59.6108830Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "4ac9e1da-5bad-4ac7-86e3-24f4cdceca28" version 12.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:59.6109239Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "0002e157-0000-0000-c000-000000000046" version 5.3. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:59.6109525Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3283: Cannot find wrapper assembly for type library "ADODB". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit. [D:\a\1\s\ConsoleApp1\DataImportScript.vbproj]
2019-01-17T17:21:59.6109798Z
2019-01-17T17:21:59.6110709Z
2019-01-17T17:21:59.6111058Z "D:\a\1\s\GHApplicationGuide.sln" (default target) (1) ->
2019-01-17T17:21:59.6111384Z "D:\a\1\s\PrintApplicationGuidePDF\PrintApplicationGuidePDF.vbproj" (default target) (8) ->
2019-01-17T17:21:59.6111727Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "00020905-0000-0000-c000-000000000046" version 8.5. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\PrintApplicationGuidePDF\PrintApplicationGuidePDF.vbproj]
2019-01-17T17:21:59.6112103Z C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2729,5): warning MSB3284: Cannot get the file path for type library "0002e157-0000-0000-c000-000000000046" version 5.3. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) [D:\a\1\s\PrintApplicationGuidePDF\PrintApplicationGuidePDF.vbproj]
2019-01-17T17:21:59.6112444Z
2019-01-17T17:21:59.6112753Z 8 Warning(s)
2019-01-17T17:21:59.6113066Z 0 Error(s)
2019-01-17T17:21:59.6113390Z
2019-01-17T17:21:59.6114014Z Time Elapsed 00:00:37.73
2019-01-17T17:21:59.7031245Z ##[error]Process 'msbuild.exe' exited with code '1'.
2019-01-17T17:21:59.7441685Z ##[section]Finishing: Build solution
thanks
Firstly I suggest you rebuild or even clean your solution and then rebuild or deploy your project.
After this action, if you still have this problem I thought maybe you could try the way in this answer.
Hope this could help you, if you still have other questions, please let me know.
I am trying to run Rscript.exe from the command line. It is installed in:
D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64. I have added this location to my PATH.
When I run
Rscript --version
I get the following:
'D:\Program' is not recognized as an internal or external command,
operable program or batch file.
It is working fine from RStudio. Can't seem to find a solution other than installing in a separate location without spaces in the path name.
EDIT:
where R: D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64\R.exe
where rscript: D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64\Rscript.exe
set PATH:
Path=C:\Program Files\Microsoft MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;D:\Program Files\Python36\Scripts\;D:\Program Files\Python36\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;D:\Program Files\Git\cmd;D:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;D:\Program Files (x86)\Yarn\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;D:\Program Files\MySQL\MySQL Utilities 1.6\;D:\Program Files\CMake\bin;C:\Users\affan.shahid\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\affan.shahid\AppData\Roaming\npm;C:\Users\affan.shahid\AppData\Local\Yarn\bin;D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
Hi when i build my project i get following error
Error 'C:\WS2013\Internet\packages\Microsoft.Bcl.1.1.10\lib\net40\System.Threading.Tasks.dll' and 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\Facades\System.Threading.Tasks.dll'. Remove one of the duplicate references. Portal.Web C:\WS2013\Internet\Portal.Web\CSC
i am running vs 2015 on windows 10 machine
Unload the project, open the csproj file and remove the references by hand (remove package)
<Reference Include="Microsoft.Threading.Tasks">
<HintPath>...... Microsoft.Threading.Tasks.dll</HintPath>
</Reference>
#Edit
Remove Microsoft.BCL package