Skip to content

Commit

Permalink
<Copy> vs XCOPY.EXE -- Unbreak WindowsAppSDK-Nuget-Native.C.props
Browse files Browse the repository at this point in the history
Not-Build break 'build\native\WindowsAppSDK-Nuget-Native.C.props(32,13): error MSB4066: The attribute 'SourceFiles' in element is unrecognized.' -- Foundation builds but the aggregator doesn't. I suspect it's because of the command can't go in a , maybe something more complicated with the PostBuildEvent DependsOn a to do the copy...but I can't find any clear docs or net links clearly spelling it out so rather than fiddling while Rome burns I'm switching back to the original xcopy.exe solution to un-break the pipeline.

Will follow up with folks to understand why the PR's build didn't pick this up
  • Loading branch information
DrusTheAxe authored Jul 21, 2022
1 parent ea3f377 commit 910f84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/NuSpecs/WindowsAppSDK-Nuget-Native.C.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</AdditionalDependencies>
</Link>
<PostBuildEvent>
<Copy SourceFiles="$(MSBuildThisFileDirectory)..\..\runtimes\win10-$(_WindowsAppSDKFoundationPlatform)\native\Microsoft.WindowsAppRuntime.Bootstrap.dll" DestinationFolder="$(OutDir)" />
<Command>xcopy.exe /y "$(MSBuildThisFileDirectory)..\..\runtimes\win10-$(_WindowsAppSDKFoundationPlatform)\native\Microsoft.WindowsAppRuntime.Bootstrap.dll" "$(OutDir)"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>

Expand Down

0 comments on commit 910f84f

Please sign in to comment.