File tree 5 files changed +26
-25
lines changed 5 files changed +26
-25
lines changed Original file line number Diff line number Diff line change 12
12
<PayloadDrtLocation >$(WpfTestBasePayloadPath)DRT\</PayloadDrtLocation >
13
13
<MicrosoftDotNetWpfTestPath >$(ArtifactsPackagingDir)\Microsoft.DotNet.Wpf.GitHub.Test\tools\</MicrosoftDotNetWpfTestPath >
14
14
</PropertyGroup >
15
-
15
+
16
16
<!--
17
17
Internal repo use only. When we package the infrastructure and DRTs over to dotnet-wpf-int. Allow that repo to add
18
18
more DRTs to run.
22
22
<!-- List of DRTs to include that come from dotnet/wpf -->
23
23
<Import Project =" $(WpfArcadeSdkToolsDir)DrtsToRun.props" />
24
24
25
- <Choose >
26
- <When Condition =" !Exists('$(MicrosoftDotNetWpfTestPath)')" >
27
- <!-- Building in the external branch, we need to reference the test package-->
28
- <ItemGroup >
29
- <PackageReference Include =" Microsoft.DotNet.Wpf.GitHub.Test" Version =" $(MicrosoftDotNetWpfGitHubTestVersion)" GeneratePathProperty =" true" />
30
- </ItemGroup >
31
-
32
- <PropertyGroup >
33
- <MicrosoftDotNetWpfTestPath >$(PkgMicrosoft_DotNet_Wpf_GitHub_Test)\tools\</MicrosoftDotNetWpfTestPath >
34
- </PropertyGroup >
35
- </When >
36
- </Choose >
37
-
38
- <ItemGroup >
39
- </ItemGroup >
40
-
25
+ <Choose >
26
+ <When Condition =" !Exists('$(MicrosoftDotNetWpfTestPath)')" >
27
+ <!--
28
+ Building from internal repo where the test package must be consumed from the nuget package. We can't restore the package here because the Restore
29
+ targets aren't run for AfterSolutionBuild.proj. So instead we restore the package in Tools.props. And since only the Restore targets are run for Tools.proj,
30
+ the path property to the package isn't generated for us so we can't copy it to a well known location there. Instead we generate the path ourselves using
31
+ well known MSBuild properties available to the entire Build.proj project.
32
+ -->
33
+ <PropertyGroup >
34
+ <MicrosoftDotNetWpfTestPath >$(NuGetPackageRoot)\runtime.win-$(Platform).$(MicrosoftDotNetWpfGitHubTestPackage)\$(MicrosoftDotNetWpfGitHubTestVersion)\tools\</MicrosoftDotNetWpfTestPath >
35
+ </PropertyGroup >
36
+ </When >
37
+ </Choose >
38
+
41
39
<Target Name =" CreateTestPayload" BeforeTargets =" Test" AfterTargets =" Build;CopyPackageAssets" >
42
40
<ItemGroup >
43
41
<MicrosoftDotNetWpfTestContents Include =" $(MicrosoftDotNetWpfTestPath)**\*.*" />
61
59
DestinationFiles =" @(DrtPayloadContents->'$(PayloadDrtLocation)%(RecursiveDir)%(Filename)%(Extension)')" />
62
60
</Target >
63
61
</Project >
62
+
Original file line number Diff line number Diff line change @@ -282,6 +282,13 @@ $(PreparePackageAssetsDependsOn):
282
282
<Pack >true</Pack >
283
283
<PackagePath >$(LibFolder)</PackagePath >
284
284
</Content >
285
+
286
+ <Content Include =" $(ArtifactsPackagingDir)$(NormalizedPackageName)\$(LibFolder)\**\*.json"
287
+ Condition =" ('$(CreateArchNeutralPackage)'!='true' Or '$(IncludeAssembliesInArchNeutralPackage)'== 'true') and Exists('$(ArtifactsPackagingDir)$(NormalizedPackageName)\$(LibFolder)\')" >
288
+ <Pack >true</Pack >
289
+ <PackagePath >$(LibFolder)</PackagePath >
290
+ </Content >
291
+
285
292
<Content Include =" $(ArtifactsPackagingDir)$(NormalizedPackageName)\$(LibFolder)\**\*.pdb"
286
293
Condition =" ('$(CreateArchNeutralPackage)'!='true' Or '$(IncludeAssembliesInArchNeutralPackage)'== 'true') and Exists('$(ArtifactsPackagingDir)$(NormalizedPackageName)\$(LibFolder)\')" >
287
294
<Pack >true</Pack >
Original file line number Diff line number Diff line change 40
40
Include =" $(Pkgruntime_win-x64_Microsoft_DotNet_Wpf_DncEng)\runtimes\$(RuntimeIdentifier)\native\*.dll"
41
41
CopyToOutputDirectory =" PreserveNewest" />
42
42
<None Condition =" '$(RuntimeIdentifier)'=='win-x86'"
43
- Include =" $(Pkgruntime_win-x86_Microsoft_DotNet_Wpf_DncEng)\runtimes\$(RuntimeIdentifier)\native\*.dll"
43
+ Include =" $(Pkgruntime_win-x86_Microsoft_DotNet_Wpf_DncEng)\runtimes\$(RuntimeIdentifier)\native\*.dll"
44
44
CopyToOutputDirectory =" PreserveNewest" />
45
45
46
46
<_wpfProjectsNotWindowsBaseNotNative Include =" @(WpfProjectPath)" Exclude =" WindowsBase;PresentationNative_cor3;WpfGfx_cor3;PenImc_cor3" />
68
68
<OutputItemType >_windowsBaseAssemblyLocallyBuiltPath</OutputItemType >
69
69
</ProjectReference >
70
70
71
- <!--
72
- ProjectReference to a native project fails from a .csproj
73
71
<ProjectReference Include =" @(_wpfNativeProjects->'%(ProjectPath)')" >
74
72
<Private >True</Private >
75
73
<ReferenceOutputAssembly >false</ReferenceOutputAssembly >
76
74
<OutputItemType >Content</OutputItemType >
77
75
<CopyToOutputDirectory >PreserveNewest</CopyToOutputDirectory >
78
76
</ProjectReference >
79
- -->
80
77
</ItemGroup >
81
78
82
79
<PropertyGroup Condition =" '$(WpfTest)'=='true' or '$(IsTestProject)'=='true'" >
Original file line number Diff line number Diff line change 42
42
<WpfProjectPath Include =" UIAutomationClient" ProjectPath =" $(WpfSourceDir)UIAutomation\UIAutomationClient\UIAutomationClient.csproj" />
43
43
<WpfProjectPath Include =" UIAutomationClientSideProviders" ProjectPath =" $(WpfSourceDir)UIAutomation\UIAutomationClientSideProviders\UIAutomationClientSideProviders.csproj" />
44
44
45
- <!--
46
45
<WpfProjectPath Include =" PresentationNative_cor3" ProjectPath =" $(WpfSourceDir)PresentationNative\dll\PresentationNative.vcxproj" />
47
46
<WpfProjectPath Include =" WpfGfx_cor3" ProjectPath =" $(WpfSourceDir)WpfGfx\core\dll\WpfGfx.vcxproj" />
48
47
<WpfProjectPath Include =" PenImc_cor3" ProjectPath =" $(WpfSourceDir)PenImc\dll\PenImc.vcxproj" />
49
- -->
50
48
</ItemGroup >
51
49
52
50
<PropertyGroup >
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ $testLocation = Join-Path (Split-Path -Parent $script:MyInvocation.MyCommand.Pat
24
24
if (Test-Path " $testLocation \QV.cmd" )
25
25
{
26
26
$args = if ($waitForDebugger ) { " /debugtests /waitForDebugger" }
27
- $args += if ($debugSti ) { " /debugSti" }
28
- $args += if ($debugQV ) { " /debugQV" }
27
+ $args += if ($debugSti ) { " /debugSti" }
28
+ $args += if ($debugQV ) { " /debugQV" }
29
29
# We invoke QV directly instead of rundrts to prevent the "RunDrtReport" script being generated.
30
30
Invoke-Expression " $testLocation \QV.cmd Run /DiscoveryInfoPath=$testLocation \DiscoveryInfoDrts.xml /RunDirectory=$env: AppData \QualityVault\Run $command $args "
31
31
}
You can’t perform that action at this time.
0 commit comments