versioning

Will .Net 4.0 include a new CLR or keep with version 2.0

只谈情不闲聊 提交于 2019-11-30 09:10:06
问题 Will .Net 4.0 use a new version of the CLR (v2.1, 3.0) or will it stick with the existing v2.0? Supplementary: Is it possibly going to keep with CLR v2.0 and add DLR v1.0? Update: Whilst this might look like a speculative question which cannot be answered, the VS team appear to be releasing more and more info on VS10 and .Net 4.0 so this may very soon not be the case. (Info available here -> http://msdn.microsoft.com/en-us/vstudio/products/cc948977.aspx) 回答1: 4.0 is going to be another side

Getting runtime version of a Silverlight assembly

隐身守侯 提交于 2019-11-30 07:59:51
I want to show my Silverlight 3 application's version number in the about box, but when I use a traditional .Net call like: Assembly.GetExecutingAssembly().GetName().Version; I get a MethodAccessException on the GetName() call. How am I supposed to get the version number of my assembly? James Campbell private static Version ParseVersionNumber(Assembly assembly) { AssemblyName assemblyName = new AssemblyName(assembly.FullName); return assemblyName.Version; } or this: Assembly assembly = Assembly.GetExecutingAssembly(); String version = assembly.FullName.Split(',')[1]; String fullversion =

How can I display the Build number and/or DateTime of last build in my app?

老子叫甜甜 提交于 2019-11-30 07:57:46
问题 I know that I can do this to get the app's official (release/publish) version number: string version = Assembly.GetExecutingAssembly().GetName().Version.ToString(); this.Text = String.Format("Platypi R Us - version {0}", version); ...but this only shows a "Publish version" of my app* ("1.0.0.0"). I want to show the build number. From the Project | Properties | Publish tab. Barring that, or in addition to that, I'd like to show the date and time of the last build, so that it says "Platypi R Us

How can I confirm what version of Jasmine I'm using?

旧时模样 提交于 2019-11-30 07:50:13
If I recall there is a command in Jasmine that will log the exact version of Jasmine I'm running to the console, but I can't remember what it is. I am positive I have seen this before somewhere, and now that I actually need it I can't find it anywhere. Does anyone know what it is? Edit: The posted solution of using jasmine.getEnv().versionString() isn't working - to any mods reading this, would fixing that issue be better to start as a new question, or continue here? To simply log the version number try: if (jasmine.version) { //the case for version 2.0.0 console.log('jasmine-version:' +

Best practice for protobuf-net, versioning and surrogate types

て烟熏妆下的殇ゞ 提交于 2019-11-30 07:35:43
I'm trying to determine how to address this use case using protobuf-net (Marc Gravell's implementation). We have class A, which is considered version 1 An instance of class A has been serialized to disk We now have class B, which is considered version 2 of class A (there were so many things wrong with class A, we had to create class B for the next version). Class A still exists in code, but only for legacy purposes. I want to deserialize the version:1 data (stored to disk) as a class B instance, and use a logic routine to translate the data from the previous class A instance to a new instance

How can I get MSBuild to increment the ClickOnce publish revision version number on a build server?

牧云@^-^@ 提交于 2019-11-30 07:30:54
We have an NAnt script that checks out from CVS and then runs MSBuild to publish the application. The problem is we have to remember to always increment the version in Visual Studio. We have the option to auto increment this on publish, but this gets wiped on the next checkout and I would rather not have to get the build script to check in the project file. Is there a simple way to do this? KyleMit Updating the MinimumRequiredVersion Automatically Introduction to Project Editor In Solution Explorer, right click on your project and select unload project. Once the project has become unavailable,

Getting application version from pom

房东的猫 提交于 2019-11-30 06:56:08
I have a rest endpoint used to return information about application (so far only app version) But so far this info is hardcoded, and it's pretty easy to forget to change it. I will be better to retrieve app version from pom or manifest file. Is there any project that brings such functionality? There is amazing project named Appinfo , please use it and enjoy! (It has an ugly page, I know - but it works :) AppInfo allows to automatically feed your application with a current version number, build date or build number. Also excellent Spring Boot Actuator provides feature named Info Endpoint which

How to deal with a Java serialized object whose package changed?

一笑奈何 提交于 2019-11-30 06:36:44
I have a Java class that is stored in an HttpSession object that's serialized and transfered between servers in a cluster environment. For the purpose of this explanation, lets call this class "Person". While in the process of improving the code, this class was moved from "com.acme.Person" to "com.acme.entity.Person". Internally, the class remains exactly the same (same fields, same methods, same everything). The problem is that we have two sets of servers running the old code and the new code at the same time. The servers with the old code have serialized HttpSession object and when the new

How to detect which Bootstrap version is used from JavaScript?

旧城冷巷雨未停 提交于 2019-11-30 06:35:36
I've been looking at the CSS & JavaScript from Bootstrap 3. Nothing is modularized under a common alias. For the JavaScript, it is injected into jQuery's prototype... How would it be possible to detect which version of Bootstrap is included in a user's web page from a third party plugin/library point of view with JavaScript? The version of each of Bootstrap's jQuery plugins can be accessed via the VERSION property of the plugin's constructor $.fn.tooltip.Constructor.VERSION As suggested in comments, the only function that seems to be removed in Bootstrap 3 was typehead , even then - there

Deciding on version numbers

孤街浪徒 提交于 2019-11-30 05:20:13
问题 DUPLICATE How to do version numbers? Hello, So I recently saw that Groovy was released to version 1.6 and while listening to the Java Posse Podcast they were commenting how there was so much packed into this release it should have been a 2.0 release. That got me thinking. Are version numbers just arbitrary? I used to think they had a meaning but I guess not. Is it all just milestone based and set project to project? How does your team control your version numbers and releases? Thanks in