簡體   English   中英

Visual Studio csproj結構-編譯元素包含對已刪除文件的引用

[英]Visual Studio csproj structure - compile element contains reference to a deleted file

我已經在解決方案中刪除了一個班級。
csproj文件仍然包含對其的引用。

如下

<ItemGroup>
    <Compile.. >
    <Compile Include="MyPath\MyDeletedFile.cs" />
    <Compile.. >
</ItemGroup>

為什么沒有刪除該文件?
如何刪除它? 謝謝。

只需從csproject文件中刪除該行即可。 那應該做魔術

右鍵單擊項目,選擇“卸載項目”

右鍵單擊項目,選擇“編輯” ...入侵...

右鍵單擊項目,選擇“重新加載”

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM