“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">
</Target>
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.

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

Comments

Popular Posts