Skip to content

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Java.Interop/Java.Interop.csproj

+2-1
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
<PropertyGroup Condition=" '$(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

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

0 commit comments

Comments
 (0)