-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathMicrosoft.Web.LibraryManager.Build.IntegrationTest.csproj
44 lines (37 loc) · 1.46 KB
/
Microsoft.Web.LibraryManager.Build.IntegrationTest.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(NetCoreTFM)</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Moq" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
</ItemGroup>
<ItemGroup>
<!-- set build dependency so the nupkg is built for tests to consume -->
<ProjectReference Include="..\..\src\LibraryManager.Build\Microsoft.Web.LibraryManager.Build.csproj" ReferenceOutputAssembly="false" />
</ItemGroup>
<ItemGroup>
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
</ItemGroup>
<ItemGroup>
<Compile Remove="TestSolution\**\*" />
<None Remove="TestSolution\**\*" />
<Content Remove="TestSolution\**\*" />
</ItemGroup>
<ItemGroup>
<Content Include="TestSolution\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<!-- Copy the nupkgs needed to run CLI and Build package integration tests -->
<Target Name="CopyNupkgFiles" AfterTargets="Build" DependsOnTargets="GetBuildVersion">
<PropertyGroup>
</PropertyGroup>
<ItemGroup>
<BuildNupkg Include="..\..\artifacts\$(Configuration)\Microsoft.Web.LibraryManager.Build.$(PackageVersion).nupkg" />
</ItemGroup>
<Copy SourceFiles="@(BuildNupkg)" DestinationFolder="$(OutputPath)\TestPackages" />
</Target>
</Project>