Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Commit a0b895c

Browse files
authored
[build] Suppress NuGet warnings (#730)
Suppress some NuGet warnings: * `logcat-parse.csproj` Warning NU1701: Package 'Mono.CSharp 4.0.0.143' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETCoreApp,Version=v3.1'. This package may not be fully compatible with your project. * `Java.Interop.csproj` Warning NU1702: ProjectReference 'D:\…\build-tools\jnienv-gen\jnienv-gen.csproj' was resolved using '.NETFramework,Version=v4.7.2' instead of the project target framework '.NETStandard,Version=v2.0'. This project may not be fully compatible with your project.
1 parent 8b1b050 commit a0b895c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/Java.Interop/Java.Interop.csproj‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<LangVersion>8.0</LangVersion>
1616
<Nullable>enable</Nullable>
1717
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
18+
<MSBuildWarningsAsMessages>NU1702</MSBuildWarningsAsMessages>
1819
</PropertyGroup>
1920
<PropertyGroupCondition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2021
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>
@@ -79,4 +80,4 @@
7980
</Properties>
8081
</MonoDevelop>
8182
</ProjectExtensions>
82-
</Project>
83+
</Project>

‎tools/logcat-parse/logcat-parse.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<PackageReferenceInclude="Mono.Options"Version="5.3.0.1" />
1414
<PackageReferenceInclude="Mono.Terminal"Version="5.4.0" />
15-
<PackageReferenceInclude="Mono.CSharp"Version="4.0.0.143" />
15+
<PackageReferenceInclude="Mono.CSharp"Version="4.0.0.143"NoWarn="NU1701"/>
1616
<PackageReferenceInclude="Microsoft.NETFramework.ReferenceAssemblies"PrivateAssets="All"Version="1.0.0" />
1717
</ItemGroup>
1818

0 commit comments

Comments
 (0)