简体   繁体   English

Windows Phone 8预处理器指令不适用于混合解决方案

[英]Windows Phone 8 preprocessor directive doesn't apply to mixed solution

I have a couple of similar WP8 solutions with common C++ projects for back-end. 我有几个类似的WP8解决方案,并且都有用于后端的常见C ++项目。 I also 我也

I need to apply preprocessor directive to one of the solutions (it should be read by C++ back-end for this particular package) for backend to change behavior according to this solution. 我需要将预处理器指令应用于一种解决方案(对于特定的程序包,它应由C ++后端读取),以便后端根据此解决方案更改行为。

Applying preprocessor directive to affect backend behavior worked for Win8/Win8.1 solutions, but it doesn't work for WP8 C# start-up projects. 应用预处理程序指令来影响后端行为在Win8 / Win8.1解决方案中有效,但在WP8 C#启动项目中无效。

What is the course of action in this case? 在这种情况下,如何采取行动?

I made a copy of C++ backend project with the same content and added preprocessor directive to this project. 我复制了具有相同内容的C ++后端项目,并向该项目添加了预处理指令。 A simple workaround and it worked. 一个简单的解决方法,它起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM