Benutzer mit den meisten Antworten
Custom build step doesn't work

Frage
-
Hello,
in my project I use a template file to create some sourcecode with another script language. I include this template file into my project and set the custom build step with command line and comment. Now I click on this file and choose from PopupMenu 'compile'. But never VC++ does execute the command line, the output from VC++ is only "<MyProjectName> - up-to-date"
If I rebuild the hole project then I got compiler errors, because the script-created-sourcecode doesn't existing.
Everything is working fine, if I call my template file with the script language at command line. The syntax is: <script.exe> <template-file> <target.cpp>
To check I wrote also some bullshit into the command line, but VC++ does never execute this (Then I must got some error messages). I got only "up-to-date" (see above).
What is wrong?
I use VC2005 with SP1 and all Hotfixes and SecurityUpdate from MS (which I got from my IT administration)
Greetings
Pebcak13
Antworten
-
Hi Pebcak13,
I was having a similar problem this week. My Custom Build Step stopped executing. They were executing correctly last week. After hours of pulling out my hair, I finally figured out my problem. Last week I installed a HotFix #KB947315 (VS2005 SP1: C++ Intellisense hang when Hotfix #KB943969 is installed) as Intellisense was bogging down my system, but I didn't realize that I did not have Hotfix #KB943969 installed. I un-installed HotFix #KB947315 and my Custom Build Steps started working again. Hope this helps solve your problem.
Regards,
beaglecat
- Als Antwort markiert Martin RichterModerator Donnerstag, 29. Juli 2010 08:03
Alle Antworten
-
Hallo,
nachdem mein Text vorhin auch hier gelandet ist, kann ich auch hier einen Teil meiner "Erkenntnis" niederschreiben.
Das besagte Script verwende ich schon längere Zeit in mehreren anderen Projekte, aber dieses Problem ist erst seit gestern in einem neuen Projekt vorhanden. Hier sollen eigentlich aus 5 Templates 5 cpp Dateien entstehen.
Ich habe nun etwas 'herausgefunden'. Im Folgenden spreche ich nur von der Dialogzeile: File Properties->Custom Build Step->Outputs (keine Ahnung, was dort im Deutschen steht).
a) Zeile bleibt leer (so wie bei mir in allen anderen Projekten) -> keine Datei wird vom Script erzeugt
b) Ich trage dort jeweils den korrekten Pfad und Dateinamen ein -> 2 von 5 werden erzeugt
c) falscher Pfad, korrekter Dateiname -> alle 5 werden erzeugt
Ich verwende nun die 3. Version und alles ist i.O.
Gruß
Pebcak13
-
Hi Pebcak13,
I was having a similar problem this week. My Custom Build Step stopped executing. They were executing correctly last week. After hours of pulling out my hair, I finally figured out my problem. Last week I installed a HotFix #KB947315 (VS2005 SP1: C++ Intellisense hang when Hotfix #KB943969 is installed) as Intellisense was bogging down my system, but I didn't realize that I did not have Hotfix #KB943969 installed. I un-installed HotFix #KB947315 and my Custom Build Steps started working again. Hope this helps solve your problem.
Regards,
beaglecat
- Als Antwort markiert Martin RichterModerator Donnerstag, 29. Juli 2010 08:03