dotnet/roslyn

MoveTypeCodeRefactoringProvider doesn't work for linked code

Open

#39,733 建立於 2019年11月8日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)C# (20,414 star) (4,257 fork)batch import
Area-IDEBugIDE-CodeStylehelp wanted

描述

My csproj file refers to a particular file via:

  <ItemGroup>
    <Compile Include="..\..\Some\Other\Place\**\*.cs" LinkBase="FooBar" />
  </ItemGroup>

But when I try to use the refactor command to move classes in these files into their own .cs files, it crashes and the stack trace indicates it couldn't find the new file in "FooBar" directory, which doesn't actually exist. v16.2.3

貢獻者指南