I have my work folder on subst drive:
subst.exe M: C:\Some\Other\Path
Suppose I have M:\Project\src\Project.csproj and I want to create M:\Project\Project.sln. I expect, that solution file will contain relative path src\Project.csproj, but due to usage GetFinalPathNameByHandle here:
|
StringBuilder stringBuilder = new StringBuilder(GetFinalPathNameByHandle(stream.SafeFileHandle, null, 0, 0)); |
|
|
|
GetFinalPathNameByHandle(stream.SafeFileHandle, stringBuilder, stringBuilder.Capacity, 0); |
the path expanded to
C:\Some\Other\Path\Project\src\Project.csproj. That prevent
SlnGen to see it as relative to solution file
M:\Project\Project.sln and full path included in solution. That in turn prevent VS Code C# extension to recognize
M:\Project\src\Project.csproj as part of solution and provide proper syntax highlighting, completion, etc.
I have my work folder on
substdrive:Suppose I have
M:\Project\src\Project.csprojand I want to createM:\Project\Project.sln. I expect, that solution file will contain relative pathsrc\Project.csproj, but due to usageGetFinalPathNameByHandlehere:slngen/src/Shared/ExtensionMethods.Shared.cs
Lines 42 to 44 in 7b1ac24
the path expanded to
C:\Some\Other\Path\Project\src\Project.csproj. That preventSlnGento see it as relative to solution fileM:\Project\Project.slnand full path included in solution. That in turn prevent VS Code C# extension to recognizeM:\Project\src\Project.csprojas part of solution and provide proper syntax highlighting, completion, etc.