File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/GitVersionTask.MsBuild/PlatformAbstraction/Native Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1- // Licensed to the .NET Foundation under one or more agreements.
1+ // Licensed to the .NET Foundation under one or more agreements.
22// The .NET Foundation licenses this file to you under the MIT license.
33// See the LICENSE file in the project root for more information.
44
@@ -78,12 +78,14 @@ private static string GetFreeBSDVersion()
7878 // This is same as sysctl kern.version
7979 // FreeBSD 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #0 r306420: Thu Sep 29 01:43:23 UTC 2016 [email protected] :/usr/obj/usr/src/sys/GENERIC 8080 // What we want is major release as minor releases should be compatible.
81+ // ReSharper disable once UnusedVariable
8182 String version = RuntimeInformation . OSDescription ;
8283 try
8384 {
8485 // second token up to first dot
8586 return RuntimeInformation . OSDescription . Split ( ) [ 1 ] . Split ( '.' ) [ 0 ] ;
8687 }
88+ // ReSharper disable once EmptyGeneralCatchClause
8789 catch
8890 {
8991 }
You can’t perform that action at this time.
0 commit comments