.Net Framework 4.0 build ClickOnce application with error MSB3155 and MSB3147

I have a WPF application with clickonce deploy. But when I build with Teamcity 5.1.2 and get following errors:

[23:12:36]: [Project "MyProj.csproj" (Publish target(s)):] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3939, 9): warning MSB3155: Item 'Microsoft.Windows.Installer.3.1' could not be located in 'C:\BuildAgent\work\c909dfd93cb23403\MyProj'.
[23:12:36]: [Project "EnvisionWpfUI.csproj" (Publish target(s)):] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3939, 9): warning MSB3155: Item 'Microsoft.Net.Framework.3.5.SP1' could not be located in 'C:\BuildAgent\work\c909dfd93cb23403\MyProj'.
[23:12:36]: [Project "EnvisionWpfUI.csproj" (Publish target(s)):] C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(3939, 9): error MSB3147: Could not find required file 'setup.bin' in 'C:\BuildAgent\work\c909dfd93cb23403\MyProj\Engine'.

Attachment is my configure.



Attachment(s):
6-1-2010 2-58-33 PM.png
2 comments

Does it work if to start with msbuild on the same machine where build agent running and from the same user account as used to run build agent service?

Do you have .NET 4, +SDK .NET 3.5 + SDK, Silverlight 2.0 and 3.0 installed in the build agent machine?

Please make build agent servide running from some administrative account, but not under LOCAL_SYSTEM

0

Yes, we use the same machine and same user account to run the build agent service.

We have +SDK .NET 3.5 + SDK installed in the build agent machine.

Yes, the service running not under LOCAL_SYSTEM.

But I find a solution http://jake.ginnivan.net/2009/08/clickonce-deployment-in-teamcity/

We need to modify HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\GenericBootstrapper\3.5 if we are running a x64 system.

Thanks.

0

Please sign in to leave a comment.