Skip to content

Commit

Permalink
Fix .NET Native error ILT0038
Browse files Browse the repository at this point in the history
  • Loading branch information
wherewhere committed Jul 28, 2024
1 parent 4357356 commit 6b718d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@
</PropertyGroup>

<Choose>
<When Condition="'$(IsStandard)' == 'True'">
<When Condition="'$(IsWindows)' == 'True' and '$(IsStandard)' != 'True'">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
</When>
<When Condition="'$(IsWindows)' == 'True'">
<PropertyGroup>
<TargetFramework Condition="'$(IsWindows)' == 'True'">net8.0-windows10.0.17763.0</TargetFramework>
<TargetFramework>net8.0-windows10.0.17763.0</TargetFramework>
</PropertyGroup>
</When>
<Otherwise>
Expand Down
2 changes: 1 addition & 1 deletion AdvancedSharpAdbClient/AdvancedSharpAdbClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
</ItemGroup>

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

<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netstandard2.1'))">
Expand Down
5 changes: 0 additions & 5 deletions AdvancedSharpAdbClient/Models/DeviceData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ namespace AdvancedSharpAdbClient.Models
/// </summary>
private static readonly Regex Regex = DeviceDataRegex();

/// <summary>
/// Initializes a new instance of the <see cref="DeviceData"/> struct.
/// </summary>
public DeviceData() { }

/// <summary>
/// Initializes a new instance of the <see cref="DeviceData"/> struct based on
/// data retrieved from the Android Debug Bridge.
Expand Down

0 comments on commit 6b718d4

Please sign in to comment.