在使用NuGet时,我尝试使用powershell脚本将文件更改为嵌入式资源。我正在使用论坛上推荐的小型powershell脚本here.但是,我的脚本仅在文件不在文件夹中时才有效。param($installPath,$toolsPath,$package,$project)$item=$project.ProjectItems.Item("Folder\ReleaseNotes.txt")$item.Properties.Item("BuildAction").Value=[int]3即使文件位于文件夹中,我如何调整此行以查找文件:$item=$project.ProjectIte