# Msbuild timeout

**URL:** <https://travis-ci.community/t/msbuild-timeout/2545>\
**Category:** Windows\
**Created:** [March 5, 2019, 1:45pm UTC](https://travis-ci.community/t/msbuild-timeout/2545 "2019-03-05T13:45:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tolstenko](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/tolstenko/32/1318_2.png) [@tolstenko](https://travis-ci.community/u/tolstenko)\
**Post date:** [March 5, 2019, 1:45pm UTC](https://travis-ci.community/t/msbuild-timeout/2545/1 "2019-03-05T13:45:51Z")

</div>

Hello guys!

I am facing some weird problems here. When I try to build with mingw everything works fine because it outputs everything.

But if I try to do the same with msbuild.exe, I receive timeout because it doesn’t output anything. I guess it is caused by msbuild.exe running its jobs in a separated shell.

```
$ cd build && msbuild.exe Engine.sln

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

The build has been terminated

```

BTW I tried running with `cmake --build` and the problem persists.

How can I make msbuild.exe work and avoid termination by timeout, and more importantly, how can I get the output going?

Is it possible to use powershell as default and get all the logs?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![abdullahtahiriyo](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@abdullahtahiriyo](https://travis-ci.community/u/abdullahtahiriyo)\
**Post date:** [May 3, 2019, 7:23am UTC](https://travis-ci.community/t/msbuild-timeout/2545/2 "2019-05-03T07:23:48Z")

</div>

Hi there!

Take a look to this work-around:

> [@\[WORK-AROUND\] \[MSVC2017 Windows\] Building succeeds as a PR, but fails when in master](https://travis-ci.community/t/work-around-msvc2017-windows-building-succeeds-as-a-pr-but-fails-when-in-master/3262):
>
> Hi! I am building a c++ solution (FreeCAD) using MSVC2017 in Windows with clcache. This works just fine when I do a pull request. However, when I merge the pull request into master, the build will fail. \*\* Problem description\*\* Inside my travis.yml I have this code: if ["${TRAVIS\_OS\_NAME}" == "windows"]; then cmd.exe /C 'C:\Users\travis\build\FreeCAD\FreeCAD\.travis\build.bat' ... else ... fi build.bat contains this script: echo on call "C:\Program Files (x86)\…

Whether you may apply it or not depends on whether you have deployment secrets or not.

I have not tried to set the secrets\_filter to true AFTER executing msbuild, it may or may not help those setups needing badly secrets for deployment.

Much luck,  
abdullah
