diff --git a/UnitTest/Directory.Build.targets b/UnitTest/Directory.Build.targets index e985e13f..83ce22fa 100644 --- a/UnitTest/Directory.Build.targets +++ b/UnitTest/Directory.Build.targets @@ -2,6 +2,7 @@ + true true @@ -10,7 +11,7 @@ - + diff --git a/WinUITest/Directory.Build.targets b/WinUITest/Directory.Build.targets index b89427cd..78565097 100644 --- a/WinUITest/Directory.Build.targets +++ b/WinUITest/Directory.Build.targets @@ -2,10 +2,11 @@ + true true - + diff --git a/WinUITest/readme.txt b/WinUITest/readme.txt index 67543989..84c8e2ba 100644 --- a/WinUITest/readme.txt +++ b/WinUITest/readme.txt @@ -1,13 +1,13 @@ This project simply generates and compiles a complete projection of Windows SDK and WinUI metadata. With a release cswinrt.exe, it takes < 1s to generate all of the projection sources. -With debug, it takes a minute. With Test Explorer and other IDE features that -implcitly invoke the compiler, this may interfere - will fiddle. +With debug, it takes a minute. So only release builds create the projection by default. +This can be overridden by explicitly setting the BuildTestProjection property. This project assumes a private nuget source has been created, pointing to: https://microsoft.pkgs.visualstudio.com/_packaging/WinUI-Xaml-CI@IXP/nuget/v3/index.json -For usability (until the cswinrt nuget has msbulid support), this and the UnitTest projects +For usability (until the cswinrt nuget has msbuild support), this and the UnitTest projects both make use of Directory.Build.* files to create the projection, stage binaries, etc. WinUITest uses a response file to generate the projection, which can be supplied as a diff --git a/cswinrt.sln b/cswinrt.sln index e77c0bae..0cba9b90 100644 --- a/cswinrt.sln +++ b/cswinrt.sln @@ -14,6 +14,13 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cswinrt", "cswinrt\cswinrt. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinUITest", "WinUITest\WinUITest.csproj", "{AD0BD44A-D9B5-419C-90D0-B017AEE09C85}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Files", "Build Files", "{96495AB4-2D86-47D1-A174-27D0B436DC98}" + ProjectSection(SolutionItems) = preProject + build.cmd = build.cmd + Directory.Build.props = Directory.Build.props + Directory.Build.targets = Directory.Build.targets + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU