MSB
MSB

Reputation: 31

Visual Studio 2022 missing options from Build Action property

While working on a c# winforms app today in VS2022 I noticed I no longer have any items in the dropdowns for Build Action and Copy to Output Directory.

enter image description here

enter image description here

I've tried rebooting my computer and just Visual Studio and no luck. These worked before.

Upvotes: 2

Views: 789

Answers (2)

Ans shakeel
Ans shakeel

Reputation: 1

I resolved this issue by following steps:

  1. Navigate and Select the Resouce on which you want to set build action
  2. Right-Click and Select 'Include in Project'
  3. Go to the properties of the resource and you can see the option to set the Build Action.

Thanks

Upvotes: -1

MSB
MSB

Reputation: 31

As suggested, I ran the repair in VS Installer. After it finished, my options returned. The "repair" also installed an available update as well. I can't say for sure which actually fixed the issue. The update was from 17.2 to 17.4.

Thanks for the help.

Upvotes: 1

Related Questions