复制解决方案MVC后调试出错 [英] Error in debug after copied the solution MVC

查看:101
本文介绍了复制解决方案MVC后调试出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我,当我复制解决方案时我遇到了这个问题我有这个错误

调试后



错误 3 资源文件  obj \\ \\ x64 \Debug \ MahmoudDarwish.Migrations.InitialCreate.resources的名称无效。项目元数据 %(FullPath)无法应用于路径  obj \ x64 \Debug \MahmoudDarwish.Migrations.InitialCreate.resources。 C:\Users\New\Desktop\inetweb\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\\ \\MahmoudDarwish_V2 \ MahmoudDarwish \ objj \ x64 \ Debug \MahmoudDarwish.Migrations.InitialCreate.resources MahmoudDarwish 





我尝试了什么:



我在google搜索中找不到任何解决方案

解决方案

< blockquote>我之前在复制解决方案时已经看过了。

问题出在一个(或多个)解决方案.csproj文件中。如果你看一下上面的路径,你会看到 MahmoudDarwish_V2.t 重复多次。这通常是因为csproj文件使用相对路径。路径也太长(266个字符)

您可以执行以下任一操作;

创建一个新项目&副本&将现有代码粘贴到其中(我使用记事本&打开并从各个文件中复制)



打开csproj文件并手动编辑它们(除非你勇敢,否则不推荐)



亲切的问候


help me please I'm stuck with that when I copied the solution I had this error
after debug

Error	3	Resource file "obj\x64\Debug\MahmoudDarwish.Migrations.InitialCreate.resources" has an invalid name. The item metadata "%(FullPath)" cannot be applied to the path "obj\x64\Debug\MahmoudDarwish.Migrations.InitialCreate.resources". C:\Users\New\Desktop\inetweb\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2.t\MahmoudDarwish_V2\MahmoudDarwish\obj\x64\Debug\MahmoudDarwish.Migrations.InitialCreate.resources	MahmoudDarwish



What I have tried:

I don't find any solution in google search

解决方案

I have seen this before when copying solutions.
The problem will be in one (or more) of the solutions .csproj files. If you look at the path above you will see MahmoudDarwish_V2.t repeated many times. This is typically because the csproj files use relative paths. The path is also too long (266 characters)
You can do either of the following;
Create a new project & copy & paste your existing code into it (I use Notepad & open & copy from the individual files)
OR
Open the csproj files and manually edit them (not really recommended unless you are brave)

Kind Regards


这篇关于复制解决方案MVC后调试出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆