SampleExternalModule: Post-Build Event Failed

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/25/2006 6:56:36 AM
Gravatar
Total Posts 146

SampleExternalModule: Post-Build Event Failed

Hello

I can to see that is SampleExternalModule project, that it throw error when I build all mojoportal. All other project into mojoportal -if I Build them- compile fine, but If I to build SampleExternalModule the error is clear: Post-Build Event Failed.

Really that it is dark to me, if anybody have a light, please show me the way...   

Thanks in advance...
5/25/2006 7:12:03 AM
Gravatar
Total Posts 92

Re: SampleExternalModule: Post-Build Event Failed

Right Click the project, Properties, Build Events, Post-build Event Command Line.
I changed the post build to this on my external modules that I wrote...

xcopy /s /y "$(ProjectDir)*.ascx" "$(SolutionDir)Web\Modules\"
xcopy /s /y "$(ProjectDir)*.aspx" "$(SolutionDir)Web\"
xcopy /s /y "$(TargetPath)" "$(SolutionDir)Web\bin\"
5/25/2006 8:15:20 AM
Gravatar
Total Posts 18439

Re: SampleExternalModule: Post-Build Event Failed

Thanks Richard,

I think the /y was just what it needed to get rid of the error.

Rueben,

You can get latest from svn trunk to fix that or you can safely ignore it because it is an error that hapens after the build, the build didn't really fail.

To understand what it is, right click the sample external project and go to properties then look at the post build events to see where the command is entered. All it does is copy the dll from the bin folder of the external sample to the bin folder of the web. The /y tells it to overwrite if already there.

This makes it easy so that the needed files from an external project can be copied into the web project after a build. Richard's example is even more complete because it copies more than just the dll so you can have the .ascx and .aspx in the separate project as well and they get copied to the correct locations in the web.

Cheers,

Joe
5/25/2006 9:51:54 AM
Gravatar
Total Posts 146

Re: SampleExternalModule: Post-Build Event Failed

Thanks to both, for your aid. I will put my hands to work...

(More early than late, I will be helping to others in this forum. And more, I am studying English to improve my communication. Yeah!!!! mojoPortal will grow and grow !!!)
You must sign in to post in the forums. This thread is closed to new posts.