Visual Studio 項目在修改項目版本時,使用 * 通配符報錯

CS8357 C# 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

CS8357 指定的版本字符串包含通配符,這與確定性不兼容。請刪除版本字符串中的通配符,或禁用此編譯的確定性。

直接編輯項目文件(csproj),修改:

<PropertyGroup>
  <Deterministic>true</Deterministic>
</PropertyGroup>

將 deterministic 改爲 false 即可。

https://stackoverflow.com/questions/37941195/the-specified-version-string-does-not-conform-to-the-required-format-major-mi

https://www.cnblogs.com/xwgli/p/11268650.html

發佈了15 篇原創文章 · 獲贊 33 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章