マイクロソフト系技術情報 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。

目次

概要

タスク

標準タスク

Communityタスク

メモ

MSbuild 14.0

MSbuild 15.0

トラブルシュート

devenvでのビルドと比べ、チラホラと、エラーが起きる。

ビルド時

ビルド時に「error MSB4019 ... `MSBuild\...\Microsoft.WebApplication.targets` was not found...」が発生

最近、Visual Studio 2017のMSBuild(v15.0)に標準同梱されていなくて、
Webアプリケーションのビルドに失敗するケースが増えているようです。

ビルド時に「due to its being in the Internet or Restricted zone or having the mark of the web on the file.」が発生

GitHubから「Download ZIP」して、Explorerで解凍した場合など、この問題が起きます。

ビルド時に「error CS1519 Unexpected symbol 'xxxxx' in class, struct, or interface member declaration.」が発生

C#のバージョン(コンパイラ)の問題らしいです。

PackageReferenceに切り替え後のビルドで「error CS0246 The type or namespace name ...」が発生

NuGet使用時

Nuget使用時に「error MSB3086 Task could not find AL.exe」が発生

MSBuildでのビルドに必要なSDKがインストールされていなくてエラーになるというケース。

Nuget使用時に「warning MSB3247 Found conflicts between different versions of the same dependent assembly.」が発生

Nuget使用時に「warning NU1701 Package 'xxxxx' was restored using 'yyyyy' instead of the project target framework 'zzzzz'...」が発生

参考


Tags: :.NET開発, :テスト, :デバッグ, :デプロイ, :ツール類, :CI


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS