“GatherAllFilesToPublish” Error in Upgraded VS2013 Projects

I started getting this error after I upgraded my Azure SDK
So the first thing I tried was adding
<Target Name="GatherAllFilesToPublish">
to my .csproj file.
This stopped the error, but caused all my source files to be copied when I did a publish.
I finally found this, instead of '10.0' I used '12.0' and it worked.  My projects publish correctly again.

    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">12.0</VisualStudioVersion>
    <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
Hope this helps someone.


Popular Posts