Q:

Publish Website Getting Empty Folder

I Have Build project with visual studio but when i want to publish my website i get an empty folder and nothing there ! no error or warning , 
Building directory '/project/Users/'.
Pre-compilation Complete
------ Publish started: Project: F:\...\project\, Configuration: Debug Any CPU ------
Connecting to site E:\project...
Publishing directory /...
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
========== Publish: 1 succeeded, 0 failed, 0 skipped ==========

e:\project is empty

A:

Build your project (not rebuild) it will work :)
OR
Other workaround is publish in debug mode first then change settings and publish in release mode. it will surely work :)

A:

Try building the project in release mode first then publish.

A:

In my case there was a little item in the .csproj file that I had to remove. I had to unload the project, edit the .csproj, then hunt down and remove the following XML tag:
<Target Name="GatherAllFilesToPublish">     
</Target>

Once I republished, all was well. 

