我有以下 *.wpp.target文件:
<PropertyGroup>
<CopyAllFilesToSingleFolderForMsdeployDependsOn>
ExcludeCustomFilesOrFolders;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForMsdeployDependsOn>
</PropertyGroup>
<Target Name="ExcludeCustomFilesOrFolders" BeforeTargets="ExcludeFilesFromPackage">
<ItemGroup>
<ExcludeFromPackageFolders Include="$(MSBuildProjectDirectory)Media" />
</ItemGroup>
<Message Text="Custom Exclude From %0D Folders: @(ExcludeFromPackageFolders)%0D Files: @(ExcludeFromPackageFiles)" Importance="high"/>
</Target>
如果我第一次从Visual Studio 17媒体文件夹中运行它。当我用DubludeFrompackageFolders Node评论行时,并再次发布媒体文件夹仍被忽略。Visual Studio或Msbuild似乎不会刷新 *.wpp.target文件内的更改。我会想念这里的东西还是VS或MSBUILD只是货车?
您可以尝试将/配置文件添加到链接选项吗?可能解决了问题:https://devervevelvingercommunity.visualstudio.com/content/problem/136703/wpp-trace-missing-from-pdb-files-in-viles-in-vs-2017.html
您每次更改它都必须重新启动Visual Studio和重新加载解决方案。VS缓存。