There are a lot of ifdefs for PBTCOMPILER in the codebase. Are these redundant? What does this check for?
@hughbe Good question. PBTCOMPILER is for PresentationBuildTasks.dll. That DLL contains MarkupCompilePass1/2 which are MSBuild tasks that build XAML. That component is not yet released as open source, but shares some code with System.XAML. The ifdefs are indeed needed.
Not redundant - it refers to PresentationBuuldTasks.dll鈥檚 main conditional compilation symbol.
In general, avoid changing conditionally compiled code very much. There are some source files that had to be copied over to github while being maintained in the closed version separately because they are shared across multiple binaries. Over time we鈥檒l end up with all sources in the same repo(github), but for now, we鈥檇 like to minimize coherency problems as much as possible - so we鈥檇 like to minimize (or avoid) churn to code blocks with conditional compilation (and to files with conditional compilation).
Thanks for the quick response! Would be nice if we could document these ifdefs and hint they shouldn鈥檛 be removed m (If there鈥檚 never a plan to open source the library using it), or we can close this issue :)
We defintely are planning on open sourcing the code very soon!
Most helpful comment
Not redundant - it refers to PresentationBuuldTasks.dll鈥檚 main conditional compilation symbol.
In general, avoid changing conditionally compiled code very much. There are some source files that had to be copied over to github while being maintained in the closed version separately because they are shared across multiple binaries. Over time we鈥檒l end up with all sources in the same repo(github), but for now, we鈥檇 like to minimize coherency problems as much as possible - so we鈥檇 like to minimize (or avoid) churn to code blocks with conditional compilation (and to files with conditional compilation).