Skip to content

Commit 446146a

Browse files
committed
Address review feedback.
1 parent 74724c0 commit 446146a

File tree

9 files changed

+7
-29
lines changed

9 files changed

+7
-29
lines changed

Directory.Build.props

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
<!-- Note: MUST be imported *after* $(Configuration) is set! -->
44
<PropertyGroup>
55
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release' ">true</TreatWarningsAsErrors>
67
<_OutputPath>$(MSBuildThisFileDirectory)bin\Build$(Configuration)\</_OutputPath>
78
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
89
<ProduceReferenceAssemblyInOutDir>true</ProduceReferenceAssemblyInOutDir>
910
<DotNetTargetFrameworkVersion>7.0</DotNetTargetFrameworkVersion>
1011
<DotNetTargetFramework>net$(DotNetTargetFrameworkVersion)</DotNetTargetFramework>
11-
<!-- These assemblies are used by Xamarin.Android.Build.Tasks which must be netstandard2.0
12-
in order to be loaded into Visual Studio -->
13-
<MSBuildRequiredTargetFramework>netstandard2.0</MSBuildRequiredTargetFramework>
1412
</PropertyGroup>
1513

1614
<Import
@@ -69,19 +67,10 @@
6967
</PropertyGroup>
7068

7169
<!--
72-
When building on a bot w/ VS2019:
73-
74-
warning CS8032: An instance of analyzer System.Text.Json.SourceGeneration.JsonSourceGenerator cannot be created from
75-
76-
however, with `$(TreatWarningsAsErrors)`=True, this becomes an error,
77-
meaning we can't build on VS2019.
78-
79-
Ignore CS8032 so that we can build on VS2019.
80-
8170
JniEnvironment.g.cs(34,8): error CS8981: The type name 'jobject' only contains lower-cased ascii characters. Such names may become reserved for the language.
8271
-->
8372
<PropertyGroup>
84-
<NoWarn>$(NoWarn);CS8032;CS8981</NoWarn>
73+
<NoWarn>$(NoWarn);CS8981</NoWarn>
8574
</PropertyGroup>
8675

8776
</Project>

build-tools/automation/azure-pipelines.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ variables:
2121
RunningOnCI: true
2222
Build.Configuration: Release
2323
MaxJdkVersion: 8
24-
DotNetCoreVersion: 7.0.100-rc.1.22431.12
24+
DotNetCoreVersion: 7.x
2525
DotNetTargetFramework: net7.0
2626
NetCoreTargetFrameworkPathSuffix: -$(DotNetTargetFramework)
2727
1ESWindowsPool: AzurePipelines-EO

build-tools/automation/templates/install-dependencies.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ steps:
66
displayName: Use .NET $(DotNetCoreVersion)
77
inputs:
88
version: $(DotNetCoreVersion)
9-
includePreviewVersions: true

src/Java.Interop.Localization/Java.Interop.Localization.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>$(MSBuildRequiredTargetFramework)</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>8.0</LangVersion>
66
<Nullable>enable</Nullable>
77
<DefineConstants>INTERNAL_NULLABLE_ATTRIBUTES</DefineConstants>

src/Java.Interop.Tools.Cecil/Java.Interop.Tools.Cecil.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>$(MSBuildRequiredTargetFramework)</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>8.0</LangVersion>
66
<Nullable>enable</Nullable>
77
<DefineConstants>INTERNAL_NULLABLE_ATTRIBUTES</DefineConstants>

src/Java.Interop.Tools.Diagnostics/Java.Interop.Tools.Diagnostics.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>$(MSBuildRequiredTargetFramework)</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>8.0</LangVersion>
66
<Nullable>enable</Nullable>
77
<DefineConstants>INTERNAL_NULLABLE_ATTRIBUTES</DefineConstants>

src/Java.Interop.Tools.Generator/Java.Interop.Tools.Generator.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<TargetFramework>$(DotNetTargetFramework)</TargetFramework>
55
<LangVersion>8.0</LangVersion>
66
<Nullable>enable</Nullable>
7-
<DefineConstants>INTERNAL_NULLABLE_ATTRIBUTES</DefineConstants>
87
</PropertyGroup>
98

109
<Import Project="..\..\TargetFrameworkDependentValues.props" />
@@ -13,10 +12,6 @@
1312
<OutputPath>$(UtilityOutputFullPath)</OutputPath>
1413
</PropertyGroup>
1514

16-
<ItemGroup>
17-
<Compile Include="..\utils\NullableAttributes.cs" />
18-
</ItemGroup>
19-
2015
<ItemGroup>
2116
<ProjectReference Include="..\Java.Interop.Localization\Java.Interop.Localization.csproj" />
2217
</ItemGroup>

src/Java.Interop.Tools.JavaCallableWrappers/Java.Interop.Tools.JavaCallableWrappers.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>$(MSBuildRequiredTargetFramework)</TargetFramework>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
66
<LangVersion>8.0</LangVersion>
77
<Nullable>enable</Nullable>

src/Java.Interop.Tools.JavaTypeSystem/Java.Interop.Tools.JavaTypeSystem.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<PropertyGroup>
44
<TargetFramework>$(DotNetTargetFramework)</TargetFramework>
55
<Nullable>enable</Nullable>
6-
<DefineConstants>INTERNAL_NULLABLE_ATTRIBUTES</DefineConstants>
76
<LangVersion>8.0</LangVersion>
87
</PropertyGroup>
98

@@ -15,10 +14,6 @@
1514

1615
<Import Project="..\..\build-tools\scripts\cecil.projitems" />
1716

18-
<ItemGroup>
19-
<Compile Include="..\utils\NullableAttributes.cs" />
20-
</ItemGroup>
21-
2217
<ItemGroup>
2318
<ProjectReference Include="..\..\src\Java.Interop.Tools.Cecil\Java.Interop.Tools.Cecil.csproj" />
2419
</ItemGroup>

0 commit comments

Comments
 (0)