-
Notifications
You must be signed in to change notification settings - Fork 746
Expand file tree
/
Copy pathNuGet.CommandLine.Test.csproj
More file actions
92 lines (83 loc) · 4.4 KB
/
NuGet.CommandLine.Test.csproj
File metadata and controls
92 lines (83 loc) · 4.4 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>$(NETFXTargetFramework)</TargetFramework>
<Description>An end-to-end test suite for NuGet.CommandLine. Contains tests for every nuget.exe CLI command. Overlaps in tests with NuGet.CommandLine.FuncTest.</Description>
<TestProjectType Condition="'$(IsXPlat)' != 'true'">Functional</TestProjectType>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.IO.Compression" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\NuGet.Clients\NuGet.CommandLine\NuGet.CommandLine.csproj" />
<ProjectReference Include="..\..\NuGet.Core.Tests\NuGet.Configuration.Test\NuGet.Configuration.Test.csproj" />
<ProjectReference Include="..\..\TestExtensions\SampleCommandLineExtensions\SampleCommandLineExtensions.csproj"
ReferenceOutputAssembly="false"
OutputItemType="SampleCommandLineExtensionsOutputGroup" />
<ProjectReference Include="..\..\TestExtensions\TestablePluginCredentialProvider\TestableCredentialProvider.csproj"
ReferenceOutputAssembly="false"
OutputItemType="TestableCredentialProviderOutputGroup" />
<ProjectReference Include="..\..\TestUtilities\Test.Utility\Test.Utility.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.TestPlatform.Portable" IncludeAssets="None" />
</ItemGroup>
<ItemGroup>
<Compile Remove="compiler\resources\*" />
<EmbeddedResource Include="compiler\resources\*" />
<Content Include="$(PkgMicrosoft_TestPlatform_Portable)\tools\net451\**"
TargetPath="vstest\%(RecursiveDir)%(Filename)%(Extension)"
DestinationSubDirectory="vstest\"
CopyToOutputDirectory="PreserveNewest"
Visible="false"
Condition="'$(PkgMicrosoft_TestPlatform_Portable)' != ''" />
<None Include="xunit.runner.json"
CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<Compile Update="TestResource.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>TestResource.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="TestResource.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>TestResource.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<Target Name="AddProjectReferenceFilesToOutputDirectory" AfterTargets="ResolveProjectReferences">
<ItemGroup>
<ProjectReferenceFiles Include="@(SampleCommandLineExtensionsOutputGroup)"
DestinationSubDirectory="NuGet\" />
<ProjectReferenceFiles Include="$(ArtifactsDirectory)$(VsixOutputDirName)\NuGet.exe"
DestinationSubDirectory="NuGet\"
Condition="'$(SkipILMergeOfNuGetExe)' != 'true'" />
<ProjectReferenceFiles Include="%(TestableCredentialProviderOutputGroup.RootDir)\%(TestableCredentialProviderOutputGroup.Directory)**"
DestinationSubDirectory="TestableCredentialProvider\" />
<Content Include="@(ProjectReferenceFiles)"
TargetPath="%(DestinationSubDirectory)%(RecursiveDir)%(Filename)%(Extension)"
CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Target>
<Target Name="CopyFinalNuGetExeToOutputPath"
AfterTargets="PrepareForRun"
Inputs="$(ArtifactsDirectory)$(VsixOutputDirName)\NuGet.exe"
Outputs="$(OutputPath)NuGet\NuGet.exe"
Condition="'$(SkipILMergeOfNuGetExe)' != 'true'">
<Copy SourceFiles="$(ArtifactsDirectory)$(VsixOutputDirName)\NuGet.exe"
DestinationFiles="$(OutputPath)NuGet\NuGet.exe"
SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"
OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)"
Retries="$(CopyRetryCount)"
RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)"
UseHardlinksIfPossible="$(CreateHardLinksForCopyLocalIfPossible)"
UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyLocalIfPossible)">
<Output TaskParameter="DestinationFiles"
ItemName="FileWritesShareable" />
<Output TaskParameter="CopiedFiles"
ItemName="ReferencesCopiedInThisBuild" />
</Copy>
</Target>
</Project>