Initial Commit / Created Project
This commit is contained in:
parent
c8884fdef0
commit
83a71b807d
6
Project.Controller/Class1.cs
Normal file
6
Project.Controller/Class1.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace Project.Controller;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
14
Project.Controller/Project.Controller.csproj
Normal file
14
Project.Controller/Project.Controller.csproj
Normal file
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Project.Model\Project.Model.csproj" />
|
||||
<ProjectReference Include="..\Project.Persistence\Project.Persistence.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
6
Project.Model/Class1.cs
Normal file
6
Project.Model/Class1.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace Project.Model;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
9
Project.Model/Project.Model.csproj
Normal file
9
Project.Model/Project.Model.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
6
Project.Persistence/Class1.cs
Normal file
6
Project.Persistence/Class1.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace Project.Persistence;
|
||||
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
13
Project.Persistence/Project.Persistence.csproj
Normal file
13
Project.Persistence/Project.Persistence.csproj
Normal file
@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Project.Model\Project.Model.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
10
Project.View/App.axaml
Normal file
10
Project.View/App.axaml
Normal file
@ -0,0 +1,10 @@
|
||||
<Application xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="Project.View.App"
|
||||
RequestedThemeVariant="Default">
|
||||
<!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
|
||||
|
||||
<Application.Styles>
|
||||
<FluentTheme />
|
||||
</Application.Styles>
|
||||
</Application>
|
||||
23
Project.View/App.axaml.cs
Normal file
23
Project.View/App.axaml.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls.ApplicationLifetimes;
|
||||
using Avalonia.Markup.Xaml;
|
||||
|
||||
namespace Project.View;
|
||||
|
||||
public partial class App : Application
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
}
|
||||
|
||||
public override void OnFrameworkInitializationCompleted()
|
||||
{
|
||||
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||
{
|
||||
desktop.MainWindow = new MainWindow();
|
||||
}
|
||||
|
||||
base.OnFrameworkInitializationCompleted();
|
||||
}
|
||||
}
|
||||
9
Project.View/MainWindow.axaml
Normal file
9
Project.View/MainWindow.axaml
Normal file
@ -0,0 +1,9 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="Project.View.MainWindow"
|
||||
Title="Project.View">
|
||||
Welcome to Avalonia!
|
||||
</Window>
|
||||
11
Project.View/MainWindow.axaml.cs
Normal file
11
Project.View/MainWindow.axaml.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace Project.View;
|
||||
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
21
Project.View/Program.cs
Normal file
21
Project.View/Program.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using Avalonia;
|
||||
using System;
|
||||
|
||||
namespace Project.View;
|
||||
|
||||
class Program
|
||||
{
|
||||
// Initialization code. Don't use any Avalonia, third-party APIs or any
|
||||
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
|
||||
// yet and stuff might break.
|
||||
[STAThread]
|
||||
public static void Main(string[] args) => BuildAvaloniaApp()
|
||||
.StartWithClassicDesktopLifetime(args);
|
||||
|
||||
// Avalonia configuration, don't remove; also used by visual designer.
|
||||
public static AppBuilder BuildAvaloniaApp()
|
||||
=> AppBuilder.Configure<App>()
|
||||
.UsePlatformDetect()
|
||||
.WithInterFont()
|
||||
.LogToTrace();
|
||||
}
|
||||
27
Project.View/Project.View.csproj
Normal file
27
Project.View/Project.View.csproj
Normal file
@ -0,0 +1,27 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Avalonia" Version="11.2.6" />
|
||||
<PackageReference Include="Avalonia.Desktop" Version="11.2.6" />
|
||||
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.2.6" />
|
||||
<PackageReference Include="Avalonia.Fonts.Inter" Version="11.2.6" />
|
||||
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
||||
<PackageReference Include="Avalonia.Diagnostics" Version="11.2.6">
|
||||
<IncludeAssets Condition="'$(Configuration)' != 'Debug'">None</IncludeAssets>
|
||||
<PrivateAssets Condition="'$(Configuration)' != 'Debug'">All</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Project.Controller\Project.Controller.csproj" />
|
||||
<ProjectReference Include="..\Project.Model\Project.Model.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
18
Project.View/app.manifest
Normal file
18
Project.View/app.manifest
Normal file
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<!-- This manifest is used on Windows only.
|
||||
Don't remove it as it might cause problems with window transparency and embedded controls.
|
||||
For more details visit https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests -->
|
||||
<assemblyIdentity version="1.0.0.0" name="Project.View.Desktop"/>
|
||||
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- A list of the Windows versions that this application has been tested on
|
||||
and is designed to work with. Uncomment the appropriate elements
|
||||
and Windows will automatically select the most compatible environment. -->
|
||||
|
||||
<!-- Windows 10 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||
</application>
|
||||
</compatibility>
|
||||
</assembly>
|
||||
40
Project.sln
Normal file
40
Project.sln
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.31903.59
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project.View", "Project.View\Project.View.csproj", "{33395AB0-0F43-4F9D-BEBB-9246845F7655}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project.Model", "Project.Model\Project.Model.csproj", "{4CD95B18-E90F-4436-9E2C-886C182D194F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project.Controller", "Project.Controller\Project.Controller.csproj", "{F48C30CE-7852-45BC-B647-D6B13804CAD0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project.Persistence", "Project.Persistence\Project.Persistence.csproj", "{D52533E8-0F1A-4B13-8CC4-B0F5054422AF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{33395AB0-0F43-4F9D-BEBB-9246845F7655}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{33395AB0-0F43-4F9D-BEBB-9246845F7655}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{33395AB0-0F43-4F9D-BEBB-9246845F7655}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{33395AB0-0F43-4F9D-BEBB-9246845F7655}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4CD95B18-E90F-4436-9E2C-886C182D194F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4CD95B18-E90F-4436-9E2C-886C182D194F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4CD95B18-E90F-4436-9E2C-886C182D194F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4CD95B18-E90F-4436-9E2C-886C182D194F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F48C30CE-7852-45BC-B647-D6B13804CAD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F48C30CE-7852-45BC-B647-D6B13804CAD0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F48C30CE-7852-45BC-B647-D6B13804CAD0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F48C30CE-7852-45BC-B647-D6B13804CAD0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D52533E8-0F1A-4B13-8CC4-B0F5054422AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D52533E8-0F1A-4B13-8CC4-B0F5054422AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D52533E8-0F1A-4B13-8CC4-B0F5054422AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D52533E8-0F1A-4B13-8CC4-B0F5054422AF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Loading…
Reference in New Issue
Block a user