Questions tagged [custom-build-step]

79 questions
2
votes
2 answers

Visual Studio 2010 and protobuf-csharp-port

We're using Jon Skeet's proto-csharp-port, and I'm running into some difficulties when mixing it with ReSharper in Visual Studio 2010. We generate the .cs files via a custom MSBuild target, hooked up as follows:
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
2
votes
1 answer

Customize Maven to automatically create ANTLR4 grammar java files on build

How can I compile an ANTLR4 grammar as a first step of maven build? Creating a grammar from *.g4 file manually is pretty straightforward - on linux one needs just to run java -jar /usr/local/lib/antlr-4.0-complete.jar grammarName.g4 from console.…
kajman
  • 1,066
  • 11
  • 24
1
vote
0 answers

How do I make a custom build tool execute before the compiler runs in Visual Studio 2008?

I have a custom tool I need to run before a build in Visual Studio 2008. The tool generates C++ code based on custom input files, therefore I need it to run before Visual Studio starts compiling the C++. I have it set up with a custom build rule,…
Charles Randall
  • 6,920
  • 12
  • 33
  • 38
1
vote
1 answer

Can pre-build events affect the defines and the include paths of a Visual Studio project?

Is it possible to modify the list of defines/include paths passed to the Visual Studio compiler from a pre-build step?
Geo
  • 93,257
  • 117
  • 344
  • 520
1
vote
0 answers

Add build step to the TypeScript compiler for composite projects

Is there a way I can hook into the command tsc --build in order to leverage an extra build-step in composite TypeScript projects? I have a monorepo with many TypeScript projects. But each one needs an extra step when building, which converts Joi…
shennan
  • 10,798
  • 5
  • 44
  • 79
1
vote
1 answer

TFS Build Step - Encountered error TF400893: Unable to contact the server. Please check your network connection and try again

When reviewing the build steps on an Azure DevOps build, when I click on a given build step to get the details, instead of seeing the build detail output, I get the error: TF400893: Unable to contact the server. Please check your network connection…
CJBS
  • 15,147
  • 6
  • 86
  • 135
1
vote
1 answer

Visual studio stopped performing custom build steps

Not sure how to address this problem, maybe someone has faced this before and can give a hint where to look. The problem is that my visual studio project has proto file with a custom build tep assigned to it: ..\*some path to a protoc.exe*\protoc…
drone
  • 43
  • 1
  • 9
1
vote
2 answers

Possible to ignore vs2005 custom build step failure?

I have a visual studio 2005 project with a custom build step that copies a library file to the target applications plugin directory. This works fine, but in the case where I have the target application open it fails, understandably. The problem with…
MM.
  • 4,224
  • 5
  • 37
  • 74
1
vote
1 answer

Always run Custom Build Event in Visual Studio (without VC++)

How can I always run a custom script in Visual Studio 2015, even if nothing has changed... but using VS without VS++ installed? I effectively want to do the same as this question however, my installation of Visual Studio 2015 does not have VC++…
freefaller
  • 19,368
  • 7
  • 57
  • 87
1
vote
1 answer

TFS 2018 - Custom Build Task with boolean parameters

I've created a custom build task and its extension for TFS 2018. Two of my parameter are boolean. On task.json I set the default value to false. When I execute a build definition with my task I get the following…
FEST
  • 813
  • 2
  • 14
  • 37
1
vote
1 answer

How do I set up this visual studio (2015) custom build step (tool?). Basically I want a pre-preprocessor step that modifies header files (c++)

I want a run a build step that looks at a .h file, adds some code based on some external params, and hands the resulting file to the preprocessor. I see the "Custom Build Step" in the project properties. It seems to need an output file. I just…
SolarisPol
  • 103
  • 8
1
vote
0 answers

Behaviour MSBuild in VisualStudio 2015 differs from MSBuild in Console

Affects: Visual C++ in Visual Studio 2015 When I start a build on my project in the VS-Solution it compiles all the project's source files. If I do it again and I have nothing changed, the build is up to date. But if I build from console…
1
vote
1 answer

Visual Studio, Copy Solution to Folder On Build

I'm looking for a way to add an extra build step which will create a backup copy of my entire solution. I want it to do this only if a file in the solution, or the entire solution itself, is not present in the destination folder or flashdrive…
Krythic
  • 4,184
  • 5
  • 26
  • 67
1
vote
2 answers

Cumulative Custom Build Steps in Visual Studio

Is it possible to have cumulative custom build steps in Visual Studio? What I want to do is have a if not exist "$(OutDir)" mkdir "$(OutDir)" as a custom step for ALL configurations (current and possible future ones) But for a specific…
1
vote
1 answer

VS 2015 "Build Dependencies -> Build Customization" always triggers PreBuild and PostBuild

I have a VS 2015 C++ project with both PreBuild and PostBuild steps. In addition I have a Custom Target added to the project by "Build Dependencies -> Build Customization". The Custom Target runs a Perl script which runs nmake building files with…