Questions tagged [pre-build-event]

An event to run scripts, macros or other actions before compilation.

Build events can be used to run scripts, macros, or other custom actions as a part of the compilation process.

Post-build events occur before compilation. These actions (if specified) are executed just before compilation.

How to specify build event - MSDN

190 questions
0
votes
0 answers

Visual Studio Pre-build event to change executable name

I have a program in which I run several instances of simultaneously, but with different configurations. I have each configuration tied to a different Application configuration(ie the default for VS are debug and release). How do I make each…
user871289
  • 174
  • 1
  • 8
0
votes
2 answers

Can't build my service : Unable to copy file because it is being used by another process

I build a windows service in c# .net. I added Pre-Build and Post-Build event to automatically deploy my service on the build. But sometime I got this error : Unable to copy file "[CompletPath...]\bin\Debug\Business.Data.dll" to …
0
votes
1 answer

Setting a VS2010 environment variable from a batch file?

I'm using a batch file to define some variables that will be used in my program. I want the batch file to change the environment variable and use it in my code , but it's just now working - the macro is not being changed. to be more specific and…
0
votes
1 answer

how to add environment variables in VS2010 using .bat file?

I have a batch file with this code: @echo off set VAR=7 echo the version is %VAR% I want to add this .bat file to my visual studio project, using pre-build event. I wrote in the pre build event the path to the batch file, but then when I enter the…
0
votes
1 answer

How and Why do Visual Studio and cmd.exe handle batch file differently

The following is a program is supposed to run as a pre-build event in VS. It works from the directly from command line but not in VS. @echo off :: Direct From cmd.exe :: "G:Google Drive\GitHub\toolset\Site\pre-build.bat" Release "G:Google…
roydukkey
  • 3,149
  • 2
  • 27
  • 43
0
votes
1 answer

Visual Studio Pre/Post Build Event - Copy files to Directory in setup project

i have one folder in setup project called "SSRS_Repor". now i want that when i will create setup for my project then i want to copy all files from a folder exist in my project called "report" to folder SSRS_Repor exist in setup project. please guide…
Thomas
  • 33,544
  • 126
  • 357
  • 626
0
votes
1 answer

best practice to avoid rebuild in vs2010

I have a solution that one of its projects takes too long to compile and rarely changes. That means that if a developer "ReBuild" the whole solution it will take time (though nothing was changed in this specific project). I was suggested maybe to…
user1025852
  • 2,684
  • 11
  • 36
  • 58
0
votes
1 answer

vs.net multi pre-build commands

Hi all I have an external project and I want to build it in the main project for that I'm using pre-build commands.I want to use multi commands for copying aspx pages and ascx usercontrols to sercontrol folder. When I use one command it works but…
dankyy1
  • 1,094
  • 2
  • 16
  • 32
-1
votes
1 answer

Update nuget package for ASP.NET Web Application

When I create a ASP.NET Web Application (.net framework), there are dozens of packages are installed by default. In the development of our projects, we need to update some of those default nuget packages. I know I could use nuget update in the…
user8579173
-1
votes
2 answers

NodeJS "Pre build events"

I need to run some "pre-build" event that generates javascript automatically, I don't want my main app file "server.js" to be huge, How can I execute external js files independently, and only than start the server
Uri Goren
  • 13,386
  • 6
  • 58
  • 110
1 2 3
12
13