Could not find file 'obj\Debug\OldProjectName.csproj.FileListAbsolute.txt

后端 未结 10 973
星月不相逢
星月不相逢 2021-02-05 05:00

I\'m trying to publish project (tools vs2010), but cannot all the time getting the error below. I paste to my projects files from another project and then I changed namespace (O

相关标签:
10条回答
  • 2021-02-05 05:31

    Check if the folders "bin" and "obj" are checked-in to source control, if so delete those two folders in source control. There is no need to check-in these two folders to source folders. Also make sure that these folders "obj" and "bin" are deleted from your hard disk, they will be created again after a build.

    Hope this will fix your issue.

    0 讨论(0)
  • 2021-02-05 05:33
    1. Open your .csproj file in notepad

    2. Find "obj\Debug\OldProjectName.csproj.FileListAbsolute.txt"

    3. Remove that line and save it
    4. Open your project and try to publish it and this time you will be succeeded.

    Note: if you are getting any more file like .pdb remove that as well.
    Hope it will help you

    0 讨论(0)
  • 2021-02-05 05:36

    Like many others these files were read only and needed to be deleted or actually able to be overwritten by VS. However, as may be the case for many others, the problem was because these files were checked in to source control. Your bin and obj folders should not be in source control. Mark them for delete and submit the changelist.

    One exception to the rule is for the bin folder could be dll files that are not .Net compatible. Such as a C/C++ dll that you are using through a .Net wrapper dll. I mark them as content so that they get published and check them into source control.

    0 讨论(0)
  • 2021-02-05 05:38

    I too had this problem. I resolved this by deleting files inside project bin folder (.dll and .pdb) and closed and re-opened VS .

    0 讨论(0)
提交回复
热议问题