xml – 如何修复损坏的csproj文件?
发布时间:2020-12-16 23:29:33 所属栏目:百科 来源:网络整理
导读:我是一个正在研究项目的小组,并且正准备使用git从主分支重新启动我的分支.当rebase启动时,它突然崩溃并给我这个错误消息: The project file could not be loaded. Name cannot begin with the '' character,hexadecimal value 0x3C.Line 173,position 2. “
我是一个正在研究项目的小组,并且正准备使用git从主分支重新启动我的分支.当rebase启动时,它突然崩溃并给我这个错误消息:
The project file could not be loaded. Name cannot begin with the '<' character,hexadecimal value 0x3C. Line 173,position 2. “csproj”文件似乎已损坏.我怎样才能解决这个问题?问题看起来像这样: <ItemGroup> <Compile Include="App_StartBundleConfig.cs" /> <Compile Include="App_StartFilterConfig.cs" /> <Compile Include="App_StartIdentityConfig.cs" /> <Compile Include="App_StartRouteConfig.cs" /> <Compile Include="App_StartStartup.Auth.cs" /> <Compile Include="App_StartWebApiConfig.cs" /> <Compile Include="ControllersAccountController.cs" /> <Compile Include="ControllersCategoryController.cs" /> <<<<<<< HEAD <Compile Include="ControllersGalleryController.cs" /> ======= <Compile Include="ControllersCheckoutController.cs" /> >>>>>>> Checkout Works. something wrong with Authorization. No need be logged <Compile Include="ControllersHomeController.cs" /> <Compile Include="ControllersManageController.cs" /> <Compile Include="ControllersPhotoController.cs" /> <Compile Include="ControllersShoppingCartController.cs" /> <Compile Include="ControllersStoreController.cs" /> <Compile Include="ControllersStoreManagerController.cs" /> <Compile Include="Global.asax.cs"> <DependentUpon>Global.asax</DependentUpon> </Compile> 解决方法
只需在csproj文件中删除下面的文本类型即可
***<<<<<<<<<<<<<<< – – – – -矿 “>>>>>>>>>>>>>>>>>>> *** 并重新加载项目它将工作. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |