Questions tagged [prebuild]
87 questions
5
votes
1 answer
Pre-build fragment cache (internal approach)
I want to pre-build a partial that takes a few seconds to render. I have seen functions which use proxies to preload the cache via http, but I would like to have an "internal" solution.
This is my function, which is called whenever myobject is…

Railsana
- 1,813
- 2
- 21
- 30
5
votes
2 answers
Auto-generating C++ code in a pre-build event using Visual Studio
I'm trying to use a pre-build event in Visual Studio (VS 2005 to be specific) to run a Python script which will automatically generate a .cpp file. The trouble I'm running into is that the compiler doesn't seem to know that this file is dirty and…

J. Kyle Pittman
- 53
- 1
- 5
4
votes
2 answers
What's an easy way to access prebuild macros such as $(SolutionDir) and $(DevEnvDir) from code in C#?
Right now I'm thinking write the paths to a file in the pre-build event and then read from that file in the code, but I'm wondering if there's an easier more elegant way.
edit: This is sort of a follow up to Help with one step build all projects +…

Davy8
- 30,868
- 25
- 115
- 173
4
votes
5 answers
Adding prebuilt set of files structured in folders to android out folder
I have glibc compiled for arm which is different from Android glibc or the bionic C as the glibc environment I have complied will help in providing more api's.
Now I can copy the glibc environment on /system/ folder while Android is running, and on…

Rookie
- 735
- 5
- 11
- 30
3
votes
2 answers
Indirect way to reference "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\datasvcutil.exe" in a prebuild event
I am running the datasvcutil.exe command in a prebuild event.
datasvcutil.exe is located in "C:\Windows\Microsoft.NET\Framework64\v4.0.30319" (on 64 bit machines.)
I can just hard code this as…

Vaccano
- 78,325
- 149
- 468
- 850
3
votes
1 answer
howto prebuild on gitpod with haskell and stack
I have checked out https://github.com/gitpod-io/template-haskell
and merged samples for a book (haskell in depth) into my branch.
Prebuilding has no effect, every opening of a workspace begins the entire build process from the beginning. So gitpod…

Michael Fliegner
- 39
- 2
3
votes
1 answer
Best practice to run a prebuild step with CMake
Suppose you have a repository with a folder (named dataset) with several .csv files and a python script (named csvcut.py) that takes all the .csv in dataset and generates corresponding .h files.
Those .h files are included in some .cpp files to…

Alb
- 73
- 3
3
votes
1 answer
Can i set dynamically the name of a shortcut while deploying with the VS Setup Deployment Project?
i would like to publish my application with a name (and desktop shortcut) based on a config file.
So can i dynamically set the name of a shortcut while deploying with the VS Setup Deployment Project?
PS. I mean, we have also the pre-build and the…

OrElse
- 9,709
- 39
- 140
- 253
3
votes
1 answer
I want to run a script during C# build, but **only** when the project is not up to date
I am trying to set up a proper way to do automatic versioning for my C# projects in .Net.
The requirements are:
the assembly is to be built only when is is not up to date. (normal behaviour in Visual Studio and via MSBuild)
When it is built the…

Spiralis
- 3,232
- 2
- 39
- 53
2
votes
2 answers
How to make a C macro pre-build pre-processor?
Let's say I have a string that I would like to obfuscate in my code. (This example is just for learning.)
My plan is to wrap the string literal with a macro, e.g.
#define MY_STRING "lol"
const char *get_string() { return…

user541686
- 205,094
- 128
- 528
- 886
2
votes
1 answer
How to set Unity SplashScreen Logo in Prebuild
We are trying to programatically generate and set the Unity SplashScreen for Android and iOS.
The code below works when called from Unity [MenuItem("VoodooSauce/TEST")] but doesn't work when called from IPreprocessBuildWithReport-OnPreprocessBuild…

user3211306
- 388
- 1
- 4
- 12
2
votes
2 answers
cmake 2.8 custom target to copy multiple files
I am compelled to use an older cmake version 2.8.12, in a Linux environment.
As a pre-build step, I must copy multiple header files from a source directory to a destination directory. I decided to use the add_custom_target clause. If that in…

Mike Finch
- 746
- 1
- 7
- 20
2
votes
2 answers
Visual Studio Setup Project-- adding prebuild step
I want to make my build process for producing a setup project to be a single click. However, I also want to add {smartassembly} to the build step to obfuscate the build, but only on our build machine. How can I add a pre-build step to a visual…

mmr
- 14,781
- 29
- 95
- 145
2
votes
1 answer
How to set the local cpp source path in Android studio for prebuild library
I created an App which includes our source code as a native lib (so-file). I'm able to step into it and everything works fine so far with this code.
This native lib links against another native lib which was pre-build on a different machine and…

Sebastian
- 91
- 7
2
votes
1 answer
Visual Studio pre-build action to skip project build based on condition
In a VS 2008 solution, I have several projects. I run the build on the entire solution with msbuild. Based on the existence of a file on the disk, I want to skip the build for one of the projects. How can I achieve this? Is there a way to use a…

kjv
- 11,047
- 34
- 101
- 140