32

私は過去数時間ウェブを検索していて、私の問題に関連する多くの情報を見つけましたが、実際にそれらを修正するものはありませんでした。

私のマシンは64ビットで、32ビットのVisualStudio10がインストールされています。ソリューションは.Net4を使用します。ソリューションには、CrystalReportsの64ビットインストールが含まれます。ソリューションにはlog4netも含まれています。

VS2010でのプロジェクトのコンパイルは、デバッグとリリースの両方、どのCPUでも問題ありません。

ビルドしたいWebセットアッププロジェクトを追加しました。ただし、構成に関係なく、コンパイル時に次のエラーが発生します(VS UI内とdevenv.exeを使用したコマンドラインの両方)。

ERROR: File 'CrystalDecisions.ReportAppServer.Prompting.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.Prompting.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.ObjectFactory.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.ObjectFactory.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.XmlSerialize.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.XmlSerialize.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.CommonObjectModel.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.CommonObjectModel.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.CommonControls.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.CommonControls.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.ReportDefModel.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.ReportDefModel.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'log4net.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'log4net.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.Controllers.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.Controllers.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.DataDefModel.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.DataDefModel.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.CubeDefModel.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.CubeDefModel.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.ClientDoc.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.ClientDoc.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.CommLayer.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.CommLayer.dll' targeting 'x64' is not compatible with the project's target platform 'x86'

プロジェクトの構成を変更せずにx86とx64の両方に明示的に設定しようとしました。

誰かが私を正しい道に導くことができますか?

編集-セットアッププロジェクトのプラットフォームを選択できないことを示すスクリーンショットを追加しました。

ここに画像の説明を入力してください

4

9 に答える 9

67

セットアッププロジェクトを64ビットインストーラーとしてマークする必要があります。[プロパティ]ウィンドウでセットアッププロジェクトのTargetPlatformプロパティをx86(デフォルト)からx64に変更します。
また、64ビットバージョンのlog4netをデプロイし、C#プロジェクトのTargetPlatform設定がAnyCPUであることを確認してください。また、アプリを64ビットプロセスとして実行する必要が
あることを確認してください。これはまれです。

于 2011-08-05T13:17:44.143 に答える
23
  1. メモ帳で Deployment.vdproj を開きます。
  2. 文字列 "TargetPlatform" = "3:0" を検索
  3. AMD64 の場合は "TargetPlatform" = "3:1"、Itanium の場合は "TargetPlatform" = "3:2" に変更します。
  4. Deployment.vdproj を保存します。Visual Studio では変更は見られませんが、プロジェクトは AMD64 になりました。
于 2012-01-18T19:17:18.370 に答える
7
  1. 展開プロジェクトを開きます。
  2. ソリューション エクスプローラーで、配置プロジェクトを選択します。
  3. [プロパティ] ウィンドウで、TargetPlatform プロパティを選択します。
  4. Intel Itanium 64 ビット プラットフォームの場合は Itanium を選択し、その他の 64 ビット プラットフォーム (AMD64 や EM64T 命令セットなど) の場合は x64 を選択します。
  5. ターゲット コンピューターが指定されたプラットフォームと互換性がない場合、インストール時にエラーが発生し、インストールが停止します。
于 2011-12-21T10:59:46.820 に答える
3

これはTragetPlatform によるものです。

セットアップ プロジェクト > プロパティを選択し、TragetPlatform を x64 に変更します。

ここに画像の説明を入力

于 2020-10-31T06:56:38.957 に答える
1
  1. 展開プロジェクトを開きます。
  2. ソリューション エクスプローラーで、配置プロジェクトを選択します。
  3. [プロパティ] ウィンドウで、TargetPlatform プロパティを選択します。
  4. Intel Itanium 64 ビット プラットフォームの場合は Itanium を選択し、その他の 64 ビット プラットフォーム (AMD64 や EM64T 命令セットなど) の場合は x64 を選択します。

ターゲット コンピューターが指定されたプラットフォームと互換性がない場合、インストール時にエラーが発生し、インストールが停止します。

于 2017-02-02T14:23:30.153 に答える
0

x86 アプリケーションと通信する必要がある x64 Windows サービスのインストール (powershell と考えてください) が必要になる場合があります。あなたの答え (プロパティ/TargetPlatform) により、そのハードルを乗り越えることができました。

于 2013-04-02T14:58:28.740 に答える