asp.net-corevisual-studio-2019publishpublishing

Getting DestinationFiles refers to 1 item and sourcefiles refers to 1 item when publishing in Visual Studio 2019


Need help badly. I am getting the below error when publishing to folder.

enter image description here

With the below publish setting enter image description here

enter image description here

The solution works perfectly fine when run. Only getting this error when publishing.

Please see below .csproj file enter image description here

Im so stuck. Don't know what I am missing. I already tried to create new solution then publish it right away. Same error occurred.


Solution

  • It turns out, I need to relocate my solution to "(username)/source/repos" folder path. No need to downgrade or upgrade .Net framework. I stay using .Net 5. From there, I am able to publish my solution perfectly. No error occurred.