473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Compiling in Visual Studio 2008

Hello all!
I have a C# application that uses 5 dlls and each time I make a modification to the script and test it(ctrl+F5) the application compiles successfully but doesn't seem to apply the changes I made. So I have to run the project one more time to actually see the modifications happen. Is there any way to make the enviroment(VS 2008) apply the changes exactly after I make them in code.
Am I missing something?

Cheers,
Ariel
Feb 12 '08 #1
6 8988
debasisdas
8,127 Expert 4TB
How is that possible.

You are making changes to DLL or to the application ?
Feb 12 '08 #2
r035198x
13,262 8TB
Hello all!
I have a C# application that uses 5 dlls and each time I make a modification to the script and test it(ctrl+F5) the application compiles successfully but doesn't seem to apply the changes I made. So I have to run the project one more time to actually see the modifications happen. Is there any way to make the enviroment(VS 2008) apply the changes exactly after I make them in code.
Am I missing something?

Cheers,
Ariel
Are you talking about the "Build Automatically" feature that is available in IDEs like Eclipse and Netbeans? That is turned on by default in VS 2008(Express).
Feb 12 '08 #3
dzenanz
45
Menu Project->Project Dependencies...

You can define there what is dependent upon what, so VS can infer correct build order (you can see it on the other tab, make sure all dlls are built before app). This eliminates need to compile twice before code changes apply.

HTH, Dženan
Feb 12 '08 #4
It doesn't matter if i make changes to the application itself or dlls. I just have to re-run the Start Without Debugging feature(Ctrl+F5) to make them happen.
Feb 12 '08 #5
Plater
7,872 Expert 4TB
You have to run your application, close it, then run it again?
That really sounds like build order problems.
Feb 12 '08 #6
You might have the dependent dll's referenced as File references instead of Project references. If you did Browse... to add the reference, that's why you're not seeing your changes.

Project references monitor the source assembly (dll) and update the local copy of it as needed (aka when recompiled).

File references copy the assembly into the local path only when VS loads. That's why restarting VS.NET works, but does not work on a normal recompile.

Just drop all your references to dll's in your solution, then re-add them as Project references and you should be set.
Jun 24 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
3
by: RS | last post by:
Hi all, My code compiles well with gcc on linux and OS X, but now I have to run it at work, and my only choice is Visual Studio .Net 2003 environment on windows, which I had never used before....
6
by: alf | last post by:
Hi, I want to add some library but it can not be comipled? Here is an output: D:\>cl Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86 Copyright (C) Microsoft...
1
by: jon2211 | last post by:
I tried to compile some code with #include <shellapi.h. I am linking shell32.lib. I am not trying to use ShellExecute() but right now just getting the code to compile with the header file an...
0
by: inhahe | last post by:
"inhahe" <inhahe@gmail.comwrote in message news:... Actually, I was under the impression that the socket module relied on one of the external libraries to work, since it didn't work when I...
2
by: Nikolay Belyh | last post by:
1. Why does Visual Studio 2008 started ignoring //{NO_DEPENDENCIES} in resource.h? If I edit file "resource.h" _manually_, it rebuilds the whole solution. It worked just fine with Visual Studio...
2
by: Cramer | last post by:
So, what is the relationship between Visual Studio and Visual Web Developer. I find a lot of documentation on MSDN that presents Visual Web Developer as it's own stand-alone product (which I'd...
15
by: K Viltersten | last post by:
I've got a hint from a gentleman here to use the following syntax. public static FileInfo GetFilesRegExp(this DirectoryInfo di, string pat) { Regex re = new Regex(pat); return Array.FindAll(...
0
by: _Who | last post by:
I'm trying to free up some space on my system disk. In Add or Remove Programs I see: Microsoft Windows SDK for Visual Studio 2008 .NET Framework Tools Microsoft Windows SDK for Visual Studio...
3
by: Johnson | last post by:
I'm not sure if this is an IIS 5.1 issue or ASP.NET issue, or Visual Studio 2008 issue -- thus posting to 3 groups. Please don't be offended. The problem I'm encountering is that Visual Studio...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.