Skip to content

Commit 5792759

Browse files
authored
Fix AppLocalAllowedLibraries handling in CsWin32RunAsBuildTask mode (#1621)
1 parent db25cf3 commit 5792759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Microsoft.Windows.CsWin32/build/Microsoft.Windows.CsWin32.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</Target>
4242

4343
<Target Name="GenerateCsWin32Code"
44-
Inputs="@(AdditionalFiles);@(ProjectionMetadataWinmd);@(ProjectionDocs);@(CsWin32AppLocalAllowedLibraries);@(ReferencePath);@(CsWin32GeneratorInputs)"
44+
Inputs="@(AdditionalFiles);@(ProjectionMetadataWinmd);@(ProjectionDocs);@(AppLocalAllowedLibraries);@(ReferencePath);@(CsWin32GeneratorInputs)"
4545
Outputs="$(CsWin32GeneratorGeneratedFilesList);@(CsWin32GeneratorPreviousOutputs);$(CsWin32GeneratorSucceededMarker)"
4646
Condition="'$(CsWin32RunAsBuildTask)'=='true' and '@(ProjectionMetadataWinmd)'!=''">
4747
<ItemGroup>
@@ -62,7 +62,7 @@
6262
NativeMethodsJson="@(CsWin32NativeMethodsJson)"
6363
MetadataPaths="$(CsWin32MetadataPaths)"
6464
DocPaths="@(ProjectionDocs)"
65-
AppLocalAllowedLibraries="@(CsWin32AppLocalAllowedLibraries)"
65+
AppLocalAllowedLibraries="@(AppLocalAllowedLibraries->'%(FullPath)')"
6666
OutputPath="$(CsWin32GeneratorGeneratedFilesPath)"
6767
GeneratorToolPath="$(CsWin32GeneratorToolPath)CsWin32Generator.dll"
6868
TargetFramework="$(TargetFramework)"

0 commit comments

Comments
 (0)