-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathReferenceTrimmer.Tests.csproj
More file actions
43 lines (42 loc) · 1.76 KB
/
ReferenceTrimmer.Tests.csproj
File metadata and controls
43 lines (42 loc) · 1.76 KB
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
<Project Sdk="MSTest.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<NoWarn>$(NoWarn);0067;1591;CA1861</NoWarn>
<!-- Don't compile anything from the test data dir -->
<DefaultItemExcludes>$(DefaultItemExcludes);TestData/**;TestResults/**</DefaultItemExcludes>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Analyzer\ReferenceTrimmer.Analyzer.csproj" />
<ProjectReference Include="..\Tasks\ReferenceTrimmer.Tasks.csproj" />
<ProjectReference Include="..\Package\ReferenceTrimmer.Package.csproj">
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<Targets>Build;Pack</Targets>
</ProjectReference>
<ProjectReference Include="..\Loggers\ReferenceTrimmer.Loggers.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.10" />
</ItemGroup>
<ItemGroup>
<Content Include="TestData\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Target Name="GetReferenceTrimmerPackage" DependsOnTargets="ResolveProjectReferences" BeforeTargets="AssignTargetPaths">
<ItemGroup>
<Content Include="$(RepoRoot)\artifacts\*.nupkg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Target>
<Target Name="FixNuGetConfigPaths" AfterTargets="CopyFilesToOutputDirectory">
<XmlPoke
XmlInputPath="$(OutDir)\TestData\NuGet.Config"
Query="/configuration/config/add[@key='globalPackagesFolder']/@value"
Value="../Packages" />
<XmlPoke
XmlInputPath="$(OutDir)\TestData\NuGet.Config"
Query="/configuration/packageSources/add[@key='e2e-tests']/@value"
Value=".." />
</Target>
</Project>