を拒否され、プロジェクトのビルドがこのエラーできます:「実行することができませんでしたアクセスが拒否されました 『 は、』指定されたタスクの実行」vbc.exeをVSビルドプロジェクトエラー:指定されたタスク実行可能ファイル "vbc.exe"を実行できませんでした。アクセスは、私は、Windows 10への切り替えをしています
は、Visual Studio 2015を実行して、プロジェクトtypeは4.5.2を対象としたクラスライブラリです。 の.NET Framework 4.5.2がインストールされている(のVisual Studio 2015に付属)
私のユーザーが Cでvbc.exeする所有権と完全な権限を持っている:\ WINDOWS \ Microsoft.NET \ Framework64 \
v4.0.30319これが起こる理由と修正方法についてのご意見はありますか?コマンドライン
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
は
あなたのビジュアルスタジオ2015を管理者として実行してください。さらに、私は単純なデモを作成してプロジェクトをビルドします。代わりにC:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ vbc.exeを使用します。 "C:¥Windows¥Microsoft.NET¥Framework64¥v4.0.30319"の場合は、ビルドログを共有し、次のような行があるかどうかを確認してください: "Vbc"タスク 1> C:\ Program Files(x86)\ MSBuild \ 14.0 \ bin \ vbc.exe/noconfig /imports:Microsoft.VisualBasic,System,System.Collections,ystem.Collections.Gener –
@ ColeWu-MSFTはAdminとして実行しようとしましたが、アクセスが不足しているvbc.exeについては同じ動作とエラーが発生しました。 – jprusakova
@ ColeWu-MSFTビルドログとエラーが表示されました。コマンドラインでmsbuildを実行しています – jprusakova