Skip to content

Commit 0b98903

Browse files
authored
Adding Form subtype in templates (#3527) (#3594)
1 parent de3ff8a commit 0b98903

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

pkg/Microsoft.Dotnet.WinForms.ProjectTemplates/content/WinFormsApplication-CSharp/.template.config/template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
"path": "Form1.cs"
6262
}
6363
],
64+
"sources": [
65+
{
66+
"exclude": [ "**/[Bb]in/**", "**/[Oo]bj/**", ".template.config/**/*", "**/*.filelist", "**/*.lock.json" ]
67+
}
68+
],
6469
"defaultName": "WinFormsApp1",
6570
"postActions": [
6671
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<Compile Update="Form1.cs">
5+
<SubType>Form</SubType>
6+
</Compile>
7+
</ItemGroup>
8+
</Project>

0 commit comments

Comments
 (0)