|
|
|
||||||
|
Feel free to post any tools you want to share here.
BTW, the icecs source tree includes a tool that does just that: finds all the Slice files and compiles them only if they are newer than the corresponding generated .cs files. You can find the code for this in the generate subdirectory of the icecs tree. The tool isn't terribly sophisticated, but good enough to support the build for icecs. (Unfortunately, support for custom build steps is rather rudimentary with VS for C#, and even more rudimentary with VS for VB, so you end up having to write tools such as this...) Cheers, Michi. |
|
|||||
|
Hi Csammis,
I was just about to start building from scratch the "Custom Tool" you describe in you post (with no idea on how to do it), for exactly the same reason you first made it. Your post is about 2 years old, but are you still using your tool, and are you still ok to share it? I have to say we use VisualStudio 2005, but it is probably the case for you too, and your tool might work as is in VS2005. Anyway, I would be quite happy to get it if you don't mind, for sure it will be quite useful for me. Thanks in advance.
__________________
Sylvain Fasel Group of Applied Physics University of Geneva www.gapoptic.unige.ch Research in applied quantum cryptography |
|
|||||
|
Hi Csammis,
Ok, thanks for your reply anyway. I will thus develop the Custom Tool myself, and post it here if it seems to work. Regards.
__________________
Sylvain Fasel Group of Applied Physics University of Geneva www.gapoptic.unige.ch Research in applied quantum cryptography |
|
||||||
|
Have you looked at what we do in the demo project files? Since we no longer support VS 2003, the slice compilation is now part of the project rather than an external tool.
|
|
|||||
|
Hi Dwayne,
thanks for your reply! Well, I did look at your demo-projects, and indeed .ice files are slice2cs'ed before the build start. I managed to find the lines <Target Name="CompileSlice" Inputs="Hello.ice" Outputs="generated\Hello.cs"> <Exec Condition="Exists('..\..\..\slice')" Command="..\..\..\bin\slice2cs.exe --output-dir generated Hello.ice" /> <Exec Condition="Exists('..\..\..\..\slice')" Command="..\..\..\..\cpp\bin\slice2cs.exe --output-dir generated Hello.ice" /> </Target> in the .csproj fille, but I have not been able to find a way to edit or add this using project properties from VisualStudio. How did you do that?? I have to say that your solution might be nice to start with, but will not replace the Custom Tool stuff. Indeed, using a Custom Tool will make .ice files to be sliced anytime you save them. This is nice if you use tools like Resharper that parse code and find errors without the need to compile. Thanks again. Regards.
__________________
Sylvain Fasel Group of Applied Physics University of Geneva www.gapoptic.unige.ch Research in applied quantum cryptography |
|
||||||
|
Quote:
|
|
|||||
|
I see, nice hack!
I now understand why I had these warnings while opening the solution. You could basically run whatever you want using this tweak, frightening! Regards.
__________________
Sylvain Fasel Group of Applied Physics University of Geneva www.gapoptic.unige.ch Research in applied quantum cryptography |
|
|||||
|
Quote:
Karl |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom headers in generated files | Sameerrele | Help Center | 2 | 10-17-2006 07:02 PM |
| Hello World in Visual Studio 6 | orphean | Help Center | 5 | 01-09-2006 12:33 PM |
| Project : error PRJ0019: A tool returned an error code: "Performing Custom Build Step | Falagard | Help Center | 6 | 04-11-2004 10:12 PM |
| Visual studio net | xdm | Help Center | 1 | 02-06-2004 10:56 PM |
| Visual Studio 6 project files for Ice | gmueckl | Help Center | 2 | 09-02-2003 04:18 AM |