Could not load file or assembly '{ProjectName}, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified

I have posted the answer in this Update of Libraries and Processes from Legacy to Windows - Build Pipeline - #24 by nagaabhishekreddy.c