Skip to content

Commit 1ae6162

Browse files
aritchieclaude
andcommitted
Create the intermediate directory before zipping test assets
ZipTestAssets runs BeforeTargets="PrepareForBuild", but PrepareForBuild is what creates obj/$(Configuration)/$(TargetFramework) - so on a clean tree ZipDirectory failed with MSB3943 because its destination directory did not exist yet. Only showed up in CI, where the Release obj folder is never already there from an earlier build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MFrWcjXmpfZqDNz63MEKfW
1 parent b36091a commit 1ae6162

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎tests/Shiny.Net.HttpServer.Tests/Shiny.Net.HttpServer.Tests.csproj‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
BeforeTargets="PrepareForBuild"
6363
Inputs="@(TestAssetFile)"
6464
Outputs="$(IntermediateOutputPath)Assets.zip">
65+
<!-- PrepareForBuild is what creates obj/$(Configuration)/$(TargetFramework), and this runs
66+
before it - so on a clean tree the directory the archive goes in does not exist yet. -->
67+
<MakeDir Directories="$(IntermediateOutputPath)" />
6568
<ZipDirectory SourceDirectory="$(MSBuildThisFileDirectory)TestAssets"
6669
DestinationFile="$(IntermediateOutputPath)Assets.zip"
6770
Overwrite="true" />

0 commit comments

Comments
 (0)