0

在我使用 MobileFirst Studio 将我的 MobileFirst 6.3 应用程序迁移到 MobileFirst 7.1 之后,在我的 Windows8 环境中构建时出现错误。该错误指向一个文件,该文件已作为参考添加到我的 jsproj 文件中,但在我的本地文件系统中完全丢失。缺少的文件是 AuthWinRT.targets 文件。

 [exec] 
 [exec] Build started 2/11/2016 1:27:41 PM.
 [exec] Project "C:\HOME\3Q2016-Blue-app-builddeploy-appx\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.jsproj" on node 1 (Clean;Rebuild;Publish target(s)).
 [exec] C:\HOME\3Q2016-Blue-app-builddeploy-appx\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.jsproj(1471,1): error MSB4019: The imported project "C:\HOME\3Q2016-Blue-app-builddeploy-appx\MaximoAnywhere\apps\AssetAudit\windows8\native\AuthWinRT.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:\HOME\3Q2016-Blue-app-builddeploy-appx\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.jsproj" (Clean;Rebuild;Publish target(s)) -- FAILED.
 [exec] 
 [exec] Build FAILED.
 [exec] 
 [exec] "C:\HOME\3Q2016-Blue-app-builddeploy-appx\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.jsproj" (Clean;Rebuild;Publish target) (1) ->
 [exec]   C:\HOME\3Q2016-Blue-app-builddeploy-appx\MaximoAnywhere\apps\AssetAudit\windows8\native\AssetAudit.jsproj(1471,1): error MSB4019: The imported project "C:\HOME\3Q2016-Blue-app-builddeploy-appx\MaximoAnywhere\apps\AssetAudit\windows8\native\AuthWinRT.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)
4

1 回答 1

1

现在您可以将 AuthWinRT.targets 文件(您可以在创建新项目时获取)复制到本机文件夹并重新构建它。同时我们将调查迁移问题。

此外,一旦你有了这个文件,你将不得不选择“x86”或“ARM”或“X64”平台并重建项目。项目不适用于“AnyCPU”。

于 2016-02-12T07:51:51.910 回答