xamarin.forms - Xamarin Forms 暂存、生产和开发环境

标签 xamarin.forms

如何在 Xamarin Forms 应用程序中设置不同的环境? (制作、演出、开发)

目前,我在代码中使用 #if DEBUG 来区分开发过程中使用的代码部分。那么有没有更好的方法来区分不同的环境呢?

最佳答案

您可以在配置管理器中为您的三个环境添加新配置。

enter image description here

然后您可以在项目属性中添加新的编译符号来支持您的条件编译语句

enter image description here

那么你应该可以开始了。

关于xamarin.forms - Xamarin Forms 暂存、生产和开发环境,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46069662/

相关文章:

c# - Xamarin 表格 : iOS Linking Framework

ios - Webview 总是在 ios Xamarin.Forms 中返回空白屏幕

c# - 如何从 Xamarin Forms 项目调用 C++ 库代码 - DllNotFoundException

visual-studio - IDE0006 警告和许多其他关于新安装的 Visual Studio 的跨平台 Xamarin 应用程序

c# - 标签中的装饰和扩展文本

android - 有什么方法可以提高带有背景图像的 xamarin.android ui 性能

c# - Xamarin.Forms - XAML 中 <div> 的对应物?

c# - 清除 Xamarin Forms 中的所有字段

c# - 在 Asp.net core 上实现 Ooui

c# - Xamarin.Form FlowListView - 刷新列表时出现 NullReferenceException