Hi @Prathamesh Shende ,
It seems that this is a known issue: Failure to publish WASM when project source path contains blank spaces - Post-upgrade VS 2022 to 17.2.4 #26061.
And the issue might relate to the location of your project, the path might contain the blank spaces, try to remove the blank spaces, or change the project location to the path without blank spaces.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.