Skip to content

Commit 8bde758

Browse files
[xabuild] convert to short-form MSBuild project (#5594)
1 parent 4fdbdc1 commit 8bde758

File tree

2 files changed

+7
-64
lines changed

2 files changed

+7
-64
lines changed

tools/xabuild/Properties/AssemblyInfo.cs

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

tools/xabuild/xabuild.csproj

Lines changed: 7 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,16 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{B7A457E6-9CB6-43F6-BFD6-14D5397FB98D}</ProjectGuid>
83
<OutputType>Exe</OutputType>
94
<RootNamespace>Xamarin.Android.Build</RootNamespace>
105
<AssemblyName>xabuild</AssemblyName>
11-
<FileAlignment>512</FileAlignment>
6+
<PlatformTarget>x86</PlatformTarget>
7+
<TargetFramework>net472</TargetFramework>
8+
<OutputPath>..\..\bin\$(Configuration)\bin</OutputPath>
9+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1210
<_MSBuildExtension Condition=" '$(OS)' == 'Windows_NT' ">exe</_MSBuildExtension>
1311
<_MSBuildExtension Condition=" '$(OS)' != 'Windows_NT' ">dll</_MSBuildExtension>
1412
</PropertyGroup>
1513
<Import Project="..\..\Configuration.props" />
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<PlatformTarget>x86</PlatformTarget>
18-
<DebugSymbols>true</DebugSymbols>
19-
<Optimize>false</Optimize>
20-
<OutputPath>..\..\bin\Debug\bin</OutputPath>
21-
<DefineConstants>DEBUG;TRACE</DefineConstants>
22-
<ErrorReport>prompt</ErrorReport>
23-
<WarningLevel>4</WarningLevel>
24-
</PropertyGroup>
25-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26-
<PlatformTarget>x86</PlatformTarget>
27-
<Optimize>true</Optimize>
28-
<OutputPath>..\..\bin\Release\bin</OutputPath>
29-
<DefineConstants>TRACE</DefineConstants>
30-
<ErrorReport>prompt</ErrorReport>
31-
<WarningLevel>4</WarningLevel>
32-
</PropertyGroup>
3314
<ItemGroup>
3415
<PackageReference Include="System.Buffers" Version="4.5.1" />
3516
<PackageReference Include="System.Collections.Immutable" Version="1.7.1" />
@@ -51,32 +32,15 @@
5132
<Reference Include="Microsoft.Build.Utilities.Core">
5233
<HintPath>$(MSBuildToolsPath)\Microsoft.Build.Utilities.Core.dll</HintPath>
5334
</Reference>
54-
<Reference Include="System" />
55-
<Reference Include="System.Core" />
56-
<Reference Include="System.Xml" />
57-
<Reference Include="Microsoft.CSharp" />
58-
<ProjectReference Include="..\vswhere\vswhere.csproj">
59-
<Project>{dbdc804f-8406-4f5e-83c6-720cb0cb6c6f}</Project>
60-
<Name>vswhere</Name>
61-
</ProjectReference>
62-
</ItemGroup>
63-
<ItemGroup>
64-
<Compile Include="Properties\AssemblyInfo.cs" />
65-
<Compile Include="SymbolicLink.cs" />
66-
<Compile Include="XABuild.cs" />
67-
<Compile Include="XABuildPaths.cs" />
68-
</ItemGroup>
69-
<ItemGroup>
70-
<None Include="App.config" />
35+
<ProjectReference Include="..\vswhere\vswhere.csproj" />
7136
</ItemGroup>
7237
<ItemGroup>
7338
<Content Include="..\scripts\xabuild">
7439
<Link>xabuild</Link>
7540
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7641
</Content>
7742
</ItemGroup>
78-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
79-
<Target Name="AfterBuild">
43+
<Target Name="_AfterBuild" AfterTargets="Build">
8044
<Delete Files="$(OutputPath)MSBuild.$(_MSBuildExtension).config" />
8145
</Target>
8246
</Project>

0 commit comments

Comments
 (0)