Skip to content

Commit 6b718d4

Browse files
committed
Fix .NET Native error ILT0038
1 parent 4357356 commit 6b718d4

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

AdvancedSharpAdbClient.Tests/AdvancedSharpAdbClient.Tests.csproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
</PropertyGroup>
77

88
<Choose>
9-
<When Condition="'$(IsStandard)' == 'True'">
9+
<When Condition="'$(IsWindows)' == 'True' and '$(IsStandard)' != 'True'">
1010
<PropertyGroup>
11-
<TargetFramework>net8.0</TargetFramework>
12-
</PropertyGroup>
13-
</When>
14-
<When Condition="'$(IsWindows)' == 'True'">
15-
<PropertyGroup>
16-
<TargetFramework Condition="'$(IsWindows)' == 'True'">net8.0-windows10.0.17763.0</TargetFramework>
11+
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
1712
</PropertyGroup>
1813
</When>
1914
<Otherwise>

AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
</ItemGroup>
112112

113113
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net5.0-windows'))">
114-
<PackageReference Include="System.Drawing.Common" Version="8.0.6" />
114+
<PackageReference Include="System.Drawing.Common" Version="8.0.7" />
115115
</ItemGroup>
116116

117117
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netstandard2.1'))">

AdvancedSharpAdbClient/Models/DeviceData.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ namespace AdvancedSharpAdbClient.Models
2828
/// </summary>
2929
private static readonly Regex Regex = DeviceDataRegex();
3030

31-
/// <summary>
32-
/// Initializes a new instance of the <see cref="DeviceData"/> struct.
33-
/// </summary>
34-
public DeviceData() { }
35-
3631
/// <summary>
3732
/// Initializes a new instance of the <see cref="DeviceData"/> struct based on
3833
/// data retrieved from the Android Debug Bridge.

0 commit comments

Comments
 (0)