简体   繁体   English

.NET Core“文件具有无效值”错误

[英].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;您好,当我构建解决方案时,我正在开发一个 asp.net core mvc 应用程序,我出现了这个错误;

Severity Code Description Project File Line Suppression State Error MSB3541 Files has invalid value "<<<<<<< HEAD".严重性代码描述项目文件行抑制状态错误 MSB3541 文件具有无效值“<<<<<<< HEAD”。 Illegal characters in path.路径中的非法字符。 ToDo.Web C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\MSBuild\\Current\\Bin\\Microsoft.Common.CurrentVersion.targets 4925 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.之后,当我单击错误描述时,IDE 会将我重定向到目标文档的这一部分。

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

Files has invalid value "<<<<<<< HEAD".文件具有无效值“<<<<<<< HEAD”。 Illegal characters in path.路径中的非法字符。

That value indicates that are part way through a git merge.该值表明这是 git 合并的一部分。 Search in your repo for that string and resolve the git merge.在您的 repo 中搜索该字符串并解决 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.我宁愿这是一条评论,但将其添加为答案,以便@mertagcakoyun 可以启动并运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MVC .Net Core 模型验证 - 值 &#39;&#39; 无效。 错误 - MVC .Net Core Model Validation - The value '' is invalid. Error 文件在 c# mvc 中具有无效值 - Files has Invalid value in c# mvc 在ASP.NET Core 2.1中将Value Object作为无效对象 - Value Object as Invalid Object in asp.net core 2.1 .net 核心 API 中的无效模型类属性错误 - Invalid model class property error in .net core API 使用 ASP.NET Core 的 JWT 令牌无效令牌错误 - JWT token invalid token error using ASP.NET Core .Net Core 3.1 应用程序中出现“有效负载无效”错误的原因是什么? - What Causes "The payload was invalid" Error in .Net Core 3.1 Application? 生成时,.NET Core csproj PublishProfileName具有一个值 - .NET Core csproj PublishProfileName has a value when building .NET Core 配置管理器,读取一个键里面有一个冒号的字典,给出一个关于值的奇怪的错误消息,这是预期的吗? - .NET Core configuration manager, reading a dictionary where one key has a colon inside, gives an odd error message about the value, is this expected? ASP.NET 内核中的错误:没有注册类型 […] 的服务 - Error in ASP.NET Core : no service for type […] has been registered 当我在 IIS 上发布 asp net core 5 项目时出现错误 - when I published asp net core 5 project on IIS it has an error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM