Edit Unix-related code with Visual Studio on Windows #105550
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Just realized I could simply open the second VS instance targeting the .sln in Btw Rider does show both of these files. However it has other issues like completely ignoring xUnit attributes from microsoft extensions and its code analysis doesn't like NET9. |
Beta Was this translation helpful? Give feedback.
-
VS only shows: files under current directory, and files get included in current platform. It always loads the Windows platform only. Opening the In some old VS versions, it can't show Windows code from Common either, because the target platform condition wasn't applied to shproj.
Why is it blocking you? It should be purely interop code.
The build configuration is very complex and very, very specialized for dotnet/runtime. Project-based IDE aren't well-prepared for the specialization. We do use folder-based editor (VSCode) when touching interop code. |
Beta Was this translation helpful? Give feedback.
VS only shows: files under current directory, and files get included in current platform. It always loads the Windows platform only. Opening the
csproj
file, you can see conditions likeCondition="'$(TargetPlatformIdentifier)' == 'windows'"
.In some old VS versions, it can't show Windows code from Common either, because the target platform condition wasn't applied to shproj.
Why is it blocking you? It should be purely interop code.
The build configuration is very complex and very, very speci…