Well, sometimes I have to experiment before publishing.
I changed my .csproj file and just went ahead and tried wild card:
Views\*\*.aspx
... and he did a great job. I posted a fragment of my reconfigured project file below. One note: adding a new view puts it in the “always content” category at the top of the snippet below. You can live with the presence of .aspx files even if the views are embedded as resources (not a problem for me), or you can move them from the first ItemGroup below to the "Other" section each time manually.
<ItemGroup> <-- Always included as content <Content Include="Global.asax" /> <Content Include="Web.config"> <SubType>Designer</SubType> </Content> <Content Include="Web.Debug.config"> <DependentUpon>Web.config</DependentUpon> </Content> <Content Include="Web.Release.config"> <DependentUpon>Web.config</DependentUpon> </Content> </ItemGroup> <Choose> <--- Only added to assembly in "Plugin Mode" <When Condition=" '$(Configuration)'=='Plugin' "> <ItemGroup> <EmbeddedResource Include="Views\*\*.aspx"> </EmbeddedResource> </ItemGroup> </When> <Otherwise> <ItemGroup> <Content Include="Views\Comment\Create.aspx" /> <Content Include="Views\Record\Create.aspx" /> </ItemGroup> </Otherwise> </Choose>
source share