File tree 24 files changed +359
-32
lines changed
packaging/Microsoft.Dotnet.Wpf.ProjectTemplates/content
WpfApplication-VisualBasic
WpfClassLibrary-VisualBasic
WpfCustomControlLibrary-CSharp
WpfCustomControlLibrary-VisualBasic
WpfUserControlLibrary-CSharp
WpfUserControlLibrary-VisualBasic
24 files changed +359
-32
lines changed Original file line number Diff line number Diff line change 41
41
"description" : " Target net5.0"
42
42
}
43
43
],
44
- "replaces" : " net5.0 " ,
44
+ "replaces" : " FrameworkParameter " ,
45
45
"defaultValue" : " net5.0"
46
46
},
47
+ "UseWindowsDesktopSdk" : {
48
+ "type" : " computed" ,
49
+ "value" : " (Framework == \" netcoreapp3.1\" || Framework == \" netcoreapp3.0\" )"
50
+ },
47
51
"langVersion" : {
48
52
"type" : " parameter" ,
49
53
"datatype" : " text" ,
73
77
"path" : " MainWindow.xaml"
74
78
}
75
79
],
80
+ "sources" : [
81
+ {
82
+ "modifiers" : [
83
+ {
84
+ "condition" : " (UseWindowsDesktopSdk)" ,
85
+ "exclude" : [
86
+ " Company.WpfApplication1.csproj"
87
+ ],
88
+ "rename" : {
89
+ "Company.WpfApplication3x1.csproj" : " Company.WpfApplication1.csproj"
90
+ }
91
+ },
92
+ {
93
+ "condition" : " (!UseWindowsDesktopSdk)" ,
94
+ "exclude" : [
95
+ " Company.WpfApplication3x1.csproj"
96
+ ]
97
+ }
98
+ ]
99
+ }
100
+ ],
76
101
"defaultName" : " WpfApp1" ,
77
102
"postActions" : [
78
103
{
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop " >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<OutputType >WinExe</OutputType >
5
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >net5.0 </TargetFramework >
6
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter-windows </TargetFramework >
6
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride-windows </TargetFramework >
7
7
<RootNamespace Condition =" '$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'" >Company.WpfApplication1</RootNamespace >
8
8
<LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
9
9
<UseWPF >true</UseWPF >
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop" >
2
+
3
+ <PropertyGroup >
4
+ <OutputType >WinExe</OutputType >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter</TargetFramework >
6
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
7
+ <RootNamespace Condition =" '$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'" >Company.WpfApplication1</RootNamespace >
8
+ <LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
9
+ <UseWPF >true</UseWPF >
10
+ </PropertyGroup >
11
+
12
+ </Project >
Original file line number Diff line number Diff line change 41
41
"description" : " Target net5.0"
42
42
}
43
43
],
44
- "replaces" : " net5.0 " ,
44
+ "replaces" : " FrameworkParameter " ,
45
45
"defaultValue" : " net5.0"
46
46
},
47
+ "UseWindowsDesktopSdk" : {
48
+ "type" : " computed" ,
49
+ "value" : " (Framework == \" netcoreapp3.1\" || Framework == \" netcoreapp3.0\" )"
50
+ },
47
51
"langVersion" : {
48
52
"type" : " parameter" ,
49
53
"datatype" : " text" ,
73
77
"path" : " MainWindow.xaml"
74
78
}
75
79
],
80
+ "sources" : [
81
+ {
82
+ "modifiers" : [
83
+ {
84
+ "condition" : " (UseWindowsDesktopSdk)" ,
85
+ "exclude" : [
86
+ " Company.WpfApplication1.vbproj"
87
+ ],
88
+ "rename" : {
89
+ "Company.WpfApplication3x1.vbproj" : " Company.WpfApplication1.vbproj"
90
+ }
91
+ },
92
+ {
93
+ "condition" : " (!UseWindowsDesktopSdk)" ,
94
+ "exclude" : [
95
+ " Company.WpfApplication3x1.vbproj"
96
+ ]
97
+ }
98
+ ]
99
+ }
100
+ ],
76
101
"defaultName" : " WpfApp1" ,
77
102
"postActions" : [
78
103
{
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop " >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<OutputType >WinExe</OutputType >
5
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >net5.0 </TargetFramework >
6
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter-windows </TargetFramework >
6
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride-windows </TargetFramework >
7
7
<RootNamespace >Company.WpfApplication1</RootNamespace >
8
8
<LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
9
9
<UseWPF >true</UseWPF >
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop" >
2
+
3
+ <PropertyGroup >
4
+ <OutputType >WinExe</OutputType >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter</TargetFramework >
6
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
7
+ <RootNamespace >Company.WpfApplication1</RootNamespace >
8
+ <LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
9
+ <UseWPF >true</UseWPF >
10
+ </PropertyGroup >
11
+
12
+ <ItemGroup >
13
+ <Import Include =" System.Windows" />
14
+ <Import Include =" System.Windows.Controls" />
15
+ <Import Include =" System.Windows.Data" />
16
+ <Import Include =" System.Windows.Documents" />
17
+ <Import Include =" System.Windows.Input" />
18
+ <Import Include =" System.Windows.Media" />
19
+ <Import Include =" System.Windows.Media.Imaging" />
20
+ <Import Include =" System.Windows.Navigation" />
21
+ <Import Include =" System.Windows.Shapes" />
22
+ </ItemGroup >
23
+
24
+ </Project >
Original file line number Diff line number Diff line change 41
41
"description" : " Target net5.0"
42
42
}
43
43
],
44
- "replaces" : " net5.0 " ,
44
+ "replaces" : " FrameworkParameter " ,
45
45
"defaultValue" : " net5.0"
46
46
},
47
+ "UseWindowsDesktopSdk" : {
48
+ "type" : " computed" ,
49
+ "value" : " (Framework == \" netcoreapp3.1\" || Framework == \" netcoreapp3.0\" )"
50
+ },
47
51
"langVersion" : {
48
52
"type" : " parameter" ,
49
53
"datatype" : " text" ,
69
73
"path" : " Class1.cs"
70
74
}
71
75
],
76
+ "sources" : [
77
+ {
78
+ "modifiers" : [
79
+ {
80
+ "condition" : " (UseWindowsDesktopSdk)" ,
81
+ "exclude" : [
82
+ " Company.ClassLibrary1.csproj"
83
+ ],
84
+ "rename" : {
85
+ "Company.ClassLibrary3x1.csproj" : " Company.ClassLibrary1.csproj"
86
+ }
87
+ },
88
+ {
89
+ "condition" : " (!UseWindowsDesktopSdk)" ,
90
+ "exclude" : [
91
+ " Company.ClassLibrary3x1.csproj"
92
+ ]
93
+ }
94
+ ]
95
+ }
96
+ ],
72
97
"defaultName" : " WpfLibrary1" ,
73
98
"postActions" : [
74
99
{
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop " >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >net5.0 </TargetFramework >
5
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter-windows </TargetFramework >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride-windows </TargetFramework >
6
6
<RootNamespace Condition =" '$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'" >Company.ClassLibrary1</RootNamespace >
7
7
<LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
8
8
<UseWPF >true</UseWPF >
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop" >
2
+
3
+ <PropertyGroup >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter</TargetFramework >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
6
+ <RootNamespace Condition =" '$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'" >Company.ClassLibrary1</RootNamespace >
7
+ <LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
8
+ <UseWPF >true</UseWPF >
9
+ </PropertyGroup >
10
+
11
+ </Project >
Original file line number Diff line number Diff line change 41
41
"description" : " Target net5.0"
42
42
}
43
43
],
44
- "replaces" : " net5.0 " ,
44
+ "replaces" : " FrameworkParameter " ,
45
45
"defaultValue" : " net5.0"
46
46
},
47
+ "UseWindowsDesktopSdk" : {
48
+ "type" : " computed" ,
49
+ "value" : " (Framework == \" netcoreapp3.1\" || Framework == \" netcoreapp3.0\" )"
50
+ },
47
51
"langVersion" : {
48
52
"type" : " parameter" ,
49
53
"datatype" : " text" ,
69
73
"path" : " Class1.vb"
70
74
}
71
75
],
76
+ "sources" : [
77
+ {
78
+ "modifiers" : [
79
+ {
80
+ "condition" : " (UseWindowsDesktopSdk)" ,
81
+ "exclude" : [
82
+ " Company.ClassLibrary1.vbproj"
83
+ ],
84
+ "rename" : {
85
+ "Company.ClassLibrary3x1.vbproj" : " Company.ClassLibrary1.vbproj"
86
+ }
87
+ },
88
+ {
89
+ "condition" : " (!UseWindowsDesktopSdk)" ,
90
+ "exclude" : [
91
+ " Company.ClassLibrary3x1.vbproj"
92
+ ]
93
+ }
94
+ ]
95
+ }
96
+ ],
72
97
"defaultName" : " WpfLibrary1" ,
73
98
"postActions" : [
74
99
{
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop " >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
4
<RootNamespace >Company.ClassLibrary1</RootNamespace >
5
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >net5.0 </TargetFramework >
6
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter-windows </TargetFramework >
6
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride-windows </TargetFramework >
7
7
<RootNamespace >Company.ClassLibrary1</RootNamespace >
8
8
<LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
9
9
<UseWPF >true</UseWPF >
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop" >
2
+
3
+ <PropertyGroup >
4
+ <RootNamespace >Company.ClassLibrary1</RootNamespace >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter</TargetFramework >
6
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
7
+ <RootNamespace >Company.ClassLibrary1</RootNamespace >
8
+ <LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
9
+ <UseWPF >true</UseWPF >
10
+ </PropertyGroup >
11
+
12
+ </Project >
Original file line number Diff line number Diff line change 41
41
"description" : " Target net5.0"
42
42
}
43
43
],
44
- "replaces" : " net5.0 " ,
44
+ "replaces" : " FrameworkParameter " ,
45
45
"defaultValue" : " net5.0"
46
46
},
47
+ "UseWindowsDesktopSdk" : {
48
+ "type" : " computed" ,
49
+ "value" : " (Framework == \" netcoreapp3.1\" || Framework == \" netcoreapp3.0\" )"
50
+ },
47
51
"langVersion" : {
48
52
"type" : " parameter" ,
49
53
"datatype" : " text" ,
69
73
"path" : " CustomControl1.cs"
70
74
}
71
75
],
76
+ "sources" : [
77
+ {
78
+ "modifiers" : [
79
+ {
80
+ "condition" : " (UseWindowsDesktopSdk)" ,
81
+ "exclude" : [
82
+ " Company.WpfCustomControlLibrary.csproj"
83
+ ],
84
+ "rename" : {
85
+ "Company.WpfCustomControlLibrary3x.csproj" : " Company.WpfCustomControlLibrary.csproj"
86
+ }
87
+ },
88
+ {
89
+ "condition" : " (!UseWindowsDesktopSdk)" ,
90
+ "exclude" : [
91
+ " Company.WpfCustomControlLibrary3x.csproj"
92
+ ]
93
+ }
94
+ ]
95
+ }
96
+ ],
72
97
"defaultName" : " WpfCustomControlLibrary1" ,
73
98
"postActions" : [
74
99
{
Original file line number Diff line number Diff line change 1
- <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop " >
1
+ <Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >net5.0 </TargetFramework >
5
- <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter-windows </TargetFramework >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride-windows </TargetFramework >
6
6
<RootNamespace Condition =" '$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'" >Company.WpfCustomControlLibrary</RootNamespace >
7
7
<LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
8
8
<UseWPF >true</UseWPF >
Original file line number Diff line number Diff line change
1
+ <Project Sdk =" Microsoft.NET.Sdk.WindowsDesktop" >
2
+
3
+ <PropertyGroup >
4
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' == ''" >FrameworkParameter</TargetFramework >
5
+ <TargetFramework Condition =" '$(TargetFrameworkOverride)' != ''" >TargetFrameworkOverride</TargetFramework >
6
+ <RootNamespace Condition =" '$(name)' != '$(name{-VALUE-FORMS-}safe_namespace)'" >Company.WpfCustomControlLibrary</RootNamespace >
7
+ <LangVersion Condition =" '$(langVersion)' != ''" >$(ProjectLanguageVersion)</LangVersion >
8
+ <UseWPF >true</UseWPF >
9
+ </PropertyGroup >
10
+
11
+ </Project >
Original file line number Diff line number Diff line change 41
41
"description" : " Target net5.0"
42
42
}
43
43
],
44
- "replaces" : " net5.0 " ,
44
+ "replaces" : " FrameworkParameter " ,
45
45
"defaultValue" : " net5.0"
46
46
},
47
+ "UseWindowsDesktopSdk" : {
48
+ "type" : " computed" ,
49
+ "value" : " (Framework == \" netcoreapp3.1\" || Framework == \" netcoreapp3.0\" )"
50
+ },
47
51
"langVersion" : {
48
52
"type" : " parameter" ,
49
53
"datatype" : " text" ,
69
73
"path" : " CustomControl1.vb"
70
74
}
71
75
],
76
+ "sources" : [
77
+ {
78
+ "modifiers" : [
79
+ {
80
+ "condition" : " (UseWindowsDesktopSdk)" ,
81
+ "exclude" : [
82
+ " Company.WpfCustomControlLibrary.vbproj"
83
+ ],
84
+ "rename" : {
85
+ "Company.WpfCustomControlLibrary3x.vbproj" : " Company.WpfCustomControlLibrary.vbproj"
86
+ }
87
+ },
88
+ {
89
+ "condition" : " (!UseWindowsDesktopSdk)" ,
90
+ "exclude" : [
91
+ " Company.WpfCustomControlLibrary3x.vbproj"
92
+ ]
93
+ }
94
+ ]
95
+ }
96
+ ],
72
97
"defaultName" : " WpfCustomControlLibrary1" ,
73
98
"postActions" : [
74
99
{
You can’t perform that action at this time.
0 commit comments