In the TeamCity Build Agents list, select one of the Build Agents, click the Agent Settings tab, and select Configuration Settings.
Check if the following configurations have the same values as below (assuming you installed .NET 4.0 on the C: drive in your TeamCity build agent):
DotNetFramework4.0_x86 - 4.0.30319 DotNetFramework4.0_x86_Path - C:\Windows\Microsoft.NET\Framework\v4.0.30319
If it is similar or similar, open the TeamCity build configuration that you installed and open the Settings tab, in which the Agent Requirements section has been edited. In this case, check if the conditions for the values of the configuration parameters DotNetFramework4.0_x86 and DotNetFramework4.0_x86_Path , and if they are present, make sure that they correspond to the values indicated above.
Once these values match, this compatibility issue will no longer appear.
source share