Skip to content

Commit

Permalink
Switch remaining test projects over to netcoreapp2.0 (and use compati…
Browse files Browse the repository at this point in the history
…ble versions of Microsoft.NET.Test.Sdk and Xunit).

dotnet#1963
  • Loading branch information
tintoy committed Nov 26, 2017
1 parent 4f800e2 commit b595464
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../Shared/base.props" />
<Import Project="../Shared/base.netstandard.props" />
<ItemGroup>
<Compile Remove="Manifest.cs" />
<Compile Remove="ManifestItem.cs" />
Expand Down
4 changes: 3 additions & 1 deletion src/docfx/docfx.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../Shared/base.props" />
<Import Project="../Shared/base.netcoreapp.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<Description>Generates documentation directly from source code and MarkDown files</Description>
Expand Down Expand Up @@ -31,6 +31,8 @@
<ItemGroup>
<PackageReference Include="CommandLineParser" Version="1.9.71" />
<PackageReference Include="Owin" Version="1.0.0" />
<PackageReference Include="Microsoft.Build" Version="15.3.409" />
<PackageReference Include="Microsoft.Build.Runtime" Version="15.3.409" />
<PackageReference Include="Microsoft.Owin" Version="3.0.1" />
<PackageReference Include="Microsoft.Owin.FileSystems" Version="3.0.1" />
<PackageReference Include="Microsoft.Owin.Host.HttpListener" Version="3.0.1" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />
<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.DocAsCode.Build.Common\Microsoft.DocAsCode.Build.Common.csproj" />
<ProjectReference Include="..\..\src\Microsoft.DocAsCode.Build.Engine\Microsoft.DocAsCode.Build.Engine.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup Condition="'$(TargetFramework)' == 'net461' OR '$(TargetFramework)' == 'net46' OR '$(TargetFramework)' == 'net452'">
<Reference Include="System.Web" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<ProjectReference Include="..\..\plugins\Microsoft.DocAsCode.Build.JavaScriptReference\Microsoft.DocAsCode.Build.JavaScriptReference.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="TestData\**">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="TestData\**">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="TestData\**\*.*">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="TestData\overwrite\rest.overwrite.tags.md;TestData\overwrite\rest.overwrite.unmergable.md;TestData\overwrite\rest.overwrite.multi.uid.md;TestData\overwrite\rest.overwrite.not.predefined.md;TestData\overwrite\rest.overwrite.parameters.md;TestData\overwrite\rest.overwrite.simple.md;TestData\overwrite\rest.overwrite.default.md;TestData\overwrite\rest.overwrite.invalid.md;TestData\overwrite\rest.overwrite.invalid.links.first.md;TestData\overwrite\rest.overwrite.invalid.links.second.md;TestData\overwrite\rest.overwrite.remarks.md;TestData\contacts-operations.md;TestData\swagger\contacts.json;TestData\swagger\contactsForExternalRef.json;TestData\swagger\externalLoopRef_A.json;TestData\swagger\externalLoopRef_B.json;TestData\swagger\externalRefNotExist.json;TestData\swagger\externalRefWithDefinition.json;TestData\swagger\externalRefWithRefInside.json;TestData\swagger\refWithRefInside.json;TestData\swagger\ref.json;TestData\swagger\loopref_swagger2.json;TestData\swagger\ref_swagger2.json;TestData\swagger\pathParameters_swagger2.json;TestData\swagger\tag_swagger2.json;TestData\swagger\simple_swagger2.json">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="TestData\**">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net461</TargetFramework>
</PropertyGroup>
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup Condition="'$(TargetFramework)' == 'net461' OR '$(TargetFramework)' == 'net46' OR '$(TargetFramework)' == 'net452'">
<Reference Include="System.Web" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup Condition="'$(TargetFramework)' == 'net461' OR '$(TargetFramework)' == 'net46' OR '$(TargetFramework)' == 'net452'">
<Reference Include="System.Web" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="TestData\**">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.DocAsCode.YamlSerialization\Microsoft.DocAsCode.YamlSerialization.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.DocAsCode.YamlSerialization\Microsoft.DocAsCode.YamlSerialization.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.DocAsCode.Glob\Microsoft.DocAsCode.Glob.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.DocAsCode.Plugins\Microsoft.DocAsCode.Plugins.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.DocAsCode.AzureMarkdownRewriters\Microsoft.DocAsCode.AzureMarkdownRewriters.csproj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="TestData\filterconfig.yml;TestData\filterconfig_attribute.yml;TestData\System.Console.csyml;TestData\System.ConsoleColor.csyml;TestData\CatLibrary.dll;TestData\BaseClassForTestClass1.dll">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.DocAsCode.Plugins\Microsoft.DocAsCode.Plugins.csproj" />
Expand Down
6 changes: 3 additions & 3 deletions test/Shared/test.base.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<Import Project="../../src/Shared/base.props" />

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0-preview-20170810-02" />
<PackageReference Include="xunit" Version="2.3.0-beta4-build3742" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0-beta4-build3742" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion test/docfx.E2E.Tests/docfx.E2E.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="config.E2E.Tests.json">
Expand Down
2 changes: 1 addition & 1 deletion test/docfx.Tests/docfx.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Shared\test.base.props" />
<Import Project="..\Shared\test.base.netcoreapp.props" />

<ItemGroup>
<None Update="Assets\**">
Expand Down

0 comments on commit b595464

Please sign in to comment.