0

自分で mvvmlight アプリを作成しました。f5 を押してコンパイルし、すべて正常に動作すると、wpf ウィンドウが表示されます。

しかし、ビルドを実行するとエラーが発生します

 Error  1   The target "RunCodeAnalysis" does not exist in the project. 

Visual Studio 2010 プロフェッショナル版 RTM を使用しています

奇妙なのは、.NET Framework 4 クライアント プロファイルに設定されているターゲット フレームワークだけです。

なぜこれが起こるのか知っている人はいますか??

4

1 に答える 1

1

It is possible that I forgot to turn the Code Analysis option off when I published the project templates last time. I am about to publish a new service pack (for the phone), so I can turn it off again. I think that your version of VS10 does not support code analysis out of the box.

In the mean time, try this:

  • Open the CSPROJ file in a text editor (Notepad, etc)
  • Locate the line that reads "true" and delete it.
  • Close the CSPROJ file and reload it in Visual Studio.

Let me know if that solves the issue.

Thanks, Laurent

于 2010-05-29T13:10:06.533 に答える