Unable to apply publish properties for item X

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 14:15:57

问题


Whenever we do a build in our main solution we receive the following warning:

Unable to apply publish properties for item "microsoft.visualstudio.qualitytools.unittestframework".

Has anyone seen anything like this before? Any ideas on how to fix this? It happens on all of our developer machines and also on our TFS build server as well. However, it only appears in Debug mode.


回答1:


It appears that the issue is related to ClickOnce. Navigate to the project, right click on it and click on properties. Go to the Publish tab and click on Application Files. Check the 'Show all files' checkbox and scroll through the list of files. Eventually, you will come across the file that has a yellow exclamation point on it. This file is orphaned and needs to be removed. Right click on the file and there should be a remove option.

Now build the solution and the warning should be gone.



来源:https://stackoverflow.com/questions/9284375/unable-to-apply-publish-properties-for-item-x

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!