I tried to publish my Azure Cloud project, and I am getting the following error message
Could not copy the file
obj\Debug\build.force
because it was not found
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.8\Microsoft.WindowsAzure.targets
I am getting this error when I tried to publish by right clicking on the cloud project, selecting build configuration Debug
, and then clicking publish
.
If I select build configuration Release
it published successfully.
Looks like this is happening intermittently .
Even when I select Release mode, I am getting the above same error:
Cloudproject
Publish
Staging
Release
UPDATE Whenever I got this error ,I tried with different combinations between Staging / Production/ Release during publish and sometimes it works.
Any ideas as to what could be going wrong?
I am using Windows 10, VS2015 and the Azure SDK 2.8
I get this error too often. I solve this error the following way.
.csproj
file of my project in notepad++.Remove the following line from .csproj
file.
"Content Include=obj\\Debug\\build.force"
Save .csproj
file.
This solution works for me. Hope it works for you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With