Hello folks, When I tried to build the Store (MSIX) version of my application via Windows application packaging project
in VS 2022, I got the following errors:
......
1>Generating code
1>Finished generating code
1>StartupTask.vcxproj -> C:\....\Release\StartupTask.exe
1>Automatic MOC for target MyApplication
**after a while...
**
1>Child node "4" exited prematurely. Shutting down. Diagnostic information may be found in files in "C:\....\Temp\MSBuildTemp\" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
1>C:\....\Temp\MSBuildTemp\MSBuild_pid-18684_d6ae519576884d319a97c37f0006ed4e.failure.txt:1>UNHANDLED EXCEPTIONS FROM PROCESS 18684:
1>=====================
1>5/20/2024 7:22:27 PM
1>System.IO.IOException: Insufficient system resources exist to complete the requested service.
1>
1> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
1> at System.IO.Pipes.PipeStream.BeginWriteCore(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
1> at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
1> at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
1>===================
1>
1>
1>C:\Users\...\Temp\MSBuildTemp\MSBuild_pid-28480_31fcd563a2c9411192e8b7de35718108.failure.txt:
1>UNHANDLED EXCEPTIONS FROM PROCESS 28480:
1>=====================
1>5/20/2024 7:22:26 PM
1>System.IO.IOException: Insufficient system resources exist to complete the requested service.
1>
1> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
1> at System.IO.Pipes.PipeStream.BeginWriteCore(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
1> at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
1> at Microsoft.Build.BackEnd.NodeEndpointOutOfProcBase.RunReadLoop(Stream localReadPipe, Stream localWritePipe, ConcurrentQueue`1 localPacketQueue, AutoResetEvent localPacketAvailable, AutoResetEvent localTerminatePacketPump)
1>===================
....
I'm not sure if this problem is merely related to resources, cause CPU and RAM usage never hit the limits.
I tried to stop some Event Trace Sessions
in the Performance Monitoring
window but it didn't help.
Do you have any suggestions?
Note that I can build the solution successfully from Build -> Build Solution. The problem occurs when I try to Create App Packages...
Machine's configurations:
Processor: 13th Gen Intel(R) Core(TM) i7-13650HX 2.60 GHz - 14 cores, 20 logical processors RAM: 32.0 GB
OS: Windows 11 Home