Skip to content

Commit

Permalink
Fixed project file for preview SDKs.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Oct 17, 2024
1 parent 8bfa0e2 commit 3840a4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SharpSnmpLib/SharpSnmpLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<UseWPF>false</UseWPF>
<UseWindowsForms>false</UseWindowsForms>
<!-- Detect SDK version -->
<IsNet60Supported Condition="'$(NETCoreSdkVersion)' >= '6.0'">true</IsNet60Supported>
<ParsedSdkVersion>$([System.Text.RegularExpressions.Regex]::Replace($(NETCoreSdkVersion), '-.*', ''))</ParsedSdkVersion>
<IsNet60Supported Condition="'$(ParsedSdkVersion)' >= '6.0'">true</IsNet60Supported>
<!-- Only support .NET 6 and .NET Framework 4.7.1 right now. -->
<TargetFrameworks Condition="'$(IsNet60Supported)' == 'true'">net6.0;net471</TargetFrameworks>
<TargetFrameworks Condition="'$(IsNet60Supported)' != 'true'">net471</TargetFrameworks>
Expand Down

0 comments on commit 3840a4f

Please sign in to comment.