要重现我的问题,请按以下步骤操作:
结果如下:
将构建发送到远程构建服务器
增量构建:错误
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:" VsTac"任务意外失败。
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:System.IO.FileNotFoundException:找不到文件' C:\ Users \ uadmin \ AppData \ Local \ Temp \ appAsTgz.tgz'。
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:文件名:' C:\ Users \ uadmin \ AppData \ Local \ Temp \ appAsTgz.tgz'
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:在System.IO .__ Error.WinIOError(Int32 errorCode,String maybeFullPath)
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:at System.IO.FileStream.Init(String path,FileMode mode,FileAccess access,Int32 rights,Boolean useRights,FileShare share,Int32 bufferSize,FileOptions options,SECURITY_ATTRIBUTES secAttrs,String msgPath,Boolean bFromProxy,Boolean useLongPath ,布尔检查主持人)
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:at System.IO.FileStream..ctor(String path,FileMode mode,FileAccess access,FileShare share,Int32 bufferSize,FileOptions options,String msgPath,Boolean bFromProxy)
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:在System.IO.FileStream..ctor(字符串路径,FileMode模式)
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:在Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.RemoteBuild.AppAsTgzStream(String changeTimeFile,JObject lastChangeTimesMap)
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:在Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.RemoteBuild.Build()
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:在Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.VsTac.BuildPlatform()
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:在Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.VsTac.Execute()
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:在Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1> C:\ Program Files(x86)\ Microsoft Visual Studio \ 2017 \ Community \ MSBuild \ Microsoft \ VisualStudio \ v15.0 \ ApacheCordovaTools \ vs-mda-targets \ Microsoft.MDA.FileMirroring.targets(256, 5):错误MSB4018:在Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
1>完成建筑项目" BlankCordovaApp1.jsproj" - 失败。
==========构建:0成功,1失败,0最新,0跳过==========
==========部署:0成功,0失败,0跳过==========
Cordova开发团队的任何人都可以考虑这个问题吗?
这是完整Build输出的屏幕截图: https://i.stack.imgur.com/oyPW1.jpg
答案 0 :(得分:3)
从节点8.x +降级到节点6.x并重试。