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>False</Deterministic>
</PropertyGroup>

將 deterministic 改為 false 即可。

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM