TeamCity

Fixing Cannot find module ‘sync-exec’ error with yarn install

Error message:
clientResources\node_modules\uglifyjs-webpack-plugin: Command failed. Cannot find module 'sync-exec'
Reason:
uglifyjs-webpack-plugin 0.4.6 defines this command 
"postinstall": "node lib/post_install.js"
which looks like this
[crayon-5ab5828bf40da710084960/] So if your node instance is older than 0.10, it will fallback to require sync-exec . Unlike execSync which is a builtin module, sync-exec is, or was an old module that you have to install explicitly. If your node instance does not have that installed, boom! (more…)

By vimvq1987, ago
TeamCity

Fixing error MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found

When you build a project with MSBUILD Tools 2017 and getting “MSB4036: The “GetReferenceNearestTargetFrameworkTask” task was not found” error, you probably need to update your MSBUILD Tools components. Download the latest version of MSBUILD tools from https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017, run it, choose Modify and then select “Web development build tools” and “.NET Core Read more

By vimvq1987, ago
Learning

Upgrading to TeamCity 9.x: the JRE headaches

Today I updated our TeamCity server from 8.15 to 9.17. We need to support C# 6.0 so it's an essential move. TeamCity 10 is still EAP and we would wait a couple of months after it comes out to make sure all the plugins are supported. The installation was a breeze - the installer detected there was a previous version and offered to uninstall it. All good. Until there was a browser window opened so I can continue the configuration, but http://localhost/ only returned time out. When I opened the Service Management (services.msc), it looked like the service was not running. I tried to start it, but then it stopped immediately. Events viewer was not exactly helpful, it gave a very obscure information: The description for Event ID 404 from source TeamCity (see below) cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: =============================================================== TeamCity JetBrains JetService v1.1.755.777 c:\TeamCity\bin\TeamCityService.exe Service process exited without service stop request =============================================================== (more…)

By vimvq1987, ago
Configuration

C# 6.0/Visual Studio 2015 on TeamCity

At first you will have to update to TeamCity 9.x (9.1.7 at the time of this post) to support Visual Studio 2015 compilation. After upgrading (with some hassles, of course, but you'll figure out), you'll have TeamCity 9.x up and running. Now the time for some configuration. Change your compiler in build definition to Visual Studio 2015 and you are ready to go! Change the Visual Studio to 2015 Change the Visual Studio to 2015 Not so fast. You will soon notice that most (if not all) of your build agents are not unusable. [caption id="" align="alignnone" width="581"]MSBuildTools14.0_x86_Path does not exists MSBuildTools14.0_x86_Path does not exists[/caption] Solution? Download and install Microsoft Build Tools 2015 from https://www.microsoft.com/en-us/download/details.aspx?id=48159 (more…)

By vimvq1987, ago