This is most likely caused by you having two classes with the same name in your project. To figure out which class is the cause, go to your Tools->Options menu in VS and drill into the "Projects and Solutions->Build And run node. There you can set the
MSBuild output verbostity mode -- change it to "normal" for your profile. This will then allow you to see more information on the build error, and it should pin-point the class name conflict.
Many thanks for that, but I had to change the option to "Detail" to get the exact error. I was trying to build DotNetNuke 4.0. I will post this on the DotNetNuke forum.
Richard.
Target AspNetMerge:
Using "AspNetMerge" task from assembly "C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.Tasks.dll".
The "AspNetMerge" task is using "aspnet_merge.exe" from "C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe".
Utility to merge precompiled ASP.NET assemblies.
Copyright (C) Microsoft Corporation. All rights reserved.
An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'DotNetNuke.UI.Skins.Controls.SolPartMenu' found in assembly 'App_Web_fhh6ifkz'.
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(474,9): error MSB6006: "aspnet_merge.exe" exited with code 1.
Done executing task "AspNetMerge" -- FAILED.
Done building target "AspNetMerge" in project "DNN4_deploy.wdproj" -- FAILED.
Done building project "DNN4_deploy.wdproj" -- FAILED.
I posted on the DNN forums and people seemed to think as DNN4 compiles, deploys(via copy) and runs ok it must be a bug in the Web Deployment Proejcts Beta?
The compilation and web copy support have a fall-back mechanism where if they detect a duplicate class name they can split it out into a separate assembly. The problem is that you've configured the web deployment project to emit a single assembly -- in
which case obviously it can't split it out (or it would defeat your intent).
What I'd recommend is doing a Quick Find (Ctrl F) for classes named "'DotNetNuke.UI.Skins.Controls.SolPartMenu". This is the class that is defined twice in the project and causing the problem. You'll want to delete or rename one of
them -- in which case it will build fine.
Are you using the standard DotNetNuke download, or have you made changes to it? If the former, the I will go ahead and try it out on my own machine to try and see if I get the same error.
>>> To figure out which class is the cause, go to your Tools->Options menu in VS and drill into the "Projects and Solutions->Build And run node. There you can set the MSBuild output verbostity mode -- change it to "detailed" for your profile. This will
then allow you to see more information on the build error.
What is the error message that shows up in the output window when you build with this MsBuild verbosity level set?
richbaker
Member
132 Points
27 Posts
Visual Studio 2005 Web Deployment Projects
Nov 24, 2005 10:33 AM|LINK
Running aspnet_merge.exe ...
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe C:\MyProjects\VDN2\VDN2_deploy\Release -o VDN2_deploy -copyattrs
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(474,9): error MSB6006: "aspnet_merge.exe" exited with code 1.
Done building project "VDN2_deploy.wdproj" -- FAILED.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
Could someone tell what this means and how to fix it?
Many thanks
Richard.
ScottGu
All-Star
18320 Points
2008 Posts
Microsoft
Moderator
Re: Visual Studio 2005 Web Deployment Projects
Nov 25, 2005 04:36 PM|LINK
Hi Richard,
This is most likely caused by you having two classes with the same name in your project. To figure out which class is the cause, go to your Tools->Options menu in VS and drill into the "Projects and Solutions->Build And run node. There you can set the MSBuild output verbostity mode -- change it to "normal" for your profile. This will then allow you to see more information on the build error, and it should pin-point the class name conflict.
Hope this helps,
Scott
richbaker
Member
132 Points
27 Posts
Re: Visual Studio 2005 Web Deployment Projects
Nov 28, 2005 08:52 AM|LINK
Many thanks for that, but I had to change the option to "Detail" to get the exact error. I was trying to build DotNetNuke 4.0. I will post this on the DotNetNuke forum.
Richard.
Target AspNetMerge:
Using "AspNetMerge" task from assembly "C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.Tasks.dll".
Task "AspNetMerge"
Running aspnet_merge.exe ...
Command:
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe C:\MyProjects\DNN42\DNN4_deploy\Debug -o DNN4_deploy -debug -copyattrs
The "AspNetMerge" task is using "aspnet_merge.exe" from "C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe".
Utility to merge precompiled ASP.NET assemblies.
Copyright (C) Microsoft Corporation. All rights reserved.
An error occurred when merging assemblies: ILMerge.Merge: ERROR!!: Duplicate type 'DotNetNuke.UI.Skins.Controls.SolPartMenu' found in assembly 'App_Web_fhh6ifkz'.
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(474,9): error MSB6006: "aspnet_merge.exe" exited with code 1.
Done executing task "AspNetMerge" -- FAILED.
Done building target "AspNetMerge" in project "DNN4_deploy.wdproj" -- FAILED.
Done building project "DNN4_deploy.wdproj" -- FAILED.
Build FAILED.
Time Elapsed 00:00:56.56
richbaker
Member
132 Points
27 Posts
Re: Visual Studio 2005 Web Deployment Projects
Dec 01, 2005 10:59 AM|LINK
ScottGu
All-Star
18320 Points
2008 Posts
Microsoft
Moderator
Re: Visual Studio 2005 Web Deployment Projects
Dec 02, 2005 04:36 AM|LINK
Hi Rich,
The compilation and web copy support have a fall-back mechanism where if they detect a duplicate class name they can split it out into a separate assembly. The problem is that you've configured the web deployment project to emit a single assembly -- in which case obviously it can't split it out (or it would defeat your intent).
What I'd recommend is doing a Quick Find (Ctrl F) for classes named "'DotNetNuke.UI.Skins.Controls.SolPartMenu". This is the class that is defined twice in the project and causing the problem. You'll want to delete or rename one of them -- in which case it will build fine.
Hope this helps,
Scott
richbaker
Member
132 Points
27 Posts
Re: Visual Studio 2005 Web Deployment Projects
Dec 02, 2005 01:25 PM|LINK
Hi Scott,
I can only find one definition for the class and it is in a partial class.
Partial Class SolPartMenuRichard.
ScottGu
All-Star
18320 Points
2008 Posts
Microsoft
Moderator
Re: Visual Studio 2005 Web Deployment Projects
Dec 02, 2005 02:45 PM|LINK
Hi Richard,
Are you using the standard DotNetNuke download, or have you made changes to it? If the former, the I will go ahead and try it out on my own machine to try and see if I get the same error.
Thanks,
Scott
richbaker
Member
132 Points
27 Posts
Re: Visual Studio 2005 Web Deployment Projects
Dec 02, 2005 03:25 PM|LINK
Hi Scott,
I am using the standard DotNetNuke 4.0.0 Starter Kit Download from http://dotnetnuke.com/About/Downloads/tabid/125/Default.aspx
Thanks
Richard.
MNF
Member
261 Points
73 Posts
Re: Visual Studio 2005 Web Deployment Projects
Feb 08, 2006 09:42 PM|LINK
Scott,
I have the same error.
Did you find a solution or any workaround?
My Blog: http://geekswithblogs.net/mnf/
ScottGu
All-Star
18320 Points
2008 Posts
Microsoft
Moderator
Re: Visual Studio 2005 Web Deployment Projects
Feb 09, 2006 01:12 AM|LINK
Hi Michael,
Can you try these steps:
>>> To figure out which class is the cause, go to your Tools->Options menu in VS and drill into the "Projects and Solutions->Build And run node. There you can set the MSBuild output verbostity mode -- change it to "detailed" for your profile. This will then allow you to see more information on the build error.
What is the error message that shows up in the output window when you build with this MsBuild verbosity level set?
Thanks,
Scott