Unityのプロジェクトのバージョンアップ はできるならやりたくないですね。どんなエラーがでるかが恐怖です。しかし、やらなければいけない時もあります。
そして、以下のエラーが出た時の対処法 を今回は解説します。
そして、以下のエラーが出た時の対処法 を今回は解説します。
「Deterministic compilation failed. You can disable Deterministic builds in Player Settings」
error CS8357: The specified version string contains wildcards, which are not compatible with determinism. Either remove wildcards from the version string, or disable determinism for this compilation.
error CS8357: The specified version string contains wildcards, which are not compatible with determinism. Either remove wildcards from the version string, or disable determinism for this compilation.
【現象】
現象としては、上記した通り、Unityのプロジェクトの Unityバージョンを変更した後に、以下のエラーが発生しました。
「Deterministic compilation failed. You can disable Deterministic builds in Player Settings」
とりあえず私は、Unityのバージョンを 2019.2 から 2020.3 にバージョンアップしました。
【解決法】
エラーには以下の様にかいてあります。
error CS8357: The specified version string contains wildcards, which are not compatible with determinism.
Either remove wildcards from the version string, or disable determinism for this compilation.
どこかのバージョン情報でワイルドカードが使われていて比較ができないので、
そのワイルドカードを削除するか、この比較を無効化せよ。
と言ってます。
どこのワイルドカードを削除すれば良いかよく分からないので、比較を無効化します。
Unityのメニュー Edit >Project Settings.. で Project Settingsスクリーンを開きます。

画面左側で Playerを選択して、Player Settingを開きます。

その中の、Other Settingsエリアにある、「Use Deterministic Compilation」のチェックをはずします。
その後、Unityのプロジェクトを再度立ち上げるとエラーはなくなります。
Sponsored Link