versioning

Serialization and object versioning in C#

二次信任 提交于 2019-12-03 02:35:22
If I want to serialize an object I have to use [Serializable] attribute and all member variables will be written to the file. What I don't know how to do versioning e.g. if I add a new member variable (rename a variable or just remove a variable) and then I open (deserialize) the file how can I determine the object/file version so I can correctly set the new member or take some kind of migration? How can I determine that the variable was initialized during the load or not (ignored by deserializer). I know that there are version tolerant approaches and I can mark variables with [OptionalField

What are your WebService Versioning best practices?

烈酒焚心 提交于 2019-12-03 02:23:59
问题 We have 2 separate products that need to communicate with each other via web services. What is the best-practice to support versioining of the API? I have this article from 2004 claiming there is no actual standard, and only best practices. Any better solutions? How do you solve WS versioning? Problem Description System A Client class SystemAClient{ SystemBServiceStub systemB; public void consumeFromB(){ SystemBObject bObject = systemB.getSomethingFromB(new SomethingFromBRequest("someKey"));

How does NuGet decide whether to use local package cache or not?

我的未来我决定 提交于 2019-12-03 02:21:10
Today I've faced with a strange behavior of NuGet when installing a package. A brief description: as a result of my build script there's a NuGet package. I don't change the version each time, so each and every build produces MyPackage.1.0.0.nupkg . As the final step of the build, I push the package to the NuGet server deployed inside the local network. Now, on a different machine, I run nuget install MyPackage -Source http://myserver/nuget , which obviously installs the NuGet package. The problem comes into play when I push another update of MyPackage - still of version 1.0.0 . When I try to

Publish Version vs Assembly (etc) Versions

房东的猫 提交于 2019-12-03 01:50:47
I've read threads here about the Assembly, File and Assembly Informational versions. I'd like to know where the Publish version fits in. The result of... string thisAppsVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); ...appears to be the AssemblyVersion. Up until now I've been using the publish version with the deployment class: ApplicationDeployment deployment = ApplicationDeployment.CurrentDeployment; Version thisAppsVersion = deployment.CurrentVersion; ...but this isn't available unless the app is installed. I like how it has the option to

Versioning in SQL Tables - how to handle it?

半城伤御伤魂 提交于 2019-12-03 01:39:50
问题 Here's a fictional scenario with some populated data. For tax purposes, my fictional company must retain records of historical data. For this reason, I've included a version column to the table. TABLE EMPLOYEE: (with personal commentary) |ID | VERSION | NAME | Position | PAY | +---+---------+------------+----------+-----+ | 1 | 1 | John Doe | Owner | 100 | Started company | 1 | 2 | John Doe | Owner | 80 | Pay cut to hire a coder | 2 | 1 | Mark May | Coder | 20 | Hire said coder | 2 | 2 | Mark

Versioning RESTful services?

百般思念 提交于 2019-12-03 01:05:30
I have a RESTful web service deployed at http://example.com/v1/SomeResource . One day, a new protocol version ( that is not backwards compatible ) is deployed to http://example.com/v2/SomeResource . From the client of view, this upgrade could occur at any time between two HTTP requests. How does the server indicate to the client that it no longer supports v1 calls and the client is expected to upgrade to v2? Is there an appropriate response code I can use? I would want to provide the client with the following information: An incompatible upgrade has taken place. There is no way for the client

Skip composer PHP requirement

笑着哭i 提交于 2019-12-03 00:16:59
问题 We are using PHPCI and composer. The server which runs PHPCI is on PHP 5.3. For a project we added the Facebook PHP SDK, using composer. It requires PHP 5.4. Composer gets triggered by PHPCI and get executed. But because the CI server just got PHP 5.3 composer failed with the error message: facebook/php-sdk-v4 4.0.9 requires php >=5.4.0 -> no matching package found. This let fail my build in PHPCI, of course. Is there a possibility to skip this requirement? Maybe by adding an option to

What is the difference between “Legacy Version” and “Stable Version”?

我们两清 提交于 2019-12-03 00:00:23
I am using JQuery Mobile and there are two available versions: A stable version and a legacy version. I am not familiar with the latter one. What is a legacy version? or what is the difference with the stable version? Which one is recommended to use in a production site? Many thanks A legacy version is an old stable release that is still available (and probably supported) because someone might need it (e.g. plugin dependencies that don't work with the newest release), whereas the stable version is the most recent stable release (which will eventually become a legacy version). So if there is no

Develop Version Numbering for an Application

拜拜、爱过 提交于 2019-12-02 23:50:39
Firstly, I think this forum is not appropriate for my question, so if it is in wrong place, kindly forgive and place wherever appropriate. I didn't find proper forum for my question. I have developed a C# application (Win Forms). Now I need to handle its version numbering. I can't make out what is the best way to do. I want the version number to be simple something like 1.2 or 1.2.1. I read about SVN Version, but that also seems little confusing at this stage. There are different version types for the application - 1 with the installer , and 1 without installer. I think the release version and

Xamarin mobile app version number scheme across 3 platforms

三世轮回 提交于 2019-12-02 22:51:36
There's probably multiple questions here all related. I'm trying to come up with a simple version number update scheme for our 3 mobile apps built from a single xamarin solution. What I'm looking for is a simple way to keep all these values in sync with one another without having to go around and update them all individually. Windows Phone Version should get set to the AssemblyVersion or FileVersion Automatically IOS Version Number should be set to same. (not sure what the build number should be) Android Version Name should be set to same. Android Version Number should auto increment for each