我正在切换到 Windows 10,项目构建出现此错误:“无法运行指定的任务可执行文件“vbc.exe”。访问被拒绝”
运行 Visual Studio 2015,项目类型为类库,面向 4.5.2。.Net Framework 4.5.2 已安装(随 Visual Studio 2015 提供)
我的用户对 C:\Windows\Microsoft.NET\Framework64\v4.0.30319 中的 vbc.exe 拥有所有权和完全权限
任何建议为什么会发生这种情况以及如何解决?
使用命令行运行构建
MSBuild.exe TMF-WebApp.vbproj /t:go /v:diag /fl /flp:logfile=TMF-WebAppBuildLog.log;verbosity=diagnostic
生成此错误
error MSB4019: The imported project "C:\Program Files (x86ld\Microsoft\VisualStudio\v11.0\WebApplications\Microsoft.WebApplication." was not found. Confirm that the path in the <Import> declaration is cornd that the file exists on disk.
这是日志文件
Build started 1/17/2017 8:20:08 AM.
Project "TMF-WebApp.vbproj" on node 1 (go target(s)).
Building with tools version "4.0".
TMF-WebApp.vbproj(1779,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.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.
Done Building Project "TMF-WebApp.vbproj" (go target(s)) -- FAILED.
Deferred Messages
Detailed Build Summary
======================
============================== Build Hierarchy (IDs represent configurations) =====================================================
Id : Exclusive Time Total Time Path (Targets)
-----------------------------------------------------------------------------------------------------------------------------------
0 : 0.269s 0.269s TMF-WebApp.vbproj (go)
============================== Node Utilization (IDs represent configurations) ====================================================
Timestamp: 1 Duration Cumulative
-----------------------------------------------------------------------------------------------------------------------------------
636202596087034282: 0 0.285s 0.285s #####
-----------------------------------------------------------------------------------------------------------------------------------
Utilization: 100.0 Average Utilization: 100.0
Build FAILED.
"TMF-WebApp.vbproj" (go target) (1) ->
TMF-WebApp.vbproj(1779,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.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.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.40
谢谢你