Warning: Unable to apply publish properties

Jay O'Brien 71 Reputation points
2021-07-12T19:53:14.777+00:00

I have just converted my extensive VB code to C# and was going over warnings and I have multiple warnings: Unable to apply publish properties for items "zh-hant\microsoft..." Looking back, these were there in my VB.Net code, as well. All of the answers I have found told me to click "show files" but I can not find "show files" in my VS 2019. How do I clean this up?

Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Daniel Zhang-MSFT 9,661 Reputation points
    2021-07-13T05:32:13.353+00:00

    Hi JayOBrien-2384,
    Please try the following steps:
    Right-click your project and click Properties. Go to the "Publish" tab and click on "Application Files". Check the "Show all files" checkbox and scroll through the file list. Eventually, you will encounter a file with a yellow exclamation mark. This file is orphaned and needs to be deleted. Right click on the file and there should be a delete option.
    (Or you can click the Reset All button.)
    Then build the solution and the warning should disappear.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.