HichemSeeSharp
HichemSeeSharp

Reputation: 3318

Cannot publish because a project failed to build and Could not find file 'obj\x86\Debug\MyApplication.exe' Errors

I am striving to get the source of my issue but no luck. I did check almost all suggestions to fix this problem when publishing project (publishing using right-click, checked DevExpress is not installed).

-Regarding DevExpress the application have some of it's assemblies.
- Cannot publish because a project failed
- Could not find file 'obj\x86\Debug\MyApplication.exe'

I did send publishing diagnostic to the Output and get this :

Task "GenerateApplicationManifest" (TaskId:158)
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2580,9): error MSB3113: Could not find file 'obj\x86\Debug\MyApplication.exe'.
Done executing task "GenerateApplicationManifest" -- FAILED. (TaskId:158)
Done building target "GenerateApplicationManifest" in project "MyApplication.csproj" -- FAILED.: (TargetId:194)

Can someone list all things I have to check to get this issue fixed ?

Upvotes: 1

Views: 1708

Answers (2)

Salman Tahir
Salman Tahir

Reputation: 58

  1. Right click on you Project
  2. Click Publish
  3. Go to Settings Tab
  4. Click File Publish Options
  5. Check All the options in the tab (As seen in attached image)

enter image description here

Upvotes: 0

UnhandledExcepSean
UnhandledExcepSean

Reputation: 12804

I just ran into the problem today. In my particular case, it was caused by this Microsoft Windows Update.

I uninstalled that update and publish began working as it always had. This is only a temporary work around and means you should probably regenerate your keys/certificates.

Upvotes: 1

Related Questions