This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Msb4062
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 22, 2011
03:20 PM
Standadlone build error with MSBUILD
I am using the standalone 2011 build agent with MSBUILD and am encountering the following error, reported when trying to build the isproj. It is coming from the install shield targets xml.
C:\Program Files (x86)\MSBuild\InstallShield\2011\InstallShield.targets(11,3): error MSB4062: The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be loaded from the assembly Microsoft.Build.Tasks.v3.5. Could not load file or assembly 'Microsoft.Build.Tasks.v3.5' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
The Microsoft dll is in the GAC. Any ideas on how to get past this?
This is using MSBUILD v4. Do I have to use v3.5?
C:\Program Files (x86)\MSBuild\InstallShield\2011\InstallShield.targets(11,3): error MSB4062: The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be loaded from the assembly Microsoft.Build.Tasks.v3.5. Could not load file or assembly 'Microsoft.Build.Tasks.v3.5' or one of its dependencies. The system cannot find the file specified. Confirm that the
The Microsoft dll is in the GAC. Any ideas on how to get past this?
This is using MSBUILD v4. Do I have to use v3.5?
(12) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 23, 2011
06:28 AM
was working fine with build agent 2008
now we migrated on tfs 2010 and installed tfs build service 2010 on msbuild machine
i have the same error
now we migrated on tfs 2010 and installed tfs build service 2010 on msbuild machine
i have the same error
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 23, 2011
08:13 AM
is to copy the Microsoft.Build.Tasks.v3.5.dll from
%WINDOWS%\Microsoft.NET\Framework\v3.5
to
%Program Files%\MSBuild\InstallShield\2011
it worked for me
i will try to find the reason later.
i think there's a problem with the Fusion Policy rules.
%WINDOWS%\Microsoft.NET\Framework\v3.5
to
%Program Files%\MSBuild\InstallShield\2011
it worked for me
i will try to find the reason later.
i think there's a problem with the Fusion Policy rules.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 18, 2012
12:19 AM
I was wondering if this issue had been resolved. I have the same one with 2012SpringLimited Edition?
Calling:
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe MySolution.sln /p:Configuration=Release.
C:\Program Files (x86)\MSBuild\InstallShield\2012SpringLimited\InstallShield.targets(21,3): error MSB4062: The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be loaded from the assembly Microsoft.Build.Tasks.v3.5. Could not load file or assembly 'Microsoft.Build.Tasks.v3.5' or one of its dependencies. The system cannot find the file specified. Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
I have tried setting all configs to target x86 and still no luck. This happens on our build server and my dev box.
Calling:
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe MySolution.sln /p:Configuration=Release.
C:\Program Files (x86)\MSBuild\InstallShield\2012SpringLimited\InstallShield.targets(21,3): error MSB4062: The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be loaded from the assembly Microsoft.Build.Tasks.v3.5. Could not load file or assembly 'Microsoft.Build.Tasks.v3.5' or one of its dependencies. The system cannot find the file specified. Confirm that the
I have tried setting all configs to target x86 and still no luck. This happens on our build server and my dev box.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 18, 2012
03:14 AM
Hi ! We are using IS 2012 LE & TFS 2012.
When using Visual studio 2012 on the build server, the build is successful, but when running Build Definition on TFS we got this :
Copying the file from %WINDOWS%\Microsoft.NET\Framework\v3.5 to %Program Files%\MSBuild\InstallShield\2012SpringLimited does not help.
When using Visual studio 2012 on the build server, the build is successful, but when running Build Definition on TFS we got this :
C:\Program Files (x86)\MSBuild\InstallShield\2012SpringLimited\InstallShield.targets (21): The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be loaded from the assembly Microsoft.Build.Tasks.v3.5. Could not load file or assembly 'Microsoft.Build.Tasks.v3.5' or one of its dependencies. The system cannot find the file specified. Confirm that thedeclaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Copying the file from %WINDOWS%\Microsoft.NET\Framework\v3.5 to %Program Files%\MSBuild\InstallShield\2012SpringLimited does not help.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 19, 2012
03:26 AM
Finally found out solution :
change file InstallShield.targets
so it reads 'AssemblyFile="Microsoft.Build.Tasks.v3.5.dll" '
instead of 'AssemblyName="Microsoft.Build.Tasks.v3.5.dll" '
and copy that dll to the same folder where is InstallShield.targets.
However I don't know why it cannot use this dll from GAC.
change file InstallShield.targets
so it reads 'AssemblyFile="Microsoft.Build.Tasks.v3.5.dll" '
instead of 'AssemblyName="Microsoft.Build.Tasks.v3.5.dll" '
and copy that dll to the same folder where is InstallShield.targets.
However I don't know why it cannot use this dll from GAC.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 13, 2013
03:43 AM
Thank you, tomas.ivan
your replay helped me to fix same problem.
p.s. using Windows 8 with VS2012 and 2012SpringLimited
your replay helped me to fix same problem.
p.s. using Windows 8 with VS2012 and 2012SpringLimited
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 25, 2013
02:33 PM
That solution isn't working for me for some reason.
I get the following error :
error MSB4062: The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be loaded from the assembly C:\Program Files\MSBuild\InstallShield\2012SpringLimited\Microsoft.Build.Tasks.v3.5. Could not load file or assembly 'file:///C:\Program Files\MSBuild\InstallShield\2012SpringLimited\Microsoft.Build.Tasks.v3.5' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
I've copied both the 3.5 and 4.0 build task dll's to the C:\Program Files\MSBuild\InstallShield\2012SpringLimited\ directory, and changed the UsageTasks to AssemblyFile, but for some reason msbuild still isn't working. Any ideas at this point would be greatly appreciated.
Thanks!
I get the following error :
error MSB4062: The "Microsoft.Build.Tasks.AssignProjectConfiguration" task could not be loaded from the assembly C:\Program Files\MSBuild\InstallShield\2012SpringLimited\Microsoft.Build.Tasks.v3.5. Could not load file or assembly 'file:///C:\Program Files\MSBuild\InstallShield\2012SpringLimited\Microsoft.Build.Tasks.v3.5' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
I've copied both the 3.5 and 4.0 build task dll's to the C:\Program Files\MSBuild\InstallShield\2012SpringLimited\ directory, and changed the UsageTasks to AssemblyFile, but for some reason msbuild still isn't working. Any ideas at this point would be greatly appreciated.
Thanks!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2013
01:52 PM
Updating InstallShield.targets using the assembly full name worked for me.
AssemblyName="Microsoft.Build.Tasks.v3.5,Version=3.5.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
Condition="'$(MsBuildToolsVersion)'=='3.5'"/>
AssemblyName="Microsoft.Build.Tasks.v3.5,Version=3.5.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
Condition="'$(MsBuildToolsVersion)'=='3.5'"/>
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 07, 2013
03:14 PM
That worked!
Thank you!
Thank you!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 05, 2013
09:08 AM
randy1234 wrote:
Updating InstallShield.targets using the assembly full name worked for me.
AssemblyName="Microsoft.Build.Tasks.v3.5,Version=3.5.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"
Condition="'$(MsBuildToolsVersion)'=='3.5'"/>
I tried updating the InstallShield.targets and after I do so, it says "The product license has expired or has not yet been initialized". Did you run in to this issue? If so, how'd you get around it? Thankfully, I backed up the file prior and just renamed it back and the license error went away...
I've also tried copying the build tasks DLL as mentioned without any luck.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 05, 2013
02:33 AM
When changing assemblyname to assemblyfile it is mandatory to add .dll suffix to it as msbuild would be looking for the dll without the .dll extension eg Microsoft.Build.Tasks.v3.5 instead of Microsoft.Build.Tasks.v3.5.dll and not find it.
However fixing this introduced a follow up issue with ISWIBuild: -2147221164
However fixing this introduced a follow up issue with ISWIBuild: -2147221164
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 10, 2013
04:23 PM
You shouldn't need to update the InstalShield.targets file at all or copy the .NET assemblies anywhere. Just add /toolsversion:4.0 to your command:
msbuild.exe MySolution.sln /t:Clean;Build /property:Configuration=Release /toolsversion:4.0