Last post Sep 28, 2017 12:30 PM by Lars101
Sep 25, 2017 09:59 AM|Lars101|LINK
I just installed VS2017 and when trying to build it asks for an older version of this DLL.
The "TransformXml" task could not be loaded from the assembly D:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll. Could not load file or assembly 'file:///D:\Program
Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that
the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. Mediacreator.Core D:\Source\MediaCreator\MC.NET\Main\Mediacreator.Core\Mediacreator.Core.csproj 2989
How can I solve this?
Sep 25, 2017 11:15 AM|Lars101|LINK
It seems that copying the new file to that path works, seems a bit sketchy though.
Sep 28, 2017 06:10 AM|Cathy Zou|LINK
In order to make this work with all versions of Visual Studio you could:
1. Open the project file (.csproj) of the project failing to load
2. Search for
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets" />
3. Change it to
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.targets" />
4. Reload the project
That will set the correct version of Visual Studio dynamically and properly.
Sep 28, 2017 12:30 PM|Lars101|LINK
Thank you, exactly what I was looking for.