Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# file exists on network drive Pin
Richard MacCutchan15-Mar-13 7:28
mveRichard MacCutchan15-Mar-13 7:28 
GeneralRe: C# file exists on network drive Pin
classy_dog15-Mar-13 8:28
classy_dog15-Mar-13 8:28 
QuestionIf existing String Form name, get that by database then open Pin
Jayantha Bandara15-Mar-13 0:37
Jayantha Bandara15-Mar-13 0:37 
AnswerRe: If existing String Form name, get that by database then open Pin
Richard MacCutchan15-Mar-13 1:02
mveRichard MacCutchan15-Mar-13 1:02 
AnswerRe: If existing String Form name, get that by database then open Pin
Pete O'Hanlon15-Mar-13 1:12
mvePete O'Hanlon15-Mar-13 1:12 
GeneralRe: If existing String Form name, get that by database then open Pin
V.15-Mar-13 3:44
professionalV.15-Mar-13 3:44 
GeneralRe: If existing String Form name, get that by database then open Pin
Mycroft Holmes15-Mar-13 13:39
professionalMycroft Holmes15-Mar-13 13:39 
QuestionResolving dependent projects Pin
Bernhard Hiller15-Mar-13 0:15
Bernhard Hiller15-Mar-13 0:15 
msbuild and Visual studio seem to resolve project dependencies differently: a solution file contains the project for the main executable, and some projects for dlls the executable depends on. One of these dll projects depends on another project which is not part of the solution.

Just to show the major players in this case, and a simple way to reproduce it:
solution contains ExeProject and MainDllProject, MainDllProject depends on SubDllProject which is not part of the solution (but in the same hierarchy on the file system). ExeProject depends on MainDllProjectClass1 of MainDllProject (that class does not depend on SubDllProject; only MainDllProjectClass2 depends on SubDllProject, but it is not used by ExeProject nor MainDllProjectClass1):
Solution
    ExeProject
        Form1 (depends on MainDllProject.MainDllProjectClass1)
    MainDllProject
        MainDllProjectClass1
        MainDllProjectClass2 (depends on SubDllProject.SubDllProjectClass)
Not part of the solution
    SubDllProject
        SubDllProjectClass


When the solution is built with Visual Studio 2010, it fails: MainDllProject cannot be built because SubDllProject cannot be found.

When the solution is built with msbuild, the build succeeds. Strangely, the debug version of SubDllProject is built despite the parameter /p:Configuration=Release.

The log file for msbuild is some 374 kB, do you have some hints how to analyse it? I want to understand why it builds SubDllProject at all, why it is the debug version, and evetually how to prevent it from being built when not referenced (I want the the solution to contain all referenced projects, and when a dependency was forgotten, I want to see an error message).

Note: this case is similar to http://stackoverflow.com/questions/12836023/visual-studio-build-non-dependent-projects-in-solution[^], but quite the other way round...
I understand from http://blogs.msdn.com/b/visualstudio/archive/2010/12/21/incorrect-solution-build-ordering-when-using-msbuild-exe.aspx[^] that msbuild translates the sln file into its own format - but the sln.metaproj file does not show any reference to SubDllProject either.
AnswerRe: Resolving dependent projects Pin
Pete O'Hanlon15-Mar-13 1:38
mvePete O'Hanlon15-Mar-13 1:38 
Questionsubstring from form1 to form2.... Pin
Goaty6510914-Mar-13 17:15
Goaty6510914-Mar-13 17:15 
AnswerRe: substring from form1 to form2.... Pin
Jibesh14-Mar-13 17:35
professionalJibesh14-Mar-13 17:35 
GeneralRe: substring from form1 to form2.... Pin
Goaty6510914-Mar-13 18:57
Goaty6510914-Mar-13 18:57 
QuestionBlueTooth Bytes Disappearing Pin
C-P-User-314-Mar-13 13:03
C-P-User-314-Mar-13 13:03 
QuestionView in Nhibernate Pin
hadi_ganji14-Mar-13 6:06
hadi_ganji14-Mar-13 6:06 
AnswerRe: View in Nhibernate - Repost Pin
Richard MacCutchan14-Mar-13 6:24
mveRichard MacCutchan14-Mar-13 6:24 
QuestionUnable to set registry value Pin
sjs4u13-Mar-13 21:27
sjs4u13-Mar-13 21:27 
AnswerRe: Unable to set registry value Pin
dusty_dex14-Mar-13 5:07
dusty_dex14-Mar-13 5:07 
QuestionHow to use CreateTextServices in C# Pin
cpw999cn13-Mar-13 20:32
cpw999cn13-Mar-13 20:32 
AnswerRe: How to use CreateTextServices in C# Pin
Bernhard Hiller13-Mar-13 22:01
Bernhard Hiller13-Mar-13 22:01 
GeneralRe: How to use CreateTextServices in C# Pin
cpw999cn13-Mar-13 22:40
cpw999cn13-Mar-13 22:40 
QuestionC# Receive from TCP send to COM2 Pin
dockwomblejr13-Mar-13 11:55
dockwomblejr13-Mar-13 11:55 
AnswerRe: C# Receive from TCP send to COM2 Pin
jschell14-Mar-13 7:57
jschell14-Mar-13 7:57 
GeneralRe: C# Receive from TCP send to COM2 Pin
dockwomblejr14-Mar-13 13:05
dockwomblejr14-Mar-13 13:05 
GeneralRe: C# Receive from TCP send to COM2 Pin
micke.andersson15-Mar-13 6:03
micke.andersson15-Mar-13 6:03 
Questionhow can i index files in c# Pin
Member 888804413-Mar-13 10:26
Member 888804413-Mar-13 10:26 

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.