Skip to content

Commit 19197f0

Browse files
committed
Fix conditional table addition and update project file output type condition
1 parent 6252b96 commit 19197f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Samples/CSharpCore/snmpd/Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ public static async Task Main(string[] args)
8989

9090
store.Add(new IfNumber());
9191
store.Add(new IfTable());
92+
#if !USE_SOURCE_GENERATOR
9293
store.Add(new ipNetToMediaTable());
94+
#endif
9395
// store.Add(new IpNetToMediaTable());
9496
// //store.Add(new EntPhysicalTable());
9597
// // store.Add(new Counter64Test());

Tests/CSharpCore/Tests.NetStandard.csproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
2-
<PropertyGroup Label="Configuration">
1+
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0"> <PropertyGroup Label="Configuration">
32
<RootNamespace>Lextm.SharpSnmpLib</RootNamespace>
43
<SignAssembly>True</SignAssembly>
54
<AssemblyOriginatorKeyFile>sharpsnmplib.tests.snk</AssemblyOriginatorKeyFile>
65
<AssemblyName>SharpSnmpLib.Tests.NetStandard</AssemblyName>
7-
</PropertyGroup>
8-
<PropertyGroup>
9-
<OutputType Condition="'$(TargetFramework)'!='net471'">Exe</OutputType>
6+
</PropertyGroup> <PropertyGroup>
7+
<OutputType Condition="!$(TargetFramework.StartsWith('net4'))">Exe</OutputType>
108
<!-- Detect SDK version -->
119
<ParsedSdkVersion>$([System.Text.RegularExpressions.Regex]::Replace($(NETCoreSdkVersion), '-.*',
1210
''))</ParsedSdkVersion>

0 commit comments

Comments
 (0)