如何在VS 2017中设置条件编译符号 [英] How To Set Conditional Compilation Symbols in VS 2017

查看:1112
本文介绍了如何在VS 2017中设置条件编译符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有VS 2017社区版,我正在尝试在VS中设置条件编译符号。为了避免在每个文件中键入相同的#DEFINE,并在需要时手动删除它。



大多数指南建议单击Build>配置管理器,并添加一个我可以设置符号的新解决方案配置。我能够这样做,新配置(PropertyGroup)出现在csproj中。但是我无法在VS中编辑包含符号的属性
。每个指南建议单击我在项目属性窗口中看不到的"构建"选项卡。同样,"属性页面"按钮也不起作用。我还不能包含截图,因为我的帐户未经过验证。

I have VS 2017 Community Edition, and I'm trying to set a conditional compilation symbol in VS. To avoid typing the same #DEFINE in every file, and manually removing that when needed.

Most guides suggest clicking Build > Configuration Manager, and adding a new solution configuration that I can set the symbol in. I was able to do so, and the new configuration (PropertyGroup) appears in the csproj. However I am unable to edit the properties, including the symbols, in VS. Every guide suggests clicking a 'Build' tab that i do not see in the project properties window. As well, the 'Property pages' button does nothing. I cannot include a screenshot as of yet, as my account is not verified.

我可能只是找错了地方,但点击了每一个通过谷歌搜索找到的链接,我很难过。任何帮助将不胜感激。

I'm probably just looking in the wrong place, but having clicked every link I found by googling, I'm stumped. Any help would be greatly appreciated.

推荐答案

您好BedtimeGuy,

Hi BedtimeGuy,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

请参阅您的描述,它似乎与C#开发有关。由于我们的论坛是讨论VS IDE,我将帮助您将此主题移至相应的论坛以获得更好的支持,感谢您的理解。

Refer to your description, it seems about the C# development. Since our forum is to discuss the VS IDE, I will help you move this thread to the appropriate forum for a better support, thank you for your understanding.

致以最诚挚的问候,

Sara


这篇关于如何在VS 2017中设置条件编译符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆