Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
GeneralRe: What's the best way to detect the launch of an exe? Pin
JoeRip15-Dec-07 13:42
JoeRip15-Dec-07 13:42 
GeneralRe: What's the best way to detect the launch of an exe? Pin
JoeRip15-Dec-07 13:53
JoeRip15-Dec-07 13:53 
GeneralForcing XP style.. Pin
Dio2214-Dec-07 9:23
Dio2214-Dec-07 9:23 
GeneralRe: Forcing XP style.. Pin
Dan Neely14-Dec-07 9:30
Dan Neely14-Dec-07 9:30 
QuestionHandling Server Exceptions at Client in Remoting? Pin
kumar.bs14-Dec-07 8:39
kumar.bs14-Dec-07 8:39 
GeneralEnrollment Page.. Pin
Rajeshwar Code- Developer14-Dec-07 7:13
Rajeshwar Code- Developer14-Dec-07 7:13 
GeneralRe: Enrollment Page.. Pin
pmarfleet14-Dec-07 9:33
pmarfleet14-Dec-07 9:33 
GeneralConditional Project References (MSBuild) Pin
Skippums14-Dec-07 6:21
Skippums14-Dec-07 6:21 
Let's look at the following scenario to begin... I have two projects, project A and project B. I would like project B to add a reference to project A if and only if a variable (named 'IsClient') is defined for the project using the "/define:IsClient" directive. I also have code within a #if/#endif precompiler directive block that is to be ignored unless this same variable (IsClient) is defined. I found this[^] reference on MSDN explaining build conditions, but it only tells me how to check for string equality/inequality or file existance. I am wondering how I can accomplish BOTH conditional project includes AND conditional code compilation by setting/defining a single variable. Some of the attempts I have made within the .csproj file for project B are listed below...
// B.csproj
...
<ItemGroup>
  <ProjectReference Condition="SeeBelow" Include="..\A\A.csproj">
    <Project>{GUID}</Project>
    <Name>A</Name>
  </ProjectReference>
</ItemGroup>
...
Where the phrase SeeBelow appears in the example above (from B.csproj), I have tried the following syntax...
IsClient
$(IsClient)
$(IsClient) != ''
'$IsClient' != ''
I could really use some help here, as I am completely dumbfounded. Again, I am trying to see if the variable IsClient has been defined. Thanks in advance,
Sounds like somebody's got a case of the Mondays

-Jeff

GeneralCopy access table to another access table Pin
ph1l214-Dec-07 6:18
ph1l214-Dec-07 6:18 
GeneralRe: Copy access table to another access table Pin
dan!sh 14-Dec-07 6:48
professional dan!sh 14-Dec-07 6:48 
Generaldatagridview checkbox Pin
arkiboys14-Dec-07 5:25
arkiboys14-Dec-07 5:25 
GeneralRe: datagridview checkbox Pin
Paul Conrad23-Dec-07 9:47
professionalPaul Conrad23-Dec-07 9:47 
QuestionHow to paint all controls in form's paint,completely removing control's own paint Pin
ctoma200514-Dec-07 4:41
ctoma200514-Dec-07 4:41 
AnswerRe: How to paint all controls in form's paint,completely removing control's own paint Pin
Wes Aday14-Dec-07 5:25
professionalWes Aday14-Dec-07 5:25 
GeneralRe: How to paint all controls in form's paint,completely removing control's own paint Pin
ctoma200514-Dec-07 6:21
ctoma200514-Dec-07 6:21 
AnswerRe: How to paint all controls in form's paint,completely removing control's own paint Pin
Anthony Mushrow14-Dec-07 14:09
professionalAnthony Mushrow14-Dec-07 14:09 
GeneralRe: How to paint all controls in form's paint,completely removing control's own paint Pin
ctoma200514-Dec-07 14:27
ctoma200514-Dec-07 14:27 
GeneralRe: How to paint all controls in form's paint,completely removing control's own paint Pin
Anthony Mushrow14-Dec-07 14:52
professionalAnthony Mushrow14-Dec-07 14:52 
GeneralRe: How to paint all controls in form's paint,completely removing control's own paint Pin
ctoma200515-Dec-07 4:04
ctoma200515-Dec-07 4:04 
QuestionHow to use vnchook.dll in c#.net application Pin
dhami_naresh14-Dec-07 4:35
dhami_naresh14-Dec-07 4:35 
QuestionHow to read Data from MS Access Pin
s3rro14-Dec-07 4:24
s3rro14-Dec-07 4:24 
AnswerRe: How to read Data from MS Access Pin
Wes Aday14-Dec-07 5:27
professionalWes Aday14-Dec-07 5:27 
GeneralRe: How to read Data from MS Access Pin
s3rro14-Dec-07 5:29
s3rro14-Dec-07 5:29 
AnswerRe: How to read Data from MS Access Pin
Paul Conrad23-Dec-07 9:47
professionalPaul Conrad23-Dec-07 9:47 
QuestionHow to draw all controls in form's paint event? PLEASE HELP! Pin
ctoma200514-Dec-07 4:02
ctoma200514-Dec-07 4:02 

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.