简体   繁体   English

使用Xamarin转换app.config

[英]Transform app.config with Xamarin

is there a way to apply transformations to the app.config file in Xamarin? 有没有一种方法可以将转换应用于Xamarin中的app.config文件?

Basically I have a few tests that will run on Visual Studio and Xamarin. 基本上,我有一些可以在Visual Studio和Xamarin上运行的测试。 On Visual Studio I transform the app.config values using SlowCheetah, so I don't have to change them every time. 在Visual Studio上,我使用SlowCheetah转换app.config值,因此不必每次都更改它们。

When I open the same project on Xamarin, it only reads the main app.config even having the Configurations for the others there. 当我在Xamarin上打开相同的项目时,它甚至只读取主app.config,即使那里有其他配置。 I believe slow cheetah is not compatible, but is there any other file transformation that can be used on Xamarin? 我认为慢速猎豹软件不兼容,但是Xamarin是否可以使用其他文件转换功能?

Thanks! 谢谢!

没有真正的方法,我在静态类中使用了一些IF指令,然后从那里去,甚至与PCL和特定设备的IF指令也不完美,请参阅在monodroid或monotouch中应该使用什么代替app.config配置字符串?

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

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