In linux via mono this file does not exist. To resolve this issue, follow these steps:
- Install nuget package MSBuild.Microsoft.VisualStudio.Web.targets
- Right-click your project and click Upload Project
- Right-click on your (now uploaded) project and click on "Edit MyProjectName.csproj"
- Replace this line:
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.Tasks.dll" />
With the updated location nuget Microsoft.Web.Publishing.Tasks.dll (if necessary, update the version name in MSBuild.Microsoft.VisualStudio.Web.targets.14.0.0.3 ):
<UsingTask TaskName="TransformXml" AssemblyFile="..\packages\MSBuild.Microsoft.VisualStudio.Web.targets.14.0.0.3\tools\VSToolsPath\Web\Microsoft.Web.Publishing.Tasks.dll" />
- Restart your project, and voila, working on linux!
source share