dotnet/roslyn

MoveTypeCodeRefactoringProvider doesn't work for linked code

Offen

#39.733 geöffnet am 08.11.2019

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-IDEBugIDE-CodeStylehelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide