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
229 stars 12 forks source link

Set build action of a file in solution explorer #1535

Open HobDev opened 2 weeks ago

HobDev commented 2 weeks ago

Type: Feature Request

In visual studio for Windows I can set build action of any file from the properties window. I didn't find a way to set the build action in Visual Studio code.

Extension version: 1.11.14 VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Windows_NT x64 10.0.22631 Modes:

AbhitejJohn commented 2 weeks ago

@HobDev : Thanks for sharing your feedback. Just to clarify, could you please share a little more about your scenario and the kind of build actions you need?

HobDev commented 2 weeks ago

To read app configuration one can add appsettings.json file to the project as EmbeddedResource build action. The build action of Images is set to Maui Image by default. But if I add the image in a different folder I need to set the build action.

PrathamsGithub commented 2 weeks ago

@AbhitejJohn Can we have an option to set the build action of a file in C# Dev kit? Similar as Visual Studio

Image