【问题标题】:Visual Studio 2013: Error when creating new web projectVisual Studio 2013:创建新 Web 项目时出错
【发布时间】:2014-06-01 16:53:27
【问题描述】:

每当我在 Visual Studio 2013 中创建新的 ASP Web 项目时,我都会收到以下错误:

Error   1   The imported project "C:\Program Files 
(x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets"
was not found. Confirm that the path in the <Import> declaration is correct, 
and that the file exists on disk.

我知道通过修复它可以进入csproj 文件并注释掉&lt;Import&gt; 所在的行,但我必须为每个新项目都这样做,有没有其他方法可以解决这个问题对于新项目,我没有收到此错误?

【问题讨论】:

  • 你能在那个位置创建一个文件,或者更好地从另一台计算机复制正确的文件吗?
  • 你的VS2013是什么版本和更新级别?
  • 我正在运行 VS 2013 Ultimate。我确实安装了 VS2012 和 2010 但卸载了它们
  • 我猜你的目标是 .NET 4,当你卸载 VS2010 时,它删除了 v10 目标。在 VS2013 中为 .NET 4.5.1 创建 webapps 时是否遇到错误?

标签: visual-studio msbuild visual-studio-2013


【解决方案1】:

如果尚未安装 Windows SDK for Windows 7。接下来关注this thread

【讨论】:

    猜你喜欢
    • 2014-02-23
    • 1970-01-01
    • 2014-08-26
    • 1970-01-01
    • 2015-04-22
    • 1970-01-01
    • 1970-01-01
    • 2015-03-30
    • 2016-11-23
    相关资源
    最近更新 更多