configuration-management

How to operate with multiple assembly versions in private folders using config?

对着背影说爱祢 提交于 2019-12-07 07:46:15
问题 I have a scenario where I have multiple versions of the same assembly that I need to store in the application private folders, in a structure like this: .\My.dll // latest version, say 1.1.3.0 .\v1.1.1\My.dll // version 1.1.1.0 .\v1.1.2\My.dll // version 1.1.2.0 My problem is that the .Net runtime, when asked for one of the older versions, always finds the latest version and then fails due to build number mismatch before trying to probe for a better match. The assemblies are strong named and

How to recover checked out file in Clearcase?

此生再无相见时 提交于 2019-12-06 11:29:32
Let's say there is a file called myfile.java. I checked it out and I was working on it. Before checking it in, I have lost my hard drive and I had to get a new hard drive. Next time that I want to check out the file, it says that I can not check out. It was already checked out in the old view which has gone. I have to mention that I am using the option "re-use development stream option". Is there anything I can do to be able to checkout the file once again? You can completely unregister your old view in the vob of that file: that will remove the "checkout" status associated to that file.

SaltStack: how do I repeat other states with context?

我怕爱的太早我们不能终老 提交于 2019-12-06 05:28:12
I created a complex state for API service, it involves git checkouts, python venv, uwsgi, nginx, etc etc. It works fine. Now I would like to turn it into a template and execute it several times per minion, with variables supplied from pillar - i.e something like. {% for apiserver in pillar.apiservers %} include apiserver_template.sls, locals: apiserver.config {% endfor %} where apiserver_template will work with context supplied to it, with apiserver.config having all config data for each API instance. I know syntax is wrong but hopefully I am communicating the idea - ideally, something like

Modify custom app.config config section and save it

≯℡__Kan透↙ 提交于 2019-12-05 18:54:41
I'm developing a C# WPF MVVM application with .NET Framework 4.6.1 and I have a custom section in App.config: <configuration> <configSections> <section name="SpeedSection" type="System.Configuration.NameValueSectionHandler" /> </configSections> <SpeedSection> <add key="PrinterSpeed" value="150" /> <add key="CameraSpeed" value="150" /> </SpeedSection> </configuration> I want to modify PrinterSpeed and CameraSpeed from my app. I have tried this code: static void AddUpdateAppSettings(string key, string value) { try { var configFile = ConfigurationManager.OpenExeConfiguration

Can I build multiple configurations of a project within one solution configuration?

久未见 提交于 2019-12-04 18:21:03
问题 I would like to build the same project twice in the same solution configuration, varying some #define flags to toggle features. Both binaries will be deployed with different names. The solutions that I know could work: Add a solution configuration - But I will then need to build the solution twice, which I would prefer to avoid. Both project configurations will always be built. Copy the project - But then I have the overhead of maintaining a new project when I only want to maintain a

Android App White Labeling [closed]

拈花ヽ惹草 提交于 2019-12-04 13:45:38
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . I am trying to find the best method for white labeling an Android application. Basically I want to be able to build multiple versions of almost the same app, each version will have different resources (e.g. drawable icons, colors, etc.) but they will share a lot of the code

Can I build multiple configurations of a project within one solution configuration?

隐身守侯 提交于 2019-12-03 12:12:58
I would like to build the same project twice in the same solution configuration, varying some #define flags to toggle features. Both binaries will be deployed with different names. The solutions that I know could work: Add a solution configuration - But I will then need to build the solution twice, which I would prefer to avoid. Both project configurations will always be built. Copy the project - But then I have the overhead of maintaining a new project when I only want to maintain a different configuration. Batch build - I avoid using batch build as I use both devenv for local development and

salt stack: grains vs pillars

只愿长相守 提交于 2019-12-03 08:14:27
问题 In the Salt system there are grains and pillars. I understand how I can assign custom grains, but when would it be better to consider using pillars? 回答1: The fundamental difference here is that you can set a custom grain as an innate property of a minion, versus pillar which needs to be assigned to a minion at some point. For example, there are two practical ways to assign a role to a minion: the minion id or using custom grains. You can then match against the minion id or custom grains

Android App White Labeling [closed]

不羁岁月 提交于 2019-12-03 07:36:14
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . I am trying to find the best method for white labeling an Android application. Basically I want to be able to build multiple versions of almost the same app, each version will have different resources (e.g. drawable icons, colors, etc.) but they will share a lot of the code base. Some of the apps will have additional features as well, so they won't just be clones of each other. One

Manage configuration files across environments

人走茶凉 提交于 2019-12-03 06:42:26
问题 How do you (your company) manage the config-files of the apps/systems you build? Let me tell you how we do it, and what the problem is. I'm working at a company where we develop software with about 15 developers. We build line-of-business web apps that are deployed at our managed hosting provider. One of our main apps consists of one web site and about ten WCF services. Some of the services are connected to each other. I don't know if this is a big system, or small, but my opinion is that is