Click here to Skip to main content
16,015,003 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to netsend to wan locations Pin
skooij25-May-04 3:00
skooij25-May-04 3:00 
GeneralRe: how to netsend to wan locations Pin
Heath Stewart25-May-04 3:27
protectorHeath Stewart25-May-04 3:27 
GeneralRelease vs. debug Pin
spif200124-May-04 19:58
spif200124-May-04 19:58 
GeneralRe: Release vs. debug Pin
Andy *M*24-May-04 22:34
Andy *M*24-May-04 22:34 
GeneralRe: Release vs. debug Pin
spif200124-May-04 23:23
spif200124-May-04 23:23 
GeneralRe: Release vs. debug Pin
Dave Kreskowiak25-May-04 2:16
mveDave Kreskowiak25-May-04 2:16 
GeneralRe: Release vs. debug Pin
spif200125-May-04 2:24
spif200125-May-04 2:24 
GeneralRe: Release vs. debug Pin
Heath Stewart25-May-04 3:05
protectorHeath Stewart25-May-04 3:05 
Question: if you have a multi-project solution, did you add project references or assembly references? If you use assembly references (for projects in your solution), that can be a big problem since your release build will use assemblies from your debug build (or vice versa). If you added a new type and did a release build, this type would not be in the debug build of your assembly.

So, remove your assembly references for projects in your solution. Then re-add them by right-clicking on your project, select Add Reference, then click on the Projects tab and select the right projects. This makes sure that everything is kept in sync and sets up build dependencies as well.

When you run the application, everything should work fine. If you maintain a build directory for other developers, make sure that you copy all of the assemblies from the same build configuration into that build directory.

We have a very large solution (I have about 60 projects in mine, being the build master), many of which are late-bound. Using these guidelines it's pretty easy to make sure everything is correct.

Also make sure that if you have late-bound assemblies (like for a plug-in style application) that you either keep the assembly version the same or update your app's .config file using assembly version redirection. You can find more about that by reading Redirecting Assembly Versions[^] in the .NET Framework SDK. We also do this for ours so we don't have to re-deploy every assembly with updates to our application.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Release vs. debug Pin
spif200125-May-04 20:39
spif200125-May-04 20:39 
GeneralRe: Release vs. debug Pin
spif200125-May-04 21:18
spif200125-May-04 21:18 
GeneralData Binding a TextBox to a DataSet Pin
woaksie24-May-04 18:49
woaksie24-May-04 18:49 
GeneralRe: Data Binding a TextBox to a DataSet Pin
Heath Stewart25-May-04 2:50
protectorHeath Stewart25-May-04 2:50 
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 4:54
woaksie25-May-04 4:54 
GeneralRe: Data Binding a TextBox to a DataSet Pin
Heath Stewart25-May-04 5:51
protectorHeath Stewart25-May-04 5:51 
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 19:06
woaksie25-May-04 19:06 
GeneralRe: Data Binding a TextBox to a DataSet Pin
woaksie25-May-04 19:21
woaksie25-May-04 19:21 
GeneralExpressions(calculations) Pin
stevemasters2224-May-04 18:46
stevemasters2224-May-04 18:46 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 19:20
sreejith ss nair24-May-04 19:20 
GeneralRe: Expressions(calculations) Pin
stevemasters2224-May-04 19:34
stevemasters2224-May-04 19:34 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 19:54
sreejith ss nair24-May-04 19:54 
GeneralRe: Expressions(calculations) Pin
Stefan Troschuetz24-May-04 21:16
Stefan Troschuetz24-May-04 21:16 
GeneralRe: Expressions(calculations) Pin
sreejith ss nair24-May-04 22:07
sreejith ss nair24-May-04 22:07 
GeneralRe: Expressions(calculations) Pin
Stefan Troschuetz24-May-04 22:38
Stefan Troschuetz24-May-04 22:38 
GeneralRe: Expressions(calculations) Pin
stevemasters2225-May-04 17:09
stevemasters2225-May-04 17:09 
GeneralRe: Expressions(calculations) Pin
Dave Kreskowiak25-May-04 17:24
mveDave Kreskowiak25-May-04 17:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.