Skip to content

Commit 9876e31

Browse files
authored
[Java.Interop.BootstrapTasks] Convert to SDK style project (#609)
1 parent cbb50af commit 9876e31

File tree

3 files changed

+13
-72
lines changed

3 files changed

+13
-72
lines changed
Lines changed: 11 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,21 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
33
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProjectGuid>{3E8E5C8C-59A6-4A9A-B55D-46AB14431B2A}</ProjectGuid>
7-
<OutputType>Library</OutputType>
8-
<RootNamespace>Java.Interop.BootstrapTasks</RootNamespace>
9-
<AssemblyName>Java.Interop.BootstrapTasks</AssemblyName>
10-
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
11-
<ProductVersion>8.0.30703</ProductVersion>
12-
<SchemaVersion>2.0</SchemaVersion>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
6+
<OutputPath>$(BuildToolOutputFullPath)</OutputPath>
137
</PropertyGroup>
14-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
15-
<DebugSymbols>True</DebugSymbols>
16-
<DebugType>Full</DebugType>
17-
<Optimize>False</Optimize>
18-
<OutputPath>..\..\bin\BuildDebug</OutputPath>
19-
<ErrorReport>prompt</ErrorReport>
20-
<WarningLevel>4</WarningLevel>
21-
<ConsolePause>false</ConsolePause>
22-
</PropertyGroup>
23-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
24-
<Optimize>true</Optimize>
25-
<OutputPath>..\..\bin\BuildRelease</OutputPath>
26-
<ErrorReport>prompt</ErrorReport>
27-
<WarningLevel>4</WarningLevel>
28-
<ConsolePause>false</ConsolePause>
29-
</PropertyGroup>
30-
<ItemGroup>
31-
<Reference Include="mscorlib" />
32-
<Reference Include="System" />
33-
<Reference Include="System.Net.Http" />
34-
<Reference Include="System.Xml" />
35-
<Reference Include="System.Xml.Linq" />
36-
<Reference Include="Microsoft.Build.Framework" />
37-
<Reference Include="Microsoft.Build.Utilities.v4.0" />
38-
</ItemGroup>
8+
399
<ItemGroup>
40-
<Compile Include="Java.Interop.BootstrapTasks\DownloadUri.cs" />
41-
<Compile Include="Java.Interop.BootstrapTasks\JdkInfo.cs" />
42-
<Compile Include="Java.Interop.BootstrapTasks\OS.cs" />
43-
<Compile Include="Java.Interop.BootstrapTasks\SetEnvironmentVariable.cs" />
44-
<Compile Include="Properties\AssemblyInfo.cs" />
10+
<PackageReference Include="Microsoft.Build.Framework" Version="16.5.0" />
11+
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.5.0" />
4512
</ItemGroup>
13+
4614
<ItemGroup>
4715
<ProjectReference Include="$(XamarinAndroidToolsFullPath)\src\Xamarin.Android.Tools.AndroidSdk\Xamarin.Android.Tools.AndroidSdk.csproj">
4816
<Project>{E34BCFA0-CAA4-412C-AA1C-75DB8D67D157}</Project>
4917
<Name>Xamarin.Android.Tools.AndroidSdk</Name>
5018
</ProjectReference>
5119
</ItemGroup>
52-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
53-
</Project>
20+
21+
</Project>

build-tools/Java.Interop.BootstrapTasks/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

build-tools/automation/azure-pipelines.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ jobs:
4444
inputs:
4545
solution: Java.Interop.sln
4646
configuration: $(Build.Configuration)
47-
msbuildArguments: /t:Prepare
47+
msbuildArguments: /restore /t:Prepare
4848

4949
- task: MSBuild@1
5050
displayName: MSBuild Java.Interop.sln
5151
inputs:
5252
solution: Java.Interop.sln
5353
configuration: $(Build.Configuration)
54-
msbuildArguments: '/t:Restore,Build'
54+
msbuildArguments: /restore
5555

5656
- task: MSBuild@1
5757
displayName: MSBuild RunNUnitTests.targets

0 commit comments

Comments
 (0)