Questions tagged [post-build-event]

An event to run scripts, macros or other custom actions after 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 after compilation. These actions (if specified) are executed just after compilation.

How to specify build event - MSDN

511 questions
0
votes
1 answer

Visual Studio Build Event xml expanded

I am calling a tool in the post-build event to create MAML documentation. The tool has arguments that can be XML. The problem is that when I use xml in the post-build event, it is expanded: my_tool "blah test" is expanded…
laurian
  • 739
  • 6
  • 18
0
votes
1 answer

assistance with post build event command

I am using the following as a post build event: FOR %%a in ($(ProjectDir)$(OutDir)MyLibrary.*.dll) DO CALL :package %%~na :package "$(SolutionDir)\..\..\..\Packages\NuGet.exe" pack "$(SolutionDir)%1\%1.csproj" -o…
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
0 answers

Create and Copy files in post-build event

I have several build configurations and depending on the configuration chosen, I need to copy the dll to a created folder. Basically, my executable is located on c:\project and my dll is in c:\library. I need to setup a post-buildevent on the dll…
Xaisoft
  • 45,655
  • 87
  • 279
  • 432
0
votes
1 answer

How to script a deployment package for a Class Library with Post-Build events to work on TFS Build

We have a solution with many Class Library projects. These produce a set of DLLs each. The way we want to deploy these is to install them to the GAC. So we can have a script (BAT file) to run Gacutil /i on the DLL. We currently use TFS to build our…
EdmundYeung99
  • 2,461
  • 4
  • 27
  • 43
0
votes
0 answers

Different Postbuilds for different Configuration

Possible Duplicate: How to run Visual Studio post-build events for debug build only I want to execute a postbuild command when compiling my project as Release. If Debug is set, these Postbuilds should not be executed. How to do this? Visual…
0xDEADBEEF
  • 3,401
  • 8
  • 37
  • 66
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
2 answers

Visual Studio 2010 vs. MSBuild Post-Build Events

I have a solution with a number of projects. The main project's assembly's version is inspected in a post-build event and the release notes associated with that version are extracted from Trac RSS and stored as an XML file to be shipped with the…
Cade Roux
  • 88,164
  • 40
  • 182
  • 265
0
votes
2 answers

Changing the OutputPath after build

I have a scenario where I have to change the OutputPath in .csproj file after the build. I'd like to know if there is any way to do this in post build events.
Pavan Navali
  • 242
  • 3
  • 14
-1
votes
1 answer

Visual Studio make build fail based on post build output

When building with Visual Studio we copy a bunch of dlls through the post build event step. Currently the build step looks like such: xcopy if errorlevel 1 goto VCEnd xcopy <...> <...> if errorlevel 1 goto VCEnd ... The…
-1
votes
1 answer

Post Build events in .net

I want to write post build event in one project of class library so that dll will be copied to some spacific directory after project build. thanks
Denish
  • 983
  • 1
  • 13
  • 20
-1
votes
1 answer

Trigger Selenium Tests cases in the post build event

I have a requirement where i have to trigger the selenium test cases for UI testing in the post build event of the TFS build definition (i.e., after the the files have been deployed in the higher environment using udeploy) as part of CI (continuous…
-1
votes
1 answer

The target "PostBuildEvent" does not exist in the project

My application had a post build event in it but I was removing due to some required changes resulting in the following error. The target "PostBuildEvent" does not exist in the project So I went into my projects properties > Build Events to remove…
BlueBarren
  • 321
  • 7
  • 24
-1
votes
2 answers

i want to write a TFS post build script to copy Folder and its contents to drop

I want to execute a post-build script from TFS which copies a folder in my TFS to the Build drop location. I have very little knowledge of how to do this. Kindly provide with the code. I am using VS2015, tfs 2015. i also have VS 2013, TFS 2013
-1
votes
1 answer

Is there an indexer available in MSBuild ItemGroups?

I'm using this stack overflow answer to return the built assembly's @(Version) as an ItemGroup for use in the post-build event. However, I want to have Major and Minor separately, as I only want vMajor.Minor in the post build. To do this, I'd like…
Ehryk
  • 1,930
  • 2
  • 27
  • 47
-1
votes
1 answer

VS2012 Post Build XCopy Exclude Not Working?

I have the following line in my post build events. I want to copy all files and folders except the file types in the excludedfileslist.txt (which current just has .cs in it) to my web project. xcopy /r /d /i /s /y…
YodasMyDad
  • 9,248
  • 24
  • 76
  • 121
1 2 3
34
35