[英]MVC .Net Core Model Validation - The value '' is invalid. Error
[英].NET Core “Files has invalid value” error
您好,當我構建解決方案時,我正在開發一個 asp.net core mvc 應用程序,我出現了這個錯誤;
嚴重性代碼描述項目文件行抑制狀態錯誤 MSB3541 文件具有無效值“<<<<<<< HEAD”。 路徑中的非法字符。 ToDo.Web C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\Microsoft.Common.CurrentVersion.targets 4925
之后,當我單擊錯誤描述時,IDE 會將我重定向到目標文檔的這一部分。
<!-- Find all files in the final output directory. --> <FindUnderPath Path="$(OutDir)" Files="@(_CleanOrphanFileWrites)"> <Output TaskParameter="InPath" ItemName="_CleanOrphanFileWritesInOutput"/> </FindUnderPath>
文件具有無效值“<<<<<<< HEAD”。 路徑中的非法字符。
該值表明這是 git 合並的一部分。 在您的 repo 中搜索該字符串並解決 git merge。
請注意,我之前將此添加為評論 - 但我懷疑有人將其標記為要刪除。 我寧願這是一條評論,但將其添加為答案,以便@mertagcakoyun 可以啟動並運行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.