Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publish MVC Project in Visual Studio 2012 Results in Empty Folder

I am attempting to publish an MVC4 application from VS 2012 Pro running Windows 8 Pro. However, this is resulting in an empty directory at the publish root (as defined by the publish settings). I have the "All files in this project" selection for items to deploy and I am not attempting to publish any databases. Also, I'm only trying to do a local publish.

Below is a snippet from the output window. I would appreciate any suggestions for troubleshooting this issue. I have already tried to repair, uninstall, and reinstall VS.

2>Done building project "MyProject.Mvc".
2>Publishing folder /...
2>
========== Build: 1 succeeded, 0 failed, 5 up-to-date, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========

Best regards, Vinney

like image 961
Vinney Kelly Avatar asked Sep 12 '12 06:09

Vinney Kelly


2 Answers

The accepted answer did not work for me; however, deleting and recreating the publish profile worked.

like image 190
Matt Cofer Avatar answered Sep 20 '22 20:09

Matt Cofer


This the the same problem in this question and there is a workaround. Visual Studio 2012 Web Publish doesn't copy files

like image 30
Roberto Nunes Avatar answered Sep 24 '22 20:09

Roberto Nunes