-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
103 additions
and
154 deletions.
There are no files selected for viewing
145 changes: 49 additions & 96 deletions
145
src/Antelcat.Wpf.I18N.Demo.Framework/Antelcat.Wpf.I18N.Demo.Framework.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{A175A416-9532-4102-90B4-02F807EE1F94}</ProjectGuid> | ||
<OutputType>WinExe</OutputType> | ||
<RootNamespace>Antelcat.Wpf.I18N.Demo.Framework</RootNamespace> | ||
<AssemblyName>Antelcat.Wpf.I18N.Demo.Framework</AssemblyName> | ||
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion> | ||
<LangVersion>11</LangVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<WarningLevel>4</WarningLevel> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
<Deterministic>true</Deterministic> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xaml"> | ||
<RequiredTargetFramework>4.0</RequiredTargetFramework> | ||
</Reference> | ||
<Reference Include="WindowsBase" /> | ||
<Reference Include="PresentationCore" /> | ||
<Reference Include="PresentationFramework" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ApplicationDefinition Include="App.xaml"> | ||
<Generator>MSBuild:Compile</Generator> | ||
</ApplicationDefinition> | ||
<Compile Include="App.xaml.cs"> | ||
<DependentUpon>App.xaml</DependentUpon> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="App.config" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="..\Antelcat.Wpf.I18N.Demo.Shared\Properties\Resources.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<Link>Properties\Resources.resx</Link> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="..\Antelcat.Wpf.I18N.Demo.Shared\Properties\Resources.zh.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
<Link>Properties\Resources.zh.resx</Link> | ||
</EmbeddedResource> | ||
<Compile Include="..\Antelcat.Wpf.I18N.Demo.Shared\Properties\Resources.Designer.cs"> | ||
<Link>Properties\Resources.Designer.cs</Link> | ||
</Compile> | ||
<ProjectReference OutputItemType="Analyzer" Include="..\Antelcat.Wpf.I18N.SourceGenerators\Antelcat.Wpf.I18N.SourceGenerators.csproj"> | ||
<Project>{51d7777a-1f56-4f09-8581-7f546b2f1817}</Project> | ||
<Name>Antelcat.Wpf.I18N.SourceGenerators</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\Antelcat.Wpf.I18N\Antelcat.Wpf.I18N.csproj"> | ||
<Project>{87ae0560-b337-4958-97b4-7928c6c6962c}</Project> | ||
<Name>Antelcat.Wpf.I18N</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup /> | ||
<ItemGroup> | ||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" /> | ||
<PackageReference Include="WPF-UI" Version="2.0.3" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="..\Antelcat.Wpf.I18N.Demo.Shared\Antelcat.Wpf.I18N.Demo.Shared.projitems" Label="Shared" /> | ||
</Project> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net462</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<UseWPF>true</UseWPF> | ||
<AssemblyVersion>1.0.0</AssemblyVersion> | ||
<LangVersion>preview</LangVersion> | ||
<FileVersion>1.0.0</FileVersion> | ||
<RootNamespace>Antelcat.Wpf.I18N.Demo</RootNamespace> | ||
<ApplicationIcon>../Icon.ico</ApplicationIcon> | ||
<Company>Antelcat</Company> | ||
<Product>Antelcat.Wpf.I18N.Demo-1.0.0</Product> | ||
<AssemblyName>Antelcat.Wpf.I18N.Demo</AssemblyName> | ||
<PackageId>Antelcat.Wpf.I18N.Demo</PackageId> | ||
<Authors>Antelcat</Authors> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Antelcat.Wpf.I18N" Version="1.0.1"/> | ||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2"/> | ||
<PackageReference Include="WPF-UI" Version="2.1.0"/> | ||
</ItemGroup> | ||
|
||
|
||
<ItemGroup> | ||
<EmbeddedResource Include="..\Antelcat.Wpf.I18N.Demo.Shared\Properties\Resources.resx"> | ||
<Link>Properties\Resources.resx</Link> | ||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="..\Antelcat.Wpf.I18N.Demo.Shared\Properties\Resources.zh.resx"> | ||
<Link>Properties\Resources.zh.resx</Link> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
|
||
<ItemGroup> | ||
<Compile Include="..\Antelcat.Wpf.I18N.Demo.Shared\Properties\Resources.Designer.cs"> | ||
<Link>Properties\Resources.Designer.cs</Link> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
|
||
<Import Project="..\Antelcat.Wpf.I18N.Demo.Shared\Antelcat.Wpf.I18N.Demo.Shared.projitems" Label="Shared"/> | ||
|
||
</Project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Configuration; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using Antelcat.Wpf.I18N.Demo.Models; | ||
using Antelcat.Wpf.I18N.Demo.Windows; | ||
|
||
namespace Antelcat.Wpf.I18N.Demo.Framework | ||
namespace Antelcat.Wpf.I18N.Demo | ||
{ | ||
/// <summary> | ||
/// App.xaml 的交互逻辑 | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
public partial class App | ||
{ | ||
|
||
protected override void OnStartup(StartupEventArgs e) | ||
{ | ||
base.OnStartup(e); | ||
new MainWindow().Show(); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.