0

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.target error MSB3147: Could not find required file 'setup.bin' in ... folder

I have seen there are similar messages during the time frame of last upgrade of VS for 2012.

I did not find the registry keys on the build server as mentioned in other posts i.e. Could not find required file 'setup.bin'

I appreciate your help.

Community
  • 1
  • 1
tomcat
  • 1,798
  • 2
  • 11
  • 14

2 Answers2

2

Teamcity: error MSB3147: Could not find required file 'setup.bin'

According to this blog entry the bootstrapper files are installed during the .NET Framework SDK/Visual Studio IDE install. It also shows the registry entries that are searched to look for the bootstrapper directory.

If one computer that does not have .Net Framework SDK/Visual Studio IDE installed(such as, build server), none of the registry key would be set.

I did not find the registry keys on the build server as mentioned.

You can install .Net Framework SDK/Visual Studio IDE on the build server to get this registry key. If you don not want to install them, you could manually set it up by following steps:

  1. Copy the whole C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK folder from the local machine with Visual Studio IDE installed to the server.

  2. creating the 14.0 registry key and adding the value:

For 86bits:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\GenericBootstrapper\14.0]
"Path"="C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper"

For 64 bits:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\GenericBootstrapper\14.0]
"Path"="C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper"

enter image description here

Note: Visual Studio must be restarted.

Leo Liu
  • 71,098
  • 10
  • 114
  • 135
  • Thanks. I don't have SDK installed. I tried with bootstrapper false and that also fixed the issue. – tomcat May 09 '17 at 14:22
0

I don't have SDK installed on the server. I have updated the .csproj with

 <PropertyGroup>
     ...
    <BootstrapperEnabled>false</BootstrapperEnabled>
  </PropertyGroup>

That fixed the build.

tomcat
  • 1,798
  • 2
  • 11
  • 14
  • thanks for sharing your solution here, you could mark it as the answer, so it could help other community members who get the same issues. – Leo Liu May 11 '17 at 01:48