Visual studio 2022 web site app_code folder shows no property option for .cs files ?

iqworks Information Quality Works 331 Reputation points
2023-08-19T20:25:40.68+00:00

I saw this about build actions in visual studio for vs2022 web site .cs build actions:
https://learn.microsoft.com/en-us/visualstudio/ide/build-actions?view=vs-2022

Set a build action

To set the build action for a file, open the file's properties in the Properties window by selecting the file in Solution Explorer and pressing Alt+Enter. Or, right-click on the file in Solution Explorer and choose Properties. In the Properties window, under the Advanced section, use the drop-down list next to Build Action to set a build action for the file.

User's image

 I also wanted to change the build action for the .cs pgms in my App_Code folders, but there are no
property option in vs2022?

User's image

 Thanks for any help or suggestions

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Tianyu Sun-MSFT 34,691 Reputation points Microsoft External Staff
    2023-08-21T05:52:02.7966667+00:00

    Hello @iqworks Information Quality Works ,

    Welcome to Microsoft Q&A forum.

    If the Properties Window isn’t shown in Visual Studio, you can manually open it by clicking selecting the .cs file => clicking View(VS menu bar) => Properties Window/Other Windows(sometimes the Properties Window option is hidden in Other Windows option) => Properties Window.

    User's image

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.