|
26 | 26 | <PropertyGroup>
|
27 | 27 | <TestTemplateCreationFolder>$([MSBuild]::NormalizePath('$(OutputPath)$(TestTemplateCreationFolder)'))</TestTemplateCreationFolder>
|
28 | 28 | <CustomTemplateHivePath>$(TestTemplateCreationFolder)\Hives\$([System.Guid]::NewGuid())\.templateengine</CustomTemplateHivePath>
|
| 29 | + <TemplateTestDotNetRoot>$(TestTemplateCreationFolder)\dotnet\</TemplateTestDotNetRoot> |
29 | 30 | </PropertyGroup>
|
30 | 31 |
|
31 | 32 | <ItemGroup>
|
|
48 | 49 | <_Parameter1>TestTemplateCreationFolder</_Parameter1>
|
49 | 50 | <_Parameter2>$(TestTemplateCreationFolder)</_Parameter2>
|
50 | 51 | </AssemblyAttribute>
|
| 52 | + |
51 | 53 | <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
|
52 | 54 | <_Parameter1>CustomTemplateHivePath</_Parameter1>
|
53 | 55 | <_Parameter2>$(CustomTemplateHivePath)</_Parameter2>
|
54 | 56 | </AssemblyAttribute>
|
| 57 | + |
| 58 | + <AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute"> |
| 59 | + <_Parameter1>DotNetExeOverride</_Parameter1> |
| 60 | + <_Parameter2>$(TemplateTestDotNetRoot)dotnet.exe</_Parameter2> |
| 61 | + </AssemblyAttribute> |
55 | 62 | </ItemGroup>
|
56 | 63 |
|
57 | 64 | <Message Importance="high" Text="Preparing environment for tests" />
|
|
61 | 68 |
|
62 | 69 | <ItemGroup>
|
63 | 70 | <_ExistingFilesFromLastRun Include="$(TestTemplateCreationFolder)**\*" />
|
| 71 | + <!-- <_ExistingFilesFromLastRun Include="$(TemplateTestDotNetRoot)**\*" /> --> |
64 | 72 | </ItemGroup>
|
65 | 73 |
|
66 | 74 | <Delete Files="@(_ExistingFilesFromLastRun)" ContinueOnError="true" />
|
|
72 | 80 | <Output TaskParameter="RemovedDirectories" ItemName="_CleanedUpDirectories" />
|
73 | 81 | </RemoveDir>
|
74 | 82 |
|
| 83 | + <ItemGroup> |
| 84 | + <_FilesToCopy Include="$(LocalDotNetRoot)dotnet.exe" /> |
| 85 | + <_FilesToCopy Include="$(LocalDotNetRoot)host\**\*" DestinationRelativeFolder="host\" /> |
| 86 | + <_FilesToCopy Include="$(LocalDotNetRoot)shared\**\*" DestinationRelativeFolder="shared\" /> |
| 87 | + <_FilesToCopy Include="$(LocalDotNetRoot)sdk\**\*" DestinationRelativeFolder="sdk\" /> |
| 88 | + <_FilesToCopy Include="$(SharedFrameworkLayoutRoot)\**\*" /> |
| 89 | + |
| 90 | + <_DestinationFiles Include="@(_FilesToCopy->'$(TemplateTestDotNetRoot)\%(DestinationRelativeFolder)%(RecursiveDir)%(Filename)%(Extension)')" /> |
| 91 | + </ItemGroup> |
| 92 | + |
| 93 | + <Copy SourceFiles="@(_FilesToCopy)" |
| 94 | + DestinationFiles="@(_DestinationFiles)" |
| 95 | + SkipUnchangedFiles="true" /> |
| 96 | + |
75 | 97 | <Message Importance="high" Text="Removed directory %(_CleanedUpDirectories.Identity)" />
|
76 | 98 |
|
77 | 99 | <Message Importance="high" Text="Created directory %(_CreatedDirectories.Identity)" />
|
|
0 commit comments