|
2 | 2 | <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />
|
3 | 3 |
|
4 | 4 | <PropertyGroup>
|
5 |
| - <_PackagingNativePath Condition="'$(WpfRuntimeIdentifier)'=='win-x64' And '$(Configuration)' != 'Debug'">$(ArtifactsDir)packaging\$(Configuration)\x64\Microsoft.DotNet.Wpf.GitHub</_PackagingNativePath> |
6 |
| - <_PackagingNativePath Condition="'$(WpfRuntimeIdentifier)'=='win-x64' And '$(Configuration)' == 'Debug'">$(ArtifactsDir)packaging\$(Configuration)\x64\Microsoft.DotNet.Wpf.GitHub.Debug</_PackagingNativePath> |
7 |
| - <_PackagingNativePath Condition="'$(WpfRuntimeIdentifier)'=='win-x86' And '$(Configuration)' != 'Debug'">$(ArtifactsDir)packaging\$(Configuration)\Microsoft.DotNet.Wpf.GitHub</_PackagingNativePath> |
8 |
| - <_PackagingNativePath Condition="'$(WpfRuntimeIdentifier)'=='win-x86' And '$(Configuration)' == 'Debug'">$(ArtifactsDir)packaging\$(Configuration)\Microsoft.DotNet.Wpf.GitHub.Debug</_PackagingNativePath> |
| 5 | + <_PackagingNativePath>$(ArtifactsPackagingDir)$(GitHubTransportPackageName)\runtimes\$(WpfRuntimeIdentifier)\native\</_PackagingNativePath> |
9 | 6 | </PropertyGroup>
|
10 | 7 |
|
11 | 8 | <!--
|
|
15 | 12 | BeforeTargets="AssignTargetPaths"
|
16 | 13 | Returns="@(None)">
|
17 | 14 | <ItemGroup>
|
18 |
| - <!-- These exist to ensure that dependencies (esp. native ones) are binplaced with tests correctly --> |
19 |
| - <None Include="$(_PackagingNativePath)\runtimes\$(WpfRuntimeIdentifier)\native\*.dll" |
| 15 | + <!-- |
| 16 | + These exist to ensure that dependencies (esp. native ones) are binplaced with tests correctly. |
| 17 | + We use the explicit file names instead of globbing to make the build fail if the dlls were not found. |
| 18 | + --> |
| 19 | + <_WpfNativeDependency Include="$(_PackagingNativePath)D3DCompiler_47_cor3.dll" Condition="'$(WpfRuntimeIdentifier)' != 'win-arm64'" /> |
| 20 | + <_WpfNativeDependency Include="$(_PackagingNativePath)PresentationNative_cor3.dll" /> |
| 21 | + <_WpfNativeDependency Include="$(_PackagingNativePath)vcruntime140d.dll" Condition="'$(Configuration)' == 'Debug'" /> |
| 22 | + <_WpfNativeDependency Include="$(_PackagingNativePath)vcruntime140_cor3.dll" Condition="'$(Configuration)' != 'Debug'" /> |
| 23 | + <_WpfNativeDependency Include="$(_PackagingNativePath)PenImc_cor3.dll" /> |
| 24 | + <_WpfNativeDependency Include="$(_PackagingNativePath)wpfgfx_cor3.dll" /> |
| 25 | + </ItemGroup> |
| 26 | + |
| 27 | + <ItemGroup> |
| 28 | + <None Include="@(_WpfNativeDependency)" |
20 | 29 | CopyToOutputDirectory="PreserveNewest"
|
21 | 30 | Visible="False" />
|
22 | 31 | </ItemGroup>
|
23 | 32 | </Target>
|
24 | 33 |
|
| 34 | + <!-- |
| 35 | + Include native dependencies as project reference to make sure that they are built before the test projects and before the task IncludeNativeDependencies is executed. |
| 36 | + --> |
| 37 | + <ItemGroup> |
| 38 | + <ProjectReference Include="$(WpfRedistDir)D3DCompiler\D3DCompiler.vcxproj" |
| 39 | + ReferenceOutputAssembly="False" |
| 40 | + Visible="False" /> |
| 41 | + <ProjectReference Include="$(WpfRedistDir)PresentationNative\PresentationNative.vcxproj" |
| 42 | + ReferenceOutputAssembly="False" |
| 43 | + Visible="False" /> |
| 44 | + <ProjectReference Include="$(WpfRedistDir)VCRuntime\VCRuntime.vcxproj" |
| 45 | + ReferenceOutputAssembly="False" |
| 46 | + Visible="False" /> |
| 47 | + <ProjectReference Include="$(WpfSourceDir)PenImc\dll\PenImc.vcxproj" |
| 48 | + ReferenceOutputAssembly="False" |
| 49 | + Visible="True" /> |
| 50 | + <ProjectReference Include="$(WpfSourceDir)WpfGfx\core\dll\wpfgfx.vcxproj" |
| 51 | + ReferenceOutputAssembly="False" |
| 52 | + Visible="False" /> |
| 53 | + </ItemGroup> |
| 54 | + |
25 | 55 | <!--
|
26 | 56 | Referencing packages that reference the desktop package causes grief with building internally. Currently this
|
27 | 57 | is only happening with referencing StaFact (for [WpfFact] tests). Remove the reference if it comes in directly
|
|
0 commit comments