473,725 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.WebDe ployment.target s.
-->
<Target Name="BeforeBui ld">
<Message Text="This is the BeforeBuild target" Importance="nor mal"/
>
</Target>
<Target Name="BeforeMer ge">
</Target>
<Target Name="AfterMerg e">
</Target>
<Target Name="AfterBuil d">
<Message Text="This is the AfterBuild target" Importance="nor mal"/
>
</Target>

and this is my result :

C:\Documents and Settings\admini strator.DEVNET\ My Documents\Visua l
Studio 2005\WebSites\I TDesign.Inits.U pdateContactsWe b
\Default.aspx.c s(397,14): warning CS0162: Unreachable code detected
Validation Complete
------ Rebuild All started: Project:
ITDesign.Inits. UpdateContactsW eb_deploy1, Configuration: Debug Any CPU
------
C:\WINDOWS\Micr osoft.NET\Frame work\v2.0.50727 \aspnet_compile r.exe -v /
ITDesign.Inits. UpdateContactsW eb -p "C:\Documen ts and Settings
\administrator. DEVNET\My Documents\Visua l Studio 2005\WebSites
\ITDesign.Inits .UpdateContacts Web" -u -f -c -d "C:\Documen ts and
Settings\admini strator.DEVNET\ My Documents\Visua l Studio 2005\Projects
\ITDesign.Inits .UpdateContacts Web
\ITDesign.Inits .UpdateContacts Web_deploy1\Deb ug\\"
c:\Documents and Settings\admini strator.DEVNET\ My Documents\Visua l
Studio 2005\WebSites\I TDesign.Inits.U pdateContactsWe b
\Default.aspx.c s(397): warning CS0162: Unreachable code detected
Running aspnet_merge.ex e ...
C:\Program Files\MSBuild\M icrosoft\WebDep loyment\v8.0\as pnet_merge.exe
"C:\Documen ts and Settings\admini strator.DEVNET\ My Documents\Visua l
Studio 2005\Projects\I TDesign.Inits.U pdateContactsWe b
\ITDesign.Inits .UpdateContacts Web_deploy1\Deb ug" -o
ITDesign.Inits. UpdateContactsW eb_deploy1 -debug -copyattrs
Successfully merged 'C:\Documents and Settings\admini strator.DEVNET\ My
Documents\Visua l Studio 2005\Projects\I TDesign.Inits.U pdateContactsWe b
\ITDesign.Inits .UpdateContacts Web_deploy1\Deb ug'.
Done building project
"ITDesign.Inits .UpdateContacts Web_deploy1.wdp roj".
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========

Apr 30 '07 #1
0 1391

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

Similar topics

2
5834
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. However it invokes VCBuild without
1
2071
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 prompt. I have following issue: Issue: -------- MSBuild can invoke VCBuild internally. However it invokes VCBuild without
4
1771
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 one out there? Appreciate it, Cisco
5
4470
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 libraries. We are having a path reference issue for the depending projects; if the build is started in another directory than that of the imported project. (It's a simple cannot find project xyz.csproj, build fails.) If we place the xml file in...
0
3585
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 2, into a text file (test.csproj) and loaded the project into Visual Studio. That was cool, I could see the project and the code file (f1.txt) displayed in the Solution Explorer. After building it a few times, I wanted to see the exact order that...
0
1284
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 following code. The Upload directory is created in the root of my C: drive instead of the release directory of the build. <Target Name="AfterBuild">
3
6837
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 avoid modifying the common.targets etc and the individual project .sln files and just do it within a solution proj. One method I've tried, is to create the .proj file from the .sln file using the msbuildemitsolution enviroment flag- base upon
0
1180
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 (from command line), strange things happenes. Compiler executed by MsBuild reports unknown types where it should by known. After whole day of investigation is have found, that imported namespaces are randomly "lost".
7
2420
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/. I installed it but no new project type shows in my VS 2008.
0
8889
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9179
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8099
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.