IBM Support

MSB4019 error when building Maximo Anywhere Windows applications

Troubleshooting


Problem

When building Maximo Anywhere windows applications you may receive the following error. error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v\JavaScript\Microsoft.VisualStudio.WJProject.targets" was not found

Symptom

Running 'build all' for Windows results in the following error.

The ' characters around the executable and arguments are
not part of the command.
[exec] Entered w8-build-release.bat
[exec]
[exec] Params
[exec] 1: VISUAL_STUDIO_TOOLS_PATH: ["C:/Program Files (x86)/Microsoft Visual Studio 14.0/Common7/Tools"]
[exec] 2: APPLICATION_NAME: [AssetAudit]
[exec] 3: CONFIGURATION_TARGET: [Release]
[exec] 4: PLATFORM_TARGET: [x64]
[exec] Microsoft (R) Build Engine version 14.0.25420.1
[exec] Copyright (C) Microsoft Corporation. All rights reserved.
[exec]
[exec] Build started 7/24/2017 10:01:56 PM.
[exec] Project "C:\IBM\Anywhere\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.Windows8\AssetAudit.Windows8.jsproj" on node 1 (Clean;Rebuild;Publish target(s)).
[exec] C:\IBM\Anywhere\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.Windows8\AssetAudit.Windows8.jsproj(101,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v\JavaScript\Microsoft.VisualStudio.WJProject.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
[exec] Done Building Project "C:\IBM\Anywhere\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.Windows8\AssetAudit.Windows8.jsproj" (Clean;Rebuild;Publish target(s)) -- FAILED.
[exec]
[exec] Build FAILED.
[exec]
[exec] "C:\IBM\Anywhere\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.Windows8\AssetAudit.Windows8.jsproj" (Clean;Rebuild;Publish target) (1) ->
[exec] C:\IBM\Anywhere\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.Windows8\AssetAudit.Windows8.jsproj(101,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v\JavaScript\Microsoft.VisualStudio.WJProject.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
[exec]
[exec] 0 Warning(s)
[exec] 1 Error(s)
[exec]
[exec] Time Elapsed 00:00:00.23
-build-native-appx: duration 3 seconds
[antcall] Exiting C:\IBM\Anywhere\MaximoAnywhere\anywhere-apps-builder.xml.
-build-all-native-appx: duration 3 seconds
[ant] Exiting C:\IBM\Anywhere\MaximoAnywhere\anywhere-apps-builder.xml.
all-dist: duration 3 seconds

[{"Product":{"code":"SSPJLC","label":"Maximo Anywhere"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.2.1;7.5.2.2;7.6.0.0;7.6.1;7.6.2","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
17 June 2018

UID

swg22006619