Can you check if you have below property set in your project file.You can check that by opening the project in text editor by unloading the project from solution. If this property is set, then even the files with the build action set to content wont be published.
Content\files