简体   繁体   中英

.NET Core “Files has invalid value” error

Hello I am developing an asp.net core mvc app when I build my solution I take this error;

Severity Code Description Project File Line Suppression State Error MSB3541 Files has invalid value "<<<<<<< HEAD". Illegal characters in path. ToDo.Web C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\Microsoft.Common.CurrentVersion.targets 4925

After that, when I click on the error description, the IDE redirects me to this section of the targets document.

 <!-- Find all files in the final output directory. --> <FindUnderPath Path="$(OutDir)" Files="@(_CleanOrphanFileWrites)"> <Output TaskParameter="InPath" ItemName="_CleanOrphanFileWritesInOutput"/> </FindUnderPath>

Files has invalid value "<<<<<<< HEAD". Illegal characters in path.

That value indicates that are part way through a git merge. Search in your repo for that string and resolve the git merge.

Note I previously added this as a comment - but I suspect someone flagged it to be removed. I'd rather this be a comment, but adding it as an answer so that @mertagcakoyun can get up and running.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM