Questions tagged [prebuild]
87 questions
2
votes
1 answer
call batch file from CMakeLists.txt
My company uses different Visual Studio for different projects. VS2003,VS2008,VS2010,VS2013... So I have different VS install on my machine. I'm using cmake to manage my projects, and I use a hotkey F5 to build the project, the F5 is simply call…

aj3423
- 2,003
- 3
- 32
- 70
2
votes
1 answer
build a c# project into two identical dlls with different assembly names and guids
I am wondering if it is possible to build a project into two identical dlls that have different assembly names and guids.
similar to the post build macros that allow one to copy and rename the dll - I imagine something like a pre-build command to…

timkado
- 1,922
- 2
- 17
- 27
2
votes
1 answer
IAR - Adding pre-build command to delete an object file
In IAR embedded workbench IDE, I need to force the compilation of a file, every time I build the project (in order to recompile __DATE__ and __TIME__).
So I need to "touch" that file (i.e., delete the corresponding object file).
I went into the…

barak manos
- 29,648
- 10
- 62
- 114
1
vote
0 answers
How to get packageName from gomobile in android
How to JNICall from gomobile in android
I want to write part of the code of my Android application in the Go library
I want to get the PackageName and signature of my app and send it to the server (all this work should be done in Go files)
Question…

user19659782
- 43
- 3
1
vote
0 answers
How to cache docker images with GitHub Codespaces devcontainer prebuild?
I'm using github codespaces and I have pre-built my devcontainer with feature kubernetes-helm-minikube which contains a minikube pre-installed in the dev container.
My question is, with prebuilding, my devcontainer users still have to download…

amyxia
- 21
- 1
1
vote
1 answer
When i add app priv-app phone not booting
I have been trying to add a apk to priv-app.
Following are the steps i did:
Made a folder named Testapk in packages/apps
Copied apk to folder with name Testapk.apk
In same directory, created an Android.mk file with following contents:
LOCAL_PATH :=…

madinina
- 13
- 6
1
vote
1 answer
How to interpret pre build error codes from Visual Studio 2010
I have been working with Visual Studio pre build events and I find the error codes rather unhelpful
for example, adding a pre-build event like this:
$(ProjectPath)\DoStuff.exe
This gives me an error: exited with code 267
Or adding like…

Pete McPhearson
- 469
- 1
- 7
- 17
1
vote
1 answer
How to restart Explorer as a pre-build event in Visual Studio
I'd like to restart Explorer when building my DLL in Visual Studio. I've tried adding taskkill /f /IM explorer.exe and start explorer as pre-build events in the project configuration. When I then build my project, Explorer will in fact be…
user12381459
1
vote
1 answer
Prebuild native addon dependencies (for node and electron)
I'm trying to use a native addon (Node Sentinel File Watcher -a.k.a. NSFW-) in a node application and also in an electron application.
Using the same native addon with both (node and electron) doesn't work, so I have to rebuild the addon using…

caraie
- 1,094
- 7
- 18
1
vote
1 answer
Moving custom library build to other machine of similar architecture
I am currently setting up a microcontroller with several libraries which need to be built from source. Using pre-built binaries is not an option due to the system architecture. Building dependencies takes a lot of time and I want to avoid having to…

Basti Vagabond
- 1,458
- 1
- 18
- 26
1
vote
1 answer
How can I add an existing file to a project in Visual Studio in the pre-build event?
I have a batch file creating a config file that I don't want to share with all team mates over SVN because it's used for developer specific settings. The config file is called from app.config and is necessary in order to build the project and I…

MicMan
- 31
- 5
1
vote
1 answer
Visual Studio 2010 precompile or prebuild actions
I'm looking for ability to make some replacements in my code files in prebuild or precompile phase (user transparent). I was thinking about Visual Studio extension, but haven't found solution yet. Some way to access all files in solution/project or…

Silx
- 2,663
- 20
- 21
1
vote
0 answers
How to create an .mdf file from the prebuild action
So in Visual Studio I have a project on GitHub with an mdf file in the app_data directory.
How do I deal with this .mdf file, with regards to source control and building?
Bad Solution 1 - Check-in an empty .mdf file
I can create a stub mdf and check…

Rhyous
- 6,510
- 2
- 44
- 50
1
vote
0 answers
Pre-Build command returns -1, when script returns 0
I've configured Visual Studio to run a pre-build script.
My pre-build script command is like this:
call $(SolutionDir)test.bat
My bat file is like this:
@echo error CS0006: hello bingo
and I get the same error when I explicitly return 0, like…

Pointo Senshi
- 541
- 5
- 17
1
vote
0 answers
How to make an Eclipse builder program run a python script?
I am in the process of developing a preprocessor in Python. Trying to have a builder run my Python script results in the following error:
I read somewhere, that the file needs to be a .exe. This is not convenient as I am trying to improve the…

oddRaven
- 672
- 1
- 7
- 20