Skip to content

Commit a5d7370

Browse files
[build] remove old Xamarin.Android build settings (#1358)
Reviewing `Java.Interop`'s build, I noticed some things we can delete now: * Checking for `$(XABuild)`, as this is no longer used * Checking for `$(TargetFramework)=monoandroid10`
1 parent f01e793 commit a5d7370

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

src/Java.Interop/Java.Interop.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<XAConfigPath>..\..\bin\Build$(Configuration)\XAConfig.props</XAConfigPath>
55
</PropertyGroup>
66
<Import Condition="Exists ('$(XAConfigPath)')" Project="$(XAConfigPath)" />
7-
<PropertyGroup Condition=" '$(XABuild)' != 'true' ">
7+
<PropertyGroup>
88
<TargetFramework>$(DotNetTargetFramework)</TargetFramework>
99
</PropertyGroup>
1010
<PropertyGroup>

src/Java.Interop/Java.Interop.targets

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,4 @@
3232
<Exec Command="&quot;$(JarPath)&quot; cf &quot;$(OutputPath)java-interop.jar&quot; -C &quot;$(IntermediateOutputPath)ji-classes&quot; ." />
3333
</Target>
3434
<UsingTask AssemblyFile="$(MSBuildThisFileDirectory)..\..\bin\Build$(Configuration)\Java.Interop.BootstrapTasks.dll" TaskName="Java.Interop.BootstrapTasks.ReplaceFileContents" />
35-
<Target Name="BuildVersionInfo_g_cs"
36-
Condition=" '$(GenerateAssemblyInfo)' == 'true' And '$(TargetFramework)' == 'monoandroid10' ">
37-
<ItemGroup>
38-
<Replacements Include="@VERSION@" Replacement="$(Version)"/>
39-
<Replacements Include="@INFORMATIONALVERSION@" Replacement="$(InformationalVersion)"/>
40-
<Replacements Include="@TITLE@" Replacement="$(AssemblyName)"/>
41-
<Replacements Include="@PRODUCT@" Replacement="$(AssemblyName)"/>
42-
<Replacements Include="@CONFIGURATION@" Replacement="$(Configuration)"/>
43-
</ItemGroup>
44-
<ReplaceFileContents
45-
TemplateFile="$(MSBuildThisFileDirectory)..\..\build-tools\scripts\AssemblyInfo.g.cs.in"
46-
OutputFile="$(IntermediateOutputPath)$(AssemblyName).AssemblyInfo.g.cs"
47-
Replacements="@(Replacements)"
48-
/>
49-
<ItemGroup>
50-
<Compile Include="$(IntermediateOutputPath)$(AssemblyName).AssemblyInfo.g.cs"/>
51-
</ItemGroup>
52-
</Target>
5335
</Project>

0 commit comments

Comments
 (0)