Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-06-24 21:10:44 +0300
committerGitHub <noreply@github.com>2017-06-24 21:10:44 +0300
commit555bcbcb5458a7aacb404f8242a6fe9267266ca7 (patch)
treedfb7caea05fb1f004869a4eba32267f2a76fe449 /src/ILCompiler.TypeSystem
parent095e43a781181d9a59ceb726a9c72a65913dbdeb (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.TypeSystem')
-rw-r--r--src/ILCompiler.TypeSystem/src/ILCompiler.TypeSystem.csproj26
-rw-r--r--src/ILCompiler.TypeSystem/src/project.json11
-rw-r--r--src/ILCompiler.TypeSystem/tests/CoreTestAssembly/CoreTestAssembly.csproj22
-rw-r--r--src/ILCompiler.TypeSystem/tests/ILTestAssembly/ILTestAssembly.ilproj13
-rw-r--r--src/ILCompiler.TypeSystem/tests/TypeSystem.Tests.csproj30
-rw-r--r--src/ILCompiler.TypeSystem/tests/project.json19
6 files changed, 27 insertions, 94 deletions
diff --git a/src/ILCompiler.TypeSystem/src/ILCompiler.TypeSystem.csproj b/src/ILCompiler.TypeSystem/src/ILCompiler.TypeSystem.csproj
index 05375b566..9fa87ba2f 100644
--- a/src/ILCompiler.TypeSystem/src/ILCompiler.TypeSystem.csproj
+++ b/src/ILCompiler.TypeSystem/src/ILCompiler.TypeSystem.csproj
@@ -1,25 +1,22 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" Condition="'$(IsProjectNLibrary)' != 'true'" />
<PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>{1A9DF196-43A9-44BB-B2C6-D62AA56B0E49}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Internal.TypeSystem</RootNamespace>
<AssemblyName>ILCompiler.TypeSystem</AssemblyName>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <ExcludeResourcesImport>true</ExcludeResourcesImport>
- <NuGetTargetMoniker>.NETStandard,Version=v1.3</NuGetTargetMoniker>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <TargetFramework>netstandard1.3</TargetFramework>
</PropertyGroup>
<ItemGroup>
- <PackageDestination Include="Tools">
- <InProject>false</InProject>
- <TargetFramework>.NetCoreApp,Version=2.0</TargetFramework>
- </PackageDestination>
+ <PackageReference Include="System.IO.MemoryMappedFiles">
+ <Version>4.3.0</Version>
+ </PackageReference>
+ <PackageReference Include="System.Reflection.Metadata">
+ <Version>1.4.2</Version>
+ </PackageReference>
+ <PackageReference Include="Microsoft.DiaSymReader">
+ <Version>1.0.8</Version>
+ </PackageReference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\Common\src\TypeSystem\Canon\ArrayType.Canon.cs">
@@ -596,8 +593,5 @@
<Link>TypeSystem\Sorting\TypeSystemComparer.cs</Link>
</Compile>
</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.TypeSystem/src/project.json b/src/ILCompiler.TypeSystem/src/project.json
deleted file mode 100644
index 1f6a16ec9..000000000
--- a/src/ILCompiler.TypeSystem/src/project.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "dependencies": {
- "NETStandard.Library": "1.6.1",
- "System.IO.MemoryMappedFiles": "4.3.0",
- "System.Reflection.Metadata": "1.4.2",
- "Microsoft.DiaSymReader": "1.0.8"
- },
- "frameworks": {
- "netstandard1.3": {}
- }
-}
diff --git a/src/ILCompiler.TypeSystem/tests/CoreTestAssembly/CoreTestAssembly.csproj b/src/ILCompiler.TypeSystem/tests/CoreTestAssembly/CoreTestAssembly.csproj
index 74380612a..447bf566f 100644
--- a/src/ILCompiler.TypeSystem/tests/CoreTestAssembly/CoreTestAssembly.csproj
+++ b/src/ILCompiler.TypeSystem/tests/CoreTestAssembly/CoreTestAssembly.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>CoreTestAssembly</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>{5813B7DC-6588-4553-B04D-387EC9630AC8}</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="Canonicalization.cs" />
diff --git a/src/ILCompiler.TypeSystem/tests/ILTestAssembly/ILTestAssembly.ilproj b/src/ILCompiler.TypeSystem/tests/ILTestAssembly/ILTestAssembly.ilproj
index 8ce6d7d2a..8ef1a79ab 100644
--- a/src/ILCompiler.TypeSystem/tests/ILTestAssembly/ILTestAssembly.ilproj
+++ b/src/ILCompiler.TypeSystem/tests/ILTestAssembly/ILTestAssembly.ilproj
@@ -1,19 +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>ILTestAssembly</AssemblyName>
- <ProjectGuid>{ED3BECBB-EABE-4717-875D-C91E15FC260E}</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.TypeSystem/tests/TypeSystem.Tests.csproj b/src/ILCompiler.TypeSystem/tests/TypeSystem.Tests.csproj
index e6dfeb71a..d46fcc80c 100644
--- a/src/ILCompiler.TypeSystem/tests/TypeSystem.Tests.csproj
+++ b/src/ILCompiler.TypeSystem/tests/TypeSystem.Tests.csproj
@@ -1,25 +1,24 @@
<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>{8874CEEC-5594-511B-A44C-5CA9EC1CEB11}</ProjectGuid>
<OutputType>Library</OutputType>
<AssemblyName>TypeSystem.Tests</AssemblyName>
<RootNamespace>TypeSystem.Tests</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="..\src\ILCompiler.TypeSystem.csproj">
- <Project>{dd5b6baa-d41a-4a6e-9e7d-83060f394b10}</Project>
- <Name>ILCompiler.TypeSystem</Name>
- </ProjectReference>
+ <PackageReference Include="Microsoft.DotNet.BuildTools.TestSuite">
+ <Version>$(XunitNetcoreExtensionsVersion)</Version>
+ </PackageReference>
+ <PackageReference Include="Microsoft.xunit.netcore.extensions">
+ <Version>$(XunitNetcoreExtensionsVersion)</Version>
+ </PackageReference>
+ <PackageReference Include="System.Reflection.Metadata">
+ <Version>1.4.2</Version>
+ </PackageReference>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\src\ILCompiler.TypeSystem.csproj" />
<!-- Make sure the test data gets built -->
<ProjectReference Include="CoreTestAssembly\CoreTestAssembly.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
@@ -56,8 +55,5 @@
<Compile Include="TestTypeSystemContext.cs" />
<Compile Include="WellKnownTypeTests.cs" />
</ItemGroup>
- <ItemGroup>
- <None Include="project.json" />
- </ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>
diff --git a/src/ILCompiler.TypeSystem/tests/project.json b/src/ILCompiler.TypeSystem/tests/project.json
deleted file mode 100644
index ea8222708..000000000
--- a/src/ILCompiler.TypeSystem/tests/project.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "dependencies": {
- "NETStandard.Library": "1.6.1",
- "Microsoft.NETCore.Platforms": "1.1.0",
- "System.Reflection.Metadata": "1.4.2",
- "Microsoft.xunit.netcore.extensions": "1.0.0-prerelease-00807-03",
- "Microsoft.DotNet.BuildTools.TestSuite": "1.0.0-prerelease-00807-03",
- "test-runtime": {
- "target": "project",
- "exclude": "compile"
- }
- },
- "frameworks": {
- "netstandard1.3": { }
- },
- "supports": {
- "coreFx.Test.netcoreapp1.1": { }
- }
-}