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.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
@@ -78,12 +78,14 @@ private static string GetFreeBSDVersion()
78
78
// This is same as sysctl kern.version
79
79
// 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
80
80
// What we want is major release as minor releases should be compatible.
81
+ // ReSharper disable once UnusedVariable
81
82
String version = RuntimeInformation . OSDescription ;
82
83
try
83
84
{
84
85
// second token up to first dot
85
86
return RuntimeInformation . OSDescription . Split ( ) [ 1 ] . Split ( '.' ) [ 0 ] ;
86
87
}
88
+ // ReSharper disable once EmptyGeneralCatchClause
87
89
catch
88
90
{
89
91
}
You can’t perform that action at this time.
0 commit comments