TeamCity-未满足的要求(DotNetFramework4.0_x86) [英] TeamCity - Unmet requirements (DotNetFramework4.0_x86)

查看:33
本文介绍了TeamCity-未满足的要求(DotNetFramework4.0_x86)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将TeamCity更新为最新版本.(10.0版42002)

从那时起,构建代理无法构建我的任何项目.

代理告诉我以下内容:

 未满足的要求:存在DotNetFramework4.0_x86 

要解决此问题,我已经做了此stackoverflow问题中建议的操作: TeamCity Agent缺少DotNetFramework4.0_x86,但不是吗?

不幸的是,它不起作用.因此,我查看了日志文件,但没有发现任何奇怪的内容.然后,我查看了代理配置参数.我发现了:

  DotNetFramework4.6.01055_x64_Path C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319DotNetFramework4.6.01055_x86_Path C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319DotNetFramework4.6_x64 4.6.01055DotNetFramework4.6_x64_Path C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319DotNetFramework4.6_x86 4.6.01055DotNetFramework4.6_x86_Path C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 

如您所见,.NET 4.0 Framework已映射到 DotNetFramework4.6 .对我来说,这似乎是个问题.

有人知道我该怎么做才能解决这个问题?

解决方案

我使用了格雷格B的工作,发现了

I recenlty updated my TeamCity to the newest Version. (10.0 build 42002)

Since then the build agent can't build any of my projects.

The agent tells me the following:

Unmet requirements: DotNetFramework4.0_x86 exists 

To solve this problem I already did what was suggested in this stackoverflow question: TeamCity Agent Missing DotNetFramework4.0_x86, but not?

Sadly it doesn't work. So I looked at the log files but didn't find anything weird. Then I looked at the agent configuration paramets. I found this:

DotNetFramework4.6.01055_x64_Path    C:\Windows\Microsoft.NET\Framework64\v4.0.30319
DotNetFramework4.6.01055_x86_Path    C:\Windows\Microsoft.NET\Framework\v4.0.30319
DotNetFramework4.6_x64               4.6.01055
DotNetFramework4.6_x64_Path          C:\Windows\Microsoft.NET\Framework64\v4.0.30319
DotNetFramework4.6_x86               4.6.01055
DotNetFramework4.6_x86_Path          C:\Windows\Microsoft.NET\Framework\v4.0.30319

As you can see the .NET 4.0 Framework is mapped to DotNetFramework4.6. For me this seems to be the problem.

Has someone an idea what I can do to fix this?

解决方案

I used the work around from Greg B found here to solve the problem.

To get the agent back running you need to insert following lines to the config of the agent. (For example located here: C:\TeamCity\buildAgent\conf\buildAgent.properties)

DotNetFramework4.0_x86_Path=C\:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319
DotNetFramework4.0_x86=4.0.30319
DotNetFramework4.0_x64_Path=C\:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319
DotNetFramework4.0_x64=4.0.30319

  1. I stopped the agent in the windows services
  2. I pasted the parameters in the buildAgent.properties
  3. I started the agent in the windows services

As far as I understand JetBrains fixed a bug in TeamCity and because of this the .NET Frameworks will not be found anymore.

Quote from Evgeniy Koshkin

...in case your tool targeting .net 4.0 as its required runtime you actually should avoid installing .net 4.5(6) on your build agents. in that case TeamCity will report that .net 4.0 runtime is available. But i don't think this limitation of installed .net version makes sence in most of the cases. Before this bug was fixed TeamCity reports the fact '.net 4.0 was previously a runtime on this agent' as '.net 4.0 is a runtime on this agent'. It's a buggy behaviour in my point of view.

这篇关于TeamCity-未满足的要求(DotNetFramework4.0_x86)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆