Skip to content

Commit

Permalink
测试对接日志库
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Sep 18, 2024
1 parent 0095603 commit 0259b54
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Workbench/LurlalaychawbuWhalljaljemwo/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Application x:Class="LurlalaychawbuWhalljaljemwo.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:LurlalaychawbuWhalljaljemwo"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
13 changes: 13 additions & 0 deletions Workbench/LurlalaychawbuWhalljaljemwo/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System.Configuration;
using System.Data;
using System.Windows;

namespace LurlalaychawbuWhalljaljemwo;

/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}

10 changes: 10 additions & 0 deletions Workbench/LurlalaychawbuWhalljaljemwo/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly:ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net9.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="dotnetCampus.Logger" Version="1.2.0-alpha01" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

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}") = "LurlalaychawbuWhalljaljemwo", "LurlalaychawbuWhalljaljemwo.csproj", "{D3840A22-CC95-45FB-9B26-891317180EBB}"
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
{D3840A22-CC95-45FB-9B26-891317180EBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D3840A22-CC95-45FB-9B26-891317180EBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D3840A22-CC95-45FB-9B26-891317180EBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D3840A22-CC95-45FB-9B26-891317180EBB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
12 changes: 12 additions & 0 deletions Workbench/LurlalaychawbuWhalljaljemwo/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Window x:Class="LurlalaychawbuWhalljaljemwo.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
xmlns:local="clr-namespace:LurlalaychawbuWhalljaljemwo"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>

</Grid>
</Window>
31 changes: 31 additions & 0 deletions Workbench/LurlalaychawbuWhalljaljemwo/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System.Runtime.CompilerServices;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using dotnetCampus.Logging;

namespace LurlalaychawbuWhalljaljemwo;

/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();

var defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(100,2);
defaultInterpolatedStringHandler.AppendLiteral("123123123123123123");
defaultInterpolatedStringHandler.AppendFormatted(123);

Log.Debug($"Foo={typeof(MainWindow)}");
}
}

0 comments on commit 0259b54

Please sign in to comment.