versioning

Recommended way to test for iOS Version specific feature at runtime

↘锁芯ラ 提交于 2019-12-05 03:50:38
I'm targetting IOS 4.3 and 5.0 with an app built against the 5.0 SDK and would like to add support for the Twitter functionality introduced in iOS5 only when the app runs on a iOS5 device. What is the recommended way to reliably test for the availability of these OS features at runtime without having your app crash? I know you do this using respondsToSelector in Objective-C but how is it done in C#? With recent MonoTouch versions you can use the following code: if (UIDevice.CurrentDevice.CheckSystemVersion (5, 0)) { window.RootViewController = navigation; } else { window.AddSubview (navigation

Can I edit the message of an older revision in Bazaar?

走远了吗. 提交于 2019-12-05 03:32:27
How can I edit an older revision's message to more correctly describe its changes? You cannot edit the commit message of an old revision without changing the revision id of the modified revision and all its descendants. Well... technically you can, if you try hard enough, but the technical term for the result is "corrupt repository". A repository in bzr is a replica of a distributed database of revisions, and if all replicas don't agree on the content of a revision, you have an integrity violation. Meaning, all bets are off, and the system will actively try to detect such situations and refuse

MSI Installer fails without removing a previous install

梦想的初衷 提交于 2019-12-05 02:45:25
I have built an MSI that I would like to deploy, and update frequently. Unfortunately, when you install the MSI, and then try to install a newer version of the same MSI, it fails with a message like "Another version of this product is already installed. Installation of this version cannot continue..." appears. The MSI was built with a Visual Studio 2008 Setup Project. I have tried setting the "Remove Previous Versions" property to both true and false, in an effort to just make newer versions overwrite the older install, but nothing has worked. At a previous company I know I did not have this

How to know which user answered a Jenkins-Pipeline input step?

浪尽此生 提交于 2019-12-05 02:06:55
I have a Jenkinsfile script that tests for the possibility to perform an SVN merge and then asks the user for the permission to commit the merge. I would like to know the username that answers the "input" step in order to write it into the commit message. Is this possibile? This is what hypothetically I would like to do: outcome = input message: 'Merge trunk into branch?', ok: 'Merge' echo "User that allowed merge: ${outcome.user}" The input step got an optional submitterParameter , which allows to specify the key of the returned Map that should contain the user who's submitting the input

Include a text file content into a WiX script

蹲街弑〆低调 提交于 2019-12-05 02:01:40
问题 Is there a way to read value for the WiX variable from a text file? What I am trying to do is to include a version-specific information into instlal package. This version information extracted into the text file on the pre-build step, the question is how to propages this text file content into a build process. One of the possible solution is to update whole .wxs file on the pre-build step too, but it feel a bit sloppy. Is there any other, less-intrusive way? Thank you. 回答1: Create a separate

Why did reinstalling Silverlight break my Import configuration?

断了今生、忘了曾经 提交于 2019-12-05 01:16:40
Based on the answer here: Which, if any, recent Windows updates should I uninstall to revivify Silverlight or rectify other problems? , I uninstalled / reinstalled Silverlight and rebooted. Now, though, I get a compilation error, namely: "The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.CSharp.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk." It points to this line in a *.csproj file: <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft

How can I extend a boost spirit grammar

一曲冷凌霜 提交于 2019-12-05 01:00:30
问题 The thing is that I made a grammar that has been useful for a task, but now the task has changed and I need to define new rules. But I wouldn't like to modify the grammar I already have instead of that I'd like to create a new grammar that uses the existing grammar I have without code duplication, so I just need to define the new rules I need. I tried something like this, but is not working : struct New_grammar : Old_grammar<Iterator, Skipper> { New_grammar() : New_grammar::base_type(Command

Why shouldn't I have a single monolithic utility library?

拟墨画扇 提交于 2019-12-05 00:49:55
问题 We've got a few common libraries (C# but I guess this isn't platform- or language-specific), let's call them A, B, and C. Library A has references to B and C, library B has a reference to a 3rd-party DLL, and library C stands alone. The idea behind three separate projects was that each library had distinct functionality, but library A has over time become a more or less "catch-all" common library that most every client app references. Only a few apps reference B and/or C without A as well. We

Interface change between versions - how to manage?

穿精又带淫゛_ 提交于 2019-12-04 22:52:47
问题 Here's a rather unpleasant pickle that we got into on a client site. The client has about 100 workstations, on which we deployed version 1.0.0 of our product "MyApp". Now, one of the things the product does is it loads up an add-in (call it "MyPlugIn", which it first looks for on a central server to see if there's a newer version, and if it is then it copies that file locally, then it loads up the add-in using Assembly.Load and invokes a certain known interface. This has been working well for

How to automate version code incrementing in AndroidManifest?

落花浮王杯 提交于 2019-12-04 18:41:51
问题 I have application which uploaded into Subversion/SVN repo. Is it possible to use script to somehow change application version code stored in AndroidManifest ? I mean during/after checkout/update? <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mypackage" android:versionCode="100000" android:versionName="1.0"> 回答1: SVN has keyword substitution which you can use to put the revision number in a file. However, this will result in the revision when the manifest file