This project is read-only.
1

Closed

Error when deploy to Windows Azure using git

description

Cause Of :
  1. Because App_Data included in csproj, but App_Data not actually exist.
    So, it causes the build to fail when deployed to Windows Azure.
  2. Because *MVCForum.Website/Content/uploads/readme.txt included in csproj, but it not actually exist (We have ignored it from .*ignore).
So, it causes the build to fail when deployed to Windows Azure.
And to overcome this I edit csproj to include App_Data and uploads folder then I add readme.txt (where readme is just placeholder) to that folder.

Then because I'm using Git to deploy to Windows Azure, I can UnIgnore readme.txt by way of editing gitignore.
#Ignore all files in App_Data and uploads
App_Data*/*
*MVCForum.Website/Content/uploads/*

#UnIgnore readme files. In GitIgnore use "!" to UnIgnore
!App_Data/readme.txt
!*MVCForum.Website/Content/uploads/readme.txt
Closed Jun 5, 2014 at 9:41 AM by jimmysmithjnr
Please use our github page

https://github.com/leen3o/mvcforum/issues

comments