fixed destructive property assignment (reference self correctly using `$(GetCopyToOutputDirectoryItemsDependsOn)` instead of `$(GetCopyToOutputDirectoryItems)`) (dotnet/aspnetcore-tooling#603)
The intention here would have been to add to the existing GetCopyToOutputDirectoryItemsDependsOn property, defined in Microsoft.Common.Targets. Instead what was happening is that it was being completely overwitten with the _RazorGetCopyToOutputDirectoryItems entry, given that $(GetCopyToOutputDirectoryItems) doesn't exist as a property and must have been a typo (it exists as a task, not a property).
An effect of this bug was that the `AssignTargetPaths` target is not always executed before the `GetCopyToOutputDirectoryItems` target, which should explicitly depend on it. `AssignTargetPaths` is responsible for populating the `ContentWithTargetPath` itemgroup. Left empty, it appears to `GetCopyToOutputDirectoryItems` task that there are no Content files to copy to the final output directory, when in fact there are.\n\nCommit migrated from 4597bc3d55
This commit is contained in:
parent
b5a7daba2b
commit
98a2a4348b
|
|
@ -151,7 +151,7 @@ Copyright (c) .NET Foundation. All rights reserved.
|
|||
|
||||
<GetCopyToOutputDirectoryItemsDependsOn>
|
||||
_RazorGetCopyToOutputDirectoryItems;
|
||||
$(GetCopyToOutputDirectoryItems)
|
||||
$(GetCopyToOutputDirectoryItemsDependsOn)
|
||||
</GetCopyToOutputDirectoryItemsDependsOn>
|
||||
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
Loading…
Reference in New Issue