0

I have tried many tricks but my Visual Studio won't publish my solution anywhere over the file system. I am using Visual Studio 2013 Professional. The solution is MVC 5 with Razor.

I have tried deleting all my publish profiles, changing between debug and release and nothing seems to work.

I am not sure if it might be related by the Razor helpers and ViewBag are not recognized in the views. I have checked all of the versions and my System.Web.Mvc is 5.2.3.0 and all references in the webconfigs seem to match that.

This is probably two separate questions but wasn't sure if one might have something to do with the other.

When publishing it says it succeeded at the end but the folder is totally empty.

bigphildogg86
  • 176
  • 1
  • 7
  • 17
  • Try looking at [this SO question](http://stackoverflow.com/questions/13073284/publish-website-getting-empty-folder) and see if any of the answers work for you. – Icemanind Aug 08 '16 at 14:55
  • 1
    Please read [ask] and share your research (_"I have tried many tricks"_ does not suffice). What configuration are you building in, and what configuration does your publish profile use? – CodeCaster Aug 08 '16 at 14:59
  • My second sentence states what I tried: I have tried deleting all my publish profiles, changing between debug and release and nothing seems to work. – bigphildogg86 Aug 08 '16 at 15:30
  • @bigphildogg86 Does your code runs in localhost? If so that's not a problem with Razor and ViewBag but probably more a configuration issue. – vegas2033 Aug 08 '16 at 20:33
  • Look into your output tab and search for a line that says Web App was published successfully file///[PATH]. This is the path where your files have been published – vegas2033 Aug 08 '16 at 20:41

0 Answers0