|
|
|
When trying to run MSBuild on a 64bit version of Windows Vista you may
receive the following messages:
|
|
|
|
|
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning
MSB3155:
Item 'Microsoft.Net.Framework.2.0' could not be
located in
'project path here’.
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets(3315,9):
error MSB3147:
Could not find required file 'setup.bin' in
'project path here’.
Done building project "project name
here" -- FAILED.
|
|
|
|
|
|
|
|
|
|
This is due to an inability to find the correct path to the ‘Bootstrapper’
component for a ClickOnce build.
|
|
|
|
|
I have a workaround for this which is my own workaround, not an official one –
at the time of writing I can find nothing on the subject – and comes on the
absolute understanding that if you use it, you do so at your own risk and I
shall NOT be liable in any way.
|
|
|
|
|
You must also appreciate that I am not the world’s most knowledgeable
person when it comes to the Microsoft areas of the Windows registry and
there may already be a far more reasonable solution available. Once I discover
that the problem is ‘fixed’ in some way, I’ll remove this page. GBS 1.5.08 |
|
|
|
|
Finally, be warned that
this will most likely break with future system updates or installs or even
worse, may cause your development process to break. So be wary. |
|
|
|
|
|
|
|
|
|
1 |
First of all, locate the ‘Bootstrapper’ folder. This will be most likely be
found here: |
|
|
|
|
|
C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A |
|
|
|
|
|
|
|
|
|
2 |
Copy this folder to here: |
|
|
|
|
|
C:\Program Files\Microsoft SDKs\Windows\v6.0A |
|
|
|
|
|
|
|
|
|
3 |
Open ‘Regedit’ and navigate to the following Key: |
|
|
|
|
|
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework |
|
|
|
|
|
|
|
|
|
4 |
Look for a string value in this Key called sdkInstallRootv2.0. If it
doesn’t exist create it. |
|
|
|
|
|
|
|
|
|
5 |
Set the value of sdkInstallRootv2.0 to the Bootstrapper folder path: |
|
|
|
|
|
C:\Program Files\Microsoft SDKs\Windows\v6.0A |
|
|
|
|
|
|
|
|
|
6 |
Next, navigate to this Key: |
|
|
|
|
|
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework |
|
|
|
|
|
|
|
|
|
7 |
Again - look for a string value in this Key called sdkInstallRootv2.0. If
it doesn’t exist create it. |
|
|
|
|
|
|
|
|
|
8 |
Set the value of sdkInstallRootv2.0 to the Bootstrapper folder path: |
|
|
|
|
|
C:\Program Files\Microsoft SDKs\Windows\v6.0A |
|
|
|
|
|
|
|
|
|
9 |
Try MSBuild. Hopefully it should work now. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Keywords: |
|
|
|
|
MSBuild Wow6432Node sdkInstallRootv2.0 warning MSB3155 error MSB3147 Setup bin
Microsoft Windows Software Development Kit for Windows Vista Update
(6000.16384.10) .Net Framework v2.0.50727 Common targets Bootstrapper ClickOnce
SDK |
|
|
|
|
|
|
|
|
|
|
|
|
|