Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with ToFullPathInCorrectCase #651

Open
PetSerAl opened this issue Feb 10, 2025 · 0 comments
Open

Issue with ToFullPathInCorrectCase #651

PetSerAl opened this issue Feb 10, 2025 · 0 comments

Comments

@PetSerAl
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant