473,322 Members | 1,232 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

msbuild afterbuild not executed

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 Name="BeforeBuild">
<Message Text="This is the BeforeBuild target" Importance="normal"/
>
</Target>
<Target Name="BeforeMerge">
</Target>
<Target Name="AfterMerge">
</Target>
<Target Name="AfterBuild">
<Message Text="This is the AfterBuild target" Importance="normal"/
>
</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\aspn et_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.wdpr oj".
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

Apr 30 '07 #1
0 1368

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Uma Abhyankar | last post by:
Hello, I am using .NET Beta1 Visual Studio. I have to invoke VCBuild through MSBuild on command prompt. I have following issues: Issue1: -------- MSBuild invokes VCBuild internally....
1
by: Uma Abhyankar | last post by:
Hello All, I was facing an issue with VCBuild on Beta1. Today after shifting to .NET Beta2, it looks like the issue is still not resolved :-( I have to invoke VCBuild through MSBuild on command...
4
by: cisco | last post by:
could not find anything specific to this but does anyone know of msbuild has a new quick start tutorials. The only one i can find seem to be for the preview version of msbuild. Is thiis the only...
5
by: Al | last post by:
Hi all We have created a xml file that imports a single project using the Import element. This project compiles to a class library, but has references to two other projects that are also class...
0
by: ccallen | last post by:
How to print msbuild <Messageto the VS 2005 output window, from an msbuild file that is loaded into VS? After reading Don Boxs' "MSBuild for MAKEFILE converts" , I copied the snippet, for point...
0
by: Grant | last post by:
Hi, The TargetDir alias is empty when using it in the AfterBuild section of a Web Deployment Project. As per the MSDN article Using Web Deployment Projects with Visual Studio 2005, I have the...
3
by: Danny | last post by:
Hi I trying to master msBuild but have a problem. I have a solution that I wish to build using msbuild but want to override BeforeBuild/AfterBuild targets for each of the projects. I trying to...
0
by: Karel Kral | last post by:
Hello, I have medium-sized solution in VB.NET (70 000 lines). The project compiles ok under VS2005, without any errors, without any warnings. But when I compile the same solution under MSBuild...
7
by: shapper | last post by:
Hello, I am working on an ASP.MET MVC Web Application with NET 3.5 in VS 2008. I need to run some extra tasks on this project build so I download MSBuild from http://msbuildtasks.tigris.org/....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.