question

JayOBrien-2384 avatar image
0 Votes"
JayOBrien-2384 asked DanielZhang-MSFT answered

Warning: Unable to apply publish properties

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?

dotnet-csharp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DanielZhang-MSFT avatar image
0 Votes"
DanielZhang-MSFT answered

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.