发布错误:无法加载文件或程序集“Microsoft.Web.XmlTransform”,版本= 1.4.0.0,文化=中立等或其依赖之一 [英] Publish error: Could not load file or assembly 'Microsoft.Web.XmlTransform', Version=1.4.0.0, Culture=neutral, etc. or one of its dependencies

查看:160
本文介绍了发布错误:无法加载文件或程序集“Microsoft.Web.XmlTransform”,版本= 1.4.0.0,文化=中立等或其依赖之一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想发布一个MVC项目,我不断得到这个错误:

I want to publish a MVC project and I keep getting this error:


System.IO.FileNotFoundException:无法加载文件或程序集Microsoft.Web.XmlTransform,Version = 1.4.0.0,Culture = neutral,PublicKeyToken = ...或其一个依赖项。系统找不到指定的文件。

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.XmlTransform', Version=1.4.0.0, Culture=neutral, PublicKeyToken=... or one of its dependencies. The system cannot find the file specified.

我已经搜索并尝试在SO或MSDN上找到的一些解决方案无效。我真的很渴望一些建议。
该项目以前已经成功发布,但是在尝试重新发布我的更新版本后,这个项目已经脱离了蓝图。

I have searched for and tried some solutions found on SO or MSDN to no avail. I'm really desperate for some suggestions. The project has been published successfully before, but this came out of the blue after trying to republish my updated version.

推荐答案

我终于得到了这个工作。我正在离开我的解决方案,以防其他人有类似的问题。

I finally got this to work. I'm leaving my solution here in case others have a similar issue.

基本上我尝试使用Microsoft ASP.NET和Web Tools 2013.1修复我的VS(我得到了从这里 Microsoft Web Tools下载页面)。但是,它并没有解决我的问题。
解决方法是从位于

Basically I tried repairing my VS using the Microsoft ASP.NET and Web Tools 2013.1 (I got it from here Microsoft Web Tools download page). However, it didn't solve the problem for me. What did solve it was copying the file Microsoft.Web.XmlTransforms.dll from another machine at the location

$ b $的另一台计算机复制文件 Microsoft.Web.XmlTransforms.dll b

C:\程序文件(x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web

不知怎的,我从那里丢失了(我从另一台电脑上获得了相同的.NET版本并将其粘贴在那里),现在发布工作正常。

Somehow, mine was missing from there (I got it from another computer with the same .NET version and pasted it there) and now the publish works fine.

这篇关于发布错误:无法加载文件或程序集“Microsoft.Web.XmlTransform”,版本= 1.4.0.0,文化=中立等或其依赖之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆