MSBuild problem

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/12/2012 3:35:39 PM
ins
Gravatar
Total Posts 5

MSBuild problem

Hi,

I'm trying to build mojoportal using MSBuld. I execute following command in command prompt:

msbuild mojoportal.sln /p:Configuration=Release /p:OutDir=C:\temp\

The build fails whit some errors listed bellow. There are a lot more error of same kind (unable to copy). I listed only first 2. I can also supply the full stdout, but it is pretty big. :)

 

Build FAILED.

"C:\Projects\InsSoft\mojoportal.sln" (default target) (1) -> "C:\Projects\InsSoft\Web\mojoPortal.Web.csproj" (default target) (2) -> (_CopyWebApplicationLegacy target) ->   C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin\mojoPortal.Web.dll" to "C:\temp\_PublishedWebsites\mojoPortal.Web\bin\mojoPortal.Web.dll". Could not find a part of the path 'bin\mojoPortal.Web.dll'. [C:\Projects\InsSoft\Web\mojoPortal.Web.csproj]   C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin\mojoPortal.Web.pdb" to "C:\temp\_PublishedWebsites\mojoPortal.Web\bin\mojoPortal.Web.pdb". Could not find a part of the path 'bin\mojoPortal.Web.pdb'. [C:\Projects\InsSoft\Web\mojoPortal.Web.csproj]

 

 

5/25/2012 2:04:21 PM
ins
Gravatar
Total Posts 5

Re: MSBuild problem

Actually what I'm trying to do is to deploy mojoPortal on AppHarbor cloud. I succeeded but with few ugly hacks.

Please check this, maybe is a "bug" in mojo:

In mojoPortal.Web.csproj file there are a lot of "Content" items which are dlls in the bin folder. To see this item you can open the .csproj with text editor. First such item is "bin\mojoPortal.Web.dll". This item means that the project references his own output as content!!! According to me this content item shouldn't be here! The second one is Brettle.Web.NeatUpload.dll. There is already a reference to this file - <reference> tag. This file is in _libs and it is referenced, so it also cannot be in content. All others are the same, and pdb files.

 

 

Here are all 29 error files with a lot of rubbish output. Please excuse me for that. :(

 

"C:\Projects\InsSoft\AppHarbor.sln" (default target) (1) ->
"C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj" (default target) (9)
->
(_CopyWebApplicationLegacy target) ->
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Web.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bi
n\mojoPortal.Web.dll". Could not find file 'bin\mojoPortal.Web.dll'. [C:\Projec
ts\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Web.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bi
n\mojoPortal.Web.pdb". Could not find file 'bin\mojoPortal.Web.pdb'. [C:\Projec
ts\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\Brettle.Web.NeatUpload.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPorta
l.Web\bin\Brettle.Web.NeatUpload.dll". Could not find file 'bin\Brettle.Web.Nea
tUpload.dll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Business.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.W
eb\bin\mojoPortal.Business.dll". Could not find file 'bin\mojoPortal.Business.d
ll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Business.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.W
eb\bin\mojoPortal.Business.pdb". Could not find file 'bin\mojoPortal.Business.p
db'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Business.WebHelpers.dll" to "c:\temp\_PublishedWebsites\AppHarbor.m
ojoPortal.Web\bin\mojoPortal.Business.WebHelpers.dll". Could not find file 'bin
\mojoPortal.Business.WebHelpers.dll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPo
rtal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Business.WebHelpers.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.m
ojoPortal.Web\bin\mojoPortal.Business.WebHelpers.pdb". Could not find file 'bin
\mojoPortal.Business.WebHelpers.pdb'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPo
rtal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Data.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\b
in\mojoPortal.Data.dll". Could not find file 'bin\mojoPortal.Data.dll'. [C:\Pro
jects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Data.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\b
in\mojoPortal.Data.pdb". Could not find file 'bin\mojoPortal.Data.pdb'. [C:\Pro
jects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Net.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bi
n\mojoPortal.Net.dll". Could not find file 'bin\mojoPortal.Net.dll'. [C:\Projec
ts\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Net.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bi
n\mojoPortal.Net.pdb". Could not find file 'bin\mojoPortal.Net.pdb'. [C:\Projec
ts\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Web.Controls.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPort
al.Web\bin\mojoPortal.Web.Controls.dll". Could not find file 'bin\mojoPortal.We
b.Controls.dll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Web.Controls.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPort
al.Web\bin\mojoPortal.Web.Controls.pdb". Could not find file 'bin\mojoPortal.We
b.Controls.pdb'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Web.Editor.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal
.Web\bin\mojoPortal.Web.Editor.dll". Could not find file 'bin\mojoPortal.Web.Ed
itor.dll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Web.Editor.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal
.Web\bin\mojoPortal.Web.Editor.pdb". Could not find file 'bin\mojoPortal.Web.Ed
itor.pdb'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Web.Framework.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPor
tal.Web\bin\mojoPortal.Web.Framework.dll". Could not find file 'bin\mojoPortal.
Web.Framework.dll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\mojoPortal.Web.Framework.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPor
tal.Web\bin\mojoPortal.Web.Framework.pdb". Could not find file 'bin\mojoPortal.
Web.Framework.pdb'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\Brettle.Web.NeatHtml.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.
Web\bin\Brettle.Web.NeatHtml.dll". Could not find file 'bin\Brettle.Web.NeatHtm
l.dll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\log4net.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bin\log4n
et.dll". Could not find file 'bin\log4net.dll'. [C:\Projects\InsSoft\Web\AppHar
bor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\Lucene.Net.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bin\Lu
cene.Net.dll". Could not find file 'bin\Lucene.Net.dll'. [C:\Projects\InsSoft\W
eb\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\Subkismet.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bin\Sub
kismet.dll". Could not find file 'bin\Subkismet.dll'. [C:\Projects\InsSoft\Web\
AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\Brettle.Web.NeatHtmlTools.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPo
rtal.Web\bin\Brettle.Web.NeatHtmlTools.dll". Could not find file 'bin\Brettle.W
eb.NeatHtmlTools.dll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj
]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\GCheckout.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bin\GCh
eckout.dll". Could not find file 'bin\GCheckout.dll'. [C:\Projects\InsSoft\Web\
AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\MetaDataExtractor.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web
\bin\MetaDataExtractor.dll". Could not find file 'bin\MetaDataExtractor.dll'. [
C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\Highlighter.Net.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\b
in\Highlighter.Net.dll". Could not find file 'bin\Highlighter.Net.dll'. [C:\Pro
jects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\DotNetOpenAuth.pdb" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bi
n\DotNetOpenAuth.pdb". Could not find file 'bin\DotNetOpenAuth.pdb'. [C:\Projec
ts\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\Recaptcha.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bin\Rec
aptcha.dll". Could not find file 'bin\Recaptcha.dll'. [C:\Projects\InsSoft\Web\
AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\Novell.Directory.Ldap.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal
.Web\bin\Novell.Directory.Ldap.dll". Could not find file 'bin\Novell.Directory.
Ldap.dll'. [C:\Projects\InsSoft\Web\AppHarbor.mojoPortal.Web.csproj]
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\M
icrosoft.WebApplication.targets(178,5): error MSB3021: Unable to copy file "bin
\TimelineNet.dll" to "c:\temp\_PublishedWebsites\AppHarbor.mojoPortal.Web\bin\T
imelineNet.dll". Could not find file 'bin\TimelineNet.dll'. [C:\Projects\InsSof
t\Web\AppHarbor.mojoPortal.Web.csproj]

5/31/2012 12:29:55 PM
Gravatar
Total Posts 18439

Re: MSBuild problem

Hi,

If you get the latest code from the repository, I have removed those project file references to dlls in the /bin folder.

My recollection is that I have removed those references before but they come back on their own, but maybe that was only in VS 2008. They don't seem to be coming back on their own now in VS 2010.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.