There is a way to set a breakpoint with VS, though it's unsupported: 
http://blogs.msdn.com/b/visualstudio/archive/2010/07/06/debugging-msbuild-script-with-visual-studio.aspx
 
Mono docs about the OS variable:
"The default environment variable ‘OS’ is set to “Windows_NT” on all currently 
supported versions on Windows. xbuild sets this to “Unix” on non-Windows 
platforms, even on MacOS."
 
-- Alex
 
> From: edward.harvey.m...@clevertrove.com
> To: cury...@asme.org
> Date: Tue, 6 Jan 2015 19:57:08 +0000
> CC: mono-devel-list@lists.ximian.com
> Subject: Re: [Mono-dev] Mono.Posix Cross Compiling
> 
> > From: Dave Curylo [mailto:dacur...@gmail.com] On Behalf Of David Curylo
> > 
> > You're right.I didn't realize that was what's going on.  It looks like 
> > conditional
> > references need some hand holding like this:
> > 
> >   <Choose>
> >     <When Condition=" '$(OS)' == 'Unix' ">
> >       <ItemGroup>
> >         <Reference Include="Mono.Posix" />
> >       </ItemGroup>
> >     </When>
> >   </Choose>
> 
> Very nice.  I'm going to start using that.
> 
> Previously, you had a value 'Windows_NT' and now you have a value 'Unix' in 
> there.  How do you figure out what values are valid?  I presume there's no 
> such thing as setting a breakpoint inside the .csproj file to see what the 
> variable is set to...
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
                                          
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to