msbuild afterbuild not executed

K

kaza

Hi,

I am trying to execute some commands in afterbuild event but they
simply wont fire. tried it on two different machines but I could not
get it to work

thanks

hier is my xml code :
<!-- To modify your build process, add your task inside one of the
targets below and uncomment it.
Other similar extension points exist, see
Microsoft.WebDeployment.targets.
-->
</Target>
<Target Name="BeforeMerge">
</Target>
<Target Name="AfterMerge">
</Target>
</Target>

and this is my result :

C:\Documents and Settings\administrator.DEVNET\My Documents\Visual
Studio 2005\WebSites\ITDesign.Inits.UpdateContactsWeb
\Default.aspx.cs(397,14): warning CS0162: Unreachable code detected
Validation Complete
------ Rebuild All started: Project:
ITDesign.Inits.UpdateContactsWeb_deploy1, Configuration: Debug Any CPU
------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe -v /
ITDesign.Inits.UpdateContactsWeb -p "C:\Documents and Settings
\administrator.DEVNET\My Documents\Visual Studio 2005\WebSites
\ITDesign.Inits.UpdateContactsWeb" -u -f -c -d "C:\Documents and
Settings\administrator.DEVNET\My Documents\Visual Studio 2005\Projects
\ITDesign.Inits.UpdateContactsWeb
\ITDesign.Inits.UpdateContactsWeb_deploy1\Debug\\"
c:\Documents and Settings\administrator.DEVNET\My Documents\Visual
Studio 2005\WebSites\ITDesign.Inits.UpdateContactsWeb
\Default.aspx.cs(397): warning CS0162: Unreachable code detected
Running aspnet_merge.exe ...
C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\aspnet_merge.exe
"C:\Documents and Settings\administrator.DEVNET\My Documents\Visual
Studio 2005\Projects\ITDesign.Inits.UpdateContactsWeb
\ITDesign.Inits.UpdateContactsWeb_deploy1\Debug" -o
ITDesign.Inits.UpdateContactsWeb_deploy1 -debug -copyattrs
Successfully merged 'C:\Documents and Settings\administrator.DEVNET\My
Documents\Visual Studio 2005\Projects\ITDesign.Inits.UpdateContactsWeb
\ITDesign.Inits.UpdateContactsWeb_deploy1\Debug'.
Done building project
"ITDesign.Inits.UpdateContactsWeb_deploy1.wdproj".
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
 
Joined
Nov 26, 2008
Messages
1
Reaction score
0
Did you check in the .proj file

Make sure you add your target to your .proj file in between the ItemGroup and Project nodes:

</ItemGroup>
<Target Name="AfterDropBuild">
<Message Text="AfterDropBuild..." />
</Target>
</Project>

Also, you .proj file needs to be checked in. For you to see your message in the log file, go to Tools -> Options -> Projects and Solutions -> Build and Run -> Set dropdown to 'Normal'

That should work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top