Skip to content

Commit b12e230

Browse files
committed
Calc: Step 0: Add calc project to solution
1 parent fc62c9a commit b12e230

File tree

14 files changed

+1080
-1
lines changed

14 files changed

+1080
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<configuration>
4+
<startup>
5+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
6+
</startup>
7+
</configuration>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// // Copyright (c) Microsoft. All rights reserved.
2+
// // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
4+
using System.Windows;
5+
6+
namespace CalculatorDemo
7+
{
8+
/// <summary>
9+
/// Interaction logic for App.xaml
10+
/// </summary>
11+
public partial class App : Application
12+
{
13+
}
14+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Application x:Class="CalculatorDemo.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
StartupUri="MainWindow.xaml">
5+
<!--
6+
We add the below ResourceDictionary to our Application's Merged
7+
ResourceDictionaries so that our app will pick up the new styles. The
8+
pack URI
9+
(https://learn.microsoft.com/en-us/dotnet/desktop/wpf/app-development/pack-uris-in-wpf)
10+
below tells WPF to open the referenced assembly named
11+
"PresentationFramework.Fluent.dll" and read a Xaml resource from it.
12+
-->
13+
<Application.Resources>
14+
<ResourceDictionary>
15+
<ResourceDictionary.MergedDictionaries>
16+
<ResourceDictionary
17+
Source="pack://application:,,,/PresentationFramework.Fluent;component/Resources/Fluent.xaml" />
18+
</ResourceDictionary.MergedDictionaries>
19+
</ResourceDictionary>
20+
</Application.Resources>
21+
</Application>
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net9.0-windows</TargetFramework>
4+
<UseWpf>true</UseWpf>
5+
<EnableDefaultItems>false</EnableDefaultItems>
6+
<Platforms>x64;ARM64;x86</Platforms>
7+
</PropertyGroup>
8+
<PropertyGroup>
9+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
10+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
11+
<ProjectGuid>{5731865D-6685-47A7-8877-5DBAF39B54CD}</ProjectGuid>
12+
<OutputType>WinExe</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<RootNamespace>CalculatorDemo</RootNamespace>
15+
<AssemblyName>CalculatorDemo</AssemblyName>
16+
<FileAlignment>512</FileAlignment>
17+
<WarningLevel>4</WarningLevel>
18+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
19+
</PropertyGroup>
20+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
21+
<PlatformTarget>AnyCPU</PlatformTarget>
22+
<DebugSymbols>true</DebugSymbols>
23+
<DebugType>portable</DebugType>
24+
<Optimize>false</Optimize>
25+
<OutputPath>bin\Debug\</OutputPath>
26+
<DefineConstants>DEBUG;TRACE</DefineConstants>
27+
<ErrorReport>prompt</ErrorReport>
28+
<WarningLevel>4</WarningLevel>
29+
</PropertyGroup>
30+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
31+
<PlatformTarget>AnyCPU</PlatformTarget>
32+
<DebugSymbols>true</DebugSymbols>
33+
<DebugType>portable</DebugType>
34+
<Optimize>false</Optimize>
35+
<OutputPath>bin\Debug\</OutputPath>
36+
<DefineConstants>DEBUG;TRACE</DefineConstants>
37+
<ErrorReport>prompt</ErrorReport>
38+
<WarningLevel>4</WarningLevel>
39+
</PropertyGroup>
40+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
41+
<PlatformTarget>AnyCPU</PlatformTarget>
42+
<DebugSymbols>true</DebugSymbols>
43+
<DebugType>portable</DebugType>
44+
<Optimize>false</Optimize>
45+
<OutputPath>bin\Debug\</OutputPath>
46+
<DefineConstants>DEBUG;TRACE</DefineConstants>
47+
<ErrorReport>prompt</ErrorReport>
48+
<WarningLevel>4</WarningLevel>
49+
</PropertyGroup>
50+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
51+
<PlatformTarget>AnyCPU</PlatformTarget>
52+
<DebugType>pdbonly</DebugType>
53+
<Optimize>true</Optimize>
54+
<OutputPath>bin\Release\</OutputPath>
55+
<DefineConstants>TRACE</DefineConstants>
56+
<ErrorReport>prompt</ErrorReport>
57+
<WarningLevel>4</WarningLevel>
58+
</PropertyGroup>
59+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
60+
<PlatformTarget>AnyCPU</PlatformTarget>
61+
<DebugType>pdbonly</DebugType>
62+
<Optimize>true</Optimize>
63+
<OutputPath>bin\Release\</OutputPath>
64+
<DefineConstants>TRACE</DefineConstants>
65+
<ErrorReport>prompt</ErrorReport>
66+
<WarningLevel>4</WarningLevel>
67+
</PropertyGroup>
68+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69+
<PlatformTarget>AnyCPU</PlatformTarget>
70+
<DebugType>pdbonly</DebugType>
71+
<Optimize>true</Optimize>
72+
<OutputPath>bin\Release\</OutputPath>
73+
<DefineConstants>TRACE</DefineConstants>
74+
<ErrorReport>prompt</ErrorReport>
75+
<WarningLevel>4</WarningLevel>
76+
</PropertyGroup>
77+
<ItemGroup>
78+
</ItemGroup>
79+
<ItemGroup>
80+
<ApplicationDefinition Include="App.xaml">
81+
<Generator>MSBuild:Compile</Generator>
82+
<SubType>Designer</SubType>
83+
</ApplicationDefinition>
84+
<Page Include="MainWindow.xaml">
85+
<Generator>MSBuild:Compile</Generator>
86+
<SubType>Designer</SubType>
87+
</Page>
88+
<Compile Include="App.cs">
89+
<DependentUpon>App.xaml</DependentUpon>
90+
<SubType>Code</SubType>
91+
</Compile>
92+
<Compile Include="MainWindow.cs">
93+
<DependentUpon>MainWindow.xaml</DependentUpon>
94+
<SubType>Code</SubType>
95+
</Compile>
96+
</ItemGroup>
97+
<ItemGroup>
98+
<Compile Include="MyTextBox.cs" />
99+
<Compile Include="Properties\Resources.Designer.cs">
100+
<AutoGen>True</AutoGen>
101+
<DesignTime>True</DesignTime>
102+
<DependentUpon>Resources.resx</DependentUpon>
103+
</Compile>
104+
<Compile Include="Properties\Settings.Designer.cs">
105+
<AutoGen>True</AutoGen>
106+
<DependentUpon>Settings.settings</DependentUpon>
107+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
108+
</Compile>
109+
<EmbeddedResource Include="Properties\Resources.resx">
110+
<Generator>ResXFileCodeGenerator</Generator>
111+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
112+
</EmbeddedResource>
113+
<None Include="Properties\Settings.settings">
114+
<Generator>SettingsSingleFileGenerator</Generator>
115+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
116+
</None>
117+
<AppDesigner Include="Properties\" />
118+
</ItemGroup>
119+
<ItemGroup>
120+
<None Include="App.config" />
121+
</ItemGroup>
122+
<ItemGroup>
123+
<Resource Include="appicon.ico" />
124+
</ItemGroup>
125+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
126+
Other similar extension points exist, see Microsoft.Common.targets.
127+
<Target Name="BeforeBuild">
128+
</Target>
129+
<Target Name="AfterBuild">
130+
</Target>
131+
-->
132+
</Project>

0 commit comments

Comments
 (0)