diff options
author | Jan Kotas <jkotas@microsoft.com> | 2017-06-24 21:10:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-24 21:10:44 +0300 |
commit | 555bcbcb5458a7aacb404f8242a6fe9267266ca7 (patch) | |
tree | dfb7caea05fb1f004869a4eba32267f2a76fe449 /src/ILCompiler.MetadataTransform | |
parent | 095e43a781181d9a59ceb726a9c72a65913dbdeb (diff) |
Update CoreRT build to use latest .NET CLI and build tools (#3916)
- Pick up latest .NET Core 2.0 CLI and buildtools
- Remove all project.json references and convert everything to msbuild projects
- Stick to vanilla .NET CLI project shape as much as possible. Minimize dependencies on buildtools special behaviors
Diffstat (limited to 'src/ILCompiler.MetadataTransform')
9 files changed, 26 insertions, 137 deletions
diff --git a/src/ILCompiler.MetadataTransform/src/ILCompiler.MetadataTransform.csproj b/src/ILCompiler.MetadataTransform/src/ILCompiler.MetadataTransform.csproj index c4f57ab30..97f6e3ab3 100644 --- a/src/ILCompiler.MetadataTransform/src/ILCompiler.MetadataTransform.csproj +++ b/src/ILCompiler.MetadataTransform/src/ILCompiler.MetadataTransform.csproj @@ -1,33 +1,18 @@ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" Condition="'$(IsProjectNLibrary)' != 'true'"/> <PropertyGroup> - <ProjectGuid>{A965EA82-219D-48F7-AD51-BC030C16CC6F}</ProjectGuid> <OutputType>Library</OutputType> - <AppDesignerFolder>Properties</AppDesignerFolder> <AssemblyName>ILCompiler.MetadataTransform</AssemblyName> - <ExcludeResourcesImport>true</ExcludeResourcesImport> - <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker> + <TargetFramework>netstandard1.3</TargetFramework> </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> - </PropertyGroup> - <ItemGroup> - <PackageDestination Include="Tools"> - <InProject>false</InProject> - <TargetFramework>.NetCoreApp,Version=2.0</TargetFramework> - </PackageDestination> - </ItemGroup> <ItemGroup Condition="'$(IsProjectNLibrary)' != 'true'"> - <ProjectReference Include="..\..\ILCompiler.MetadataWriter\src\ILCompiler.MetadataWriter.csproj"> - <Project>{D66338D4-F9E4-4051-B302-232C6BFB6EF6}</Project> - <Name>ILCompiler.MetadataWriter</Name> - </ProjectReference> - <ProjectReference Include="..\..\ILCompiler.TypeSystem\src\ILCompiler.TypeSystem.csproj"> - <Project>{1a9df196-43a9-44bb-b2c6-d62aa56b0e49}</Project> - <Name>ILCompiler.TypeSystem</Name> - </ProjectReference> + <ProjectReference Include="..\..\ILCompiler.MetadataWriter\src\ILCompiler.MetadataWriter.csproj" /> + <ProjectReference Include="..\..\ILCompiler.TypeSystem\src\ILCompiler.TypeSystem.csproj" /> + </ItemGroup> + <ItemGroup> + <PackageReference Include="System.Reflection.Metadata"> + <Version>1.4.2</Version> + </PackageReference> </ItemGroup> <ItemGroup> <Compile Include="ILCompiler\Metadata\EntityMap.cs" /> @@ -48,8 +33,5 @@ <Compile Include="ILCompiler\Metadata\Transform.String.cs" /> <Compile Include="ILCompiler\Metadata\Transform.Type.cs" /> </ItemGroup> - <ItemGroup> - <None Include="project.json" /> - </ItemGroup> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" Condition="'$(IsProjectNLibrary)' != 'true'"/> </Project> diff --git a/src/ILCompiler.MetadataTransform/src/project.json b/src/ILCompiler.MetadataTransform/src/project.json deleted file mode 100644 index 75ee7c0bd..000000000 --- a/src/ILCompiler.MetadataTransform/src/project.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "dependencies": { - "NETStandard.Library": "1.6.1", - "System.Reflection.Metadata": "1.4.2" - }, - "frameworks": { - "netstandard1.3": { } - } -} diff --git a/src/ILCompiler.MetadataTransform/tests/ILCompiler.MetadataTransform.Tests.csproj b/src/ILCompiler.MetadataTransform/tests/ILCompiler.MetadataTransform.Tests.csproj index adeee8246..9de4e1df7 100644 --- a/src/ILCompiler.MetadataTransform/tests/ILCompiler.MetadataTransform.Tests.csproj +++ b/src/ILCompiler.MetadataTransform/tests/ILCompiler.MetadataTransform.Tests.csproj @@ -1,33 +1,20 @@ <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> - <ProjectGuid>{B4B713D9-68A1-4EB3-8164-4DC8BE69BCBC}</ProjectGuid> <OutputType>Library</OutputType> <AssemblyName>ILCompiler.MetadataTransform.Tests</AssemblyName> <RootNamespace>MetadataTransformTests</RootNamespace> - <NugetTargetMoniker>.NETStandard,Version=v1.3</NugetTargetMoniker> - <TestTFM>netcoreapp1.1</TestTFM> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <TargetFramework>netstandard1.3</TargetFramework> </PropertyGroup> <ItemGroup> - <ProjectReference Include="..\..\ILCompiler.TypeSystem\src\ILCompiler.TypeSystem.csproj"> - <Project>{1a9df196-43a9-44bb-b2c6-d62aa56b0e49}</Project> - <Name>ILCompiler.TypeSystem</Name> - </ProjectReference> - <ProjectReference Include="..\src\ILCompiler.MetadataTransform.csproj"> - <Project>{a965ea82-219d-48f7-ad51-bc030c16cc6f}</Project> - <Name>ILCompiler.MetadataTransform</Name> - </ProjectReference> - <ProjectReference Include="..\..\ILCompiler.MetadataWriter\src\ILCompiler.MetadataWriter.csproj"> - <Project>{D66338D4-F9E4-4051-B302-232C6BFB6EF6}</Project> - <Name>ILCompiler.MetadataWriter</Name> - </ProjectReference> + <PackageReference Include="Microsoft.DotNet.BuildTools.TestSuite"> + <Version>$(XunitNetcoreExtensionsVersion)</Version> + </PackageReference> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\src\ILCompiler.MetadataTransform.csproj" /> + <ProjectReference Include="..\..\ILCompiler.TypeSystem\src\ILCompiler.TypeSystem.csproj" /> + <ProjectReference Include="..\..\ILCompiler.MetadataWriter\src\ILCompiler.MetadataWriter.csproj" /> <ProjectReference Include="PrimaryMetadataAssembly\PrimaryMetadataAssembly.csproj"> <ReferenceOutputAssembly>false</ReferenceOutputAssembly> <OutputItemType>Content</OutputItemType> @@ -60,9 +47,6 @@ </ProjectReference> </ItemGroup> <ItemGroup> - <None Include="project.json" /> - </ItemGroup> - <ItemGroup> <Compile Include="ExplicitScopeTests.cs" /> <Compile Include="MockPolicy.cs" /> <Compile Include="MultifileMetadataPolicy.cs" /> diff --git a/src/ILCompiler.MetadataTransform/tests/ILMetadataAssembly/ILMetadataAssembly.ilproj b/src/ILCompiler.MetadataTransform/tests/ILMetadataAssembly/ILMetadataAssembly.ilproj index f1001ee6a..8e383e067 100644 --- a/src/ILCompiler.MetadataTransform/tests/ILMetadataAssembly/ILMetadataAssembly.ilproj +++ b/src/ILCompiler.MetadataTransform/tests/ILMetadataAssembly/ILMetadataAssembly.ilproj @@ -3,17 +3,9 @@ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <OutputType>Library</OutputType> <AssemblyName>ILMetadataAssembly</AssemblyName> - <ProjectGuid>{347E2A5A-54E5-4482-9723-ED460DE79CE8}</ProjectGuid> - </PropertyGroup> - - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <RunTestsForProject>false</RunTestsForProject> </PropertyGroup> <ItemGroup> diff --git a/src/ILCompiler.MetadataTransform/tests/PrimaryMetadataAssembly/PrimaryMetadataAssembly.csproj b/src/ILCompiler.MetadataTransform/tests/PrimaryMetadataAssembly/PrimaryMetadataAssembly.csproj index e9ccb27f8..82b325adf 100644 --- a/src/ILCompiler.MetadataTransform/tests/PrimaryMetadataAssembly/PrimaryMetadataAssembly.csproj +++ b/src/ILCompiler.MetadataTransform/tests/PrimaryMetadataAssembly/PrimaryMetadataAssembly.csproj @@ -1,29 +1,11 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <OutputType>Library</OutputType> <AssemblyName>PrimaryMetadataAssembly</AssemblyName> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> <IsCoreAssembly>true</IsCoreAssembly> - <!-- - Need to avoid target platform being empty because that would drag in an mscorlib design-time - facade into the references and break us. - --> - <TargetPlatformIdentifier>Portable</TargetPlatformIdentifier> - <TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier> - <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> - <TargetFrameworkProfile>Profile7</TargetFrameworkProfile> - <TargetFrameworkMonikerDisplayName>.NET Portable Subset</TargetFrameworkMonikerDisplayName> - <ImplicitlyExpandTargetFramework>false</ImplicitlyExpandTargetFramework> - <ProjectGuid>{C29B7395-F925-4B0E-972D-187D2D4BFEC7}</ProjectGuid> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <RunTestsForProject>false</RunTestsForProject> </PropertyGroup> <ItemGroup> <Compile Include="Platform.cs" /> diff --git a/src/ILCompiler.MetadataTransform/tests/SampleMetadataAssembly/SampleMetadataAssembly.csproj b/src/ILCompiler.MetadataTransform/tests/SampleMetadataAssembly/SampleMetadataAssembly.csproj index 517803320..04ff2298d 100644 --- a/src/ILCompiler.MetadataTransform/tests/SampleMetadataAssembly/SampleMetadataAssembly.csproj +++ b/src/ILCompiler.MetadataTransform/tests/SampleMetadataAssembly/SampleMetadataAssembly.csproj @@ -1,18 +1,10 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <OutputType>Library</OutputType> <AssemblyName>SampleMetadataAssembly</AssemblyName> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> - <ProjectGuid>{D29B7395-A925-5B0E-972D-387D2D4BFEC8}</ProjectGuid> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <RunTestsForProject>false</RunTestsForProject> </PropertyGroup> <ItemGroup> diff --git a/src/ILCompiler.MetadataTransform/tests/SampleWinRTMetadataAssembly/SampleWinRTMetadataAssembly.csproj b/src/ILCompiler.MetadataTransform/tests/SampleWinRTMetadataAssembly/SampleWinRTMetadataAssembly.csproj index 28d819e73..514982407 100644 --- a/src/ILCompiler.MetadataTransform/tests/SampleWinRTMetadataAssembly/SampleWinRTMetadataAssembly.csproj +++ b/src/ILCompiler.MetadataTransform/tests/SampleWinRTMetadataAssembly/SampleWinRTMetadataAssembly.csproj @@ -1,18 +1,10 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <OutputType>Library</OutputType> <AssemblyName>SampleWinRTMetadataAssembly</AssemblyName> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> - <ProjectGuid>{46CDD663-FCCC-4E74-901F-3D9D5A36A0D9}</ProjectGuid> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <RunTestsForProject>false</RunTestsForProject> </PropertyGroup> <ItemGroup> diff --git a/src/ILCompiler.MetadataTransform/tests/WindowsWinRTMetadataAssembly/WindowsWinRTMetadataAssembly.csproj b/src/ILCompiler.MetadataTransform/tests/WindowsWinRTMetadataAssembly/WindowsWinRTMetadataAssembly.csproj index 765d5761f..d6f36ace1 100644 --- a/src/ILCompiler.MetadataTransform/tests/WindowsWinRTMetadataAssembly/WindowsWinRTMetadataAssembly.csproj +++ b/src/ILCompiler.MetadataTransform/tests/WindowsWinRTMetadataAssembly/WindowsWinRTMetadataAssembly.csproj @@ -1,18 +1,10 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> <PropertyGroup> - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> - <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <OutputType>Library</OutputType> <AssemblyName>WindowsWinRTMetadataAssembly</AssemblyName> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> - <ProjectGuid>{19D0BAA8-8762-4D64-80AF-53D7A2BBC4AE}</ProjectGuid> - </PropertyGroup> - <!-- Default configurations to help VS understand the configurations --> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> - </PropertyGroup> - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <RunTestsForProject>false</RunTestsForProject> </PropertyGroup> <ItemGroup> diff --git a/src/ILCompiler.MetadataTransform/tests/project.json b/src/ILCompiler.MetadataTransform/tests/project.json deleted file mode 100644 index 0764ff3a5..000000000 --- a/src/ILCompiler.MetadataTransform/tests/project.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "dependencies": { - "NETStandard.Library": "1.6.1", - "Microsoft.NETCore.Platforms": "1.1.0", - "System.Reflection.Metadata": "1.4.2", - "Microsoft.DotNet.BuildTools.TestSuite": "1.0.0-prerelease-00807-03", - "test-runtime": { - "target": "project", - "exclude": "compile" - } - }, - "frameworks": { - "netstandard1.3": { } - }, - "supports": { - "coreFx.Test.netcoreapp1.1": { } - } -} |