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

Set build action of a file in solution explorer #1535

Open
HobDev opened this issue Oct 14, 2024 · 5 comments
Open

Set build action of a file in solution explorer #1535

HobDev opened this issue Oct 14, 2024 · 5 comments
Labels

Comments

@HobDev
Copy link

HobDev commented Oct 14, 2024

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
Copy link

@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?

@AbhitejJohn AbhitejJohn added needs-more-info Needing more information, waiting on OP area-sdk labels Oct 14, 2024
@HobDev
Copy link
Author

HobDev commented Oct 15, 2024

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
Copy link

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

Image

@HobDev
Copy link
Author

HobDev commented Nov 23, 2024

Is there any other way to set build action on the file in the solution explorer. I am getting run time error because the json file is null and as far as I know it is due to proper build action is not set. My development of the app is stopped due to this bug.

Copy link

@AbhitejJohn, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.

@github-actions github-actions bot removed the needs-more-info Needing more information, waiting on OP label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants