microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
220 stars 10 forks source link

[SUGGESTION] Add .cs file references to .csprojs #903

Open zezba9000 opened 7 months ago

zezba9000 commented 7 months ago

Describe the feature you'd like

When I work on frameworks, many times code is stored in a Common/Shared folder. Then this code is referenced (not copied) by .NETFW and .NETCore, etc projects implementing them. Manually trying to add a bunch of code as links is very annoying in vscode. Configuring stuff in general is time consuming in vscode but this in particular can be time consuming when lots of files are involved & managing multiple platform specific .csprojs.

Alternatives considered

Hacking the .csproj file manually

Environment Information

Windows, macOS & Linux

timheuer commented 5 months ago

@zezba9000 Do you mean linked files?

zezba9000 commented 5 months ago

@timheuer Yes Linked/Referenced files external from project folder. I use this constantly in my framework I'm developing which shares code between different .csprojs

Example: https://github.com/reignstudios/Orbital-Framework/blob/master/Platforms/Lin/NetCore/Orbital.Host.X11/Orbital.Host.X11.csproj