version

How to synchronise the publish version to the assembly version in a .NET ClickOnce application?

最后都变了- 提交于 2019-11-27 11:31:31
问题 In my C# ClickOnce application, there is an auto-incremented publish version in the Project -> Properties -> Publish tab. I'd like to display that version in my menu Help -> About box, but the code I'm using apparently accesses the assembly Version, which is different. The Assembly Version can be changed manually in the Project -> Properties -> Application -> Assembly Information dialog. So for now, every time before I publish I've been copying the publish version to the assembly version, so

SQL Server file names vs versions [closed]

痴心易碎 提交于 2019-11-27 11:18:44
I am lucky to be an admin of a server, but I have no idea how many versions of sql server on this server. When I opened the file Microsoft SQL Server, there are files called 80, 90, 100, 110. And I have only found SQL Server 2012 setup, so what's the relationship between the files names like 80, 90, 100, 110 with sql server versions like 2008, 2012? The mapping is: 80 = SQL Server 2000 = 8.00.xxxx 90 = SQL Server 2005 = 9.00.xxxx 100 = SQL Server 2008 = 10.00.xxxx 105 = SQL Server 2008 R2 = 10.50.xxxx 110 = SQL Server 2012 = 11.00.xxxx 120 = SQL Server 2014 = 12.00.xxxx 130 = SQL Server 2016 =

How to check the version of OpenMP on Linux

 ̄綄美尐妖づ 提交于 2019-11-27 11:09:35
问题 I wonder how to check the version of OpenMP on a Linux remote machine? I don't know where it is installed either. 回答1: It appears that the C/C++ specification for OpenMP provides no direct way of doing this programmatically. So you have to check the docs for your compiler version. gcc --version ## get compiler version For GCC, this is a good resource (does not mention newest versions of GCC): http://gcc.gnu.org/wiki/openmp: As of GCC 4.2, the compiler implements version 2.5 of the OpenMP

How to determine Delphi Application Version

拜拜、爱过 提交于 2019-11-27 11:04:05
问题 Want to obtain Delphi Application build number and post into title bar 回答1: Here is how I do it. I put this in almost all of my small utilities: procedure GetBuildInfo(var V1, V2, V3, V4: word); var VerInfoSize, VerValueSize, Dummy: DWORD; VerInfo: Pointer; VerValue: PVSFixedFileInfo; begin VerInfoSize := GetFileVersionInfoSize(PChar(ParamStr(0)), Dummy); if VerInfoSize > 0 then begin GetMem(VerInfo, VerInfoSize); try if GetFileVersionInfo(PChar(ParamStr(0)), 0, VerInfoSize, VerInfo) then

How do I identify the particular Linux flavor via command line?

余生颓废 提交于 2019-11-27 10:46:45
问题 I'd like to be able to detect which particular Linux flavor is installed on a computer, e.g. Ubuntu vs Fedora, via a command line command. Some people recommend uname -a , but that only reports the kernel version. 回答1: Try the below command.... It worked for me... cat /proc/version Once you know that you are running Red Hat for example, you can get to the point with: cat /etc/redhat-release Or on Debian: cat /etc/debian_version or in general : cat /etc/*-release Also you could use the

How to check SQL Server version

南楼画角 提交于 2019-11-27 10:28:46
What are the possible ways to determine the deployed SQL Server version? I’ve tried to do it using the SQL Server software. I want to do it using a command line SQL statement. Imran Following are possible ways to see the version: Method 1: Connect to the instance of SQL Server, and then run the following query: Select @@version An example of the output of this query is as follows: Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: ) Method 2: Connect to the server

Maven check for updated dependencies in repository

放肆的年华 提交于 2019-11-27 10:04:07
Is there a Maven plugin that allows you to check if there are newer versions of dependencies available in the repository? Say, you are using dependency X with version 1.2. Now a new version of X is released with version 1.3. I'd like to know, based on the dependencies used in my project, which dependencies have newer versions available. Pascal Thivent The Maven Versions plugin and its display-dependency-updates mojo are what you're looking for: mvn versions:display-dependency-updates Here is what the output looks like: [INFO] --------------------------------------------------------------------

Assembly version from command line?

点点圈 提交于 2019-11-27 09:56:56
问题 Is there a Microsoft tool to get the assembly version of a DLL file from a command line? (I know that I can code my own tool.) 回答1: This is an area where PowerShell shines. If you don't already have it, install it. It's preinstalled with Windows 7. Running this command line: [System.Reflection.Assembly]::LoadFrom("C:\full\path\to\YourDllName.dll").GetName().Version outputs this: Major Minor Build Revision ----- ----- ----- -------- 3 0 8 0 Note that LoadFrom returns an assembly object, so you

Finding the Eclipse Version Number

南笙酒味 提交于 2019-11-27 09:38:46
问题 I have posted how to find it in Eclipse Gallileo, but if anyone has information on older versions feel free to post it below. 回答1: (Update September 2012): MRT points out in the comments that "Eclipse Version" question references a .eclipseproduct in the main folder, and it contains: name=Eclipse Platform id=org.eclipse.platform version=3.x.0 So that seems more straightforward than my original answer below. Also, Neeme Praks mentions below that there is a eclipse/configuration/config.ini

Move tag one commit ahead

[亡魂溺海] 提交于 2019-11-27 09:24:12
问题 I have a repository with only one branch ( master ). I'm the only contributor to my repo. I've recently added a tag , both locally and pushed to GitHub. After making what I though was the last necessary commit, but now I realize I should have made one more change/commit. So what I have is: commit 124 commit 125 commit 126 <-- tag v1.0 commit 127 and I want to move the v1.0 tag to the next commit, ie: 127 , both locally and in GitHub. How can I do that? 回答1: Have you ever been to a book club