jb mail: I found that the build action seems to be stored in the project file...
Hi jb mail,
You are right. The ?Build Action? setting for each file is stored in the project file. For example:
<ItemGroup>
<EmbeddedResource Include="Component\WebUserControl1.ascx" />
<Content Include="Component\WebUserControl2.ascx" />
<Content Include="Default.aspx" />
<Content Include="Web.config" />
</ItemGroup>
So that we can not export the Build Action setting for the item template. In addition, the default value for Build Action depends on the extension of the file you add to the solution. As far as I know, we can not change the default value because it is not in the Registry or a file we can modify.
Sincerely,
Benson Yu
Microsoft Online Community Support
Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.