Skip to content

Commit

Permalink
Add web and console project.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcean committed Dec 6, 2023
1 parent bac5240 commit fdd58a2
Show file tree
Hide file tree
Showing 48 changed files with 7,631 additions and 80 deletions.
37 changes: 4 additions & 33 deletions Cli/Cli.csproj
Original file line number Diff line number Diff line change
@@ -1,43 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Common.props" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<AssemblyName>lwac</AssemblyName>
<RootNamespace>Trivial.Web</RootNamespace>
<Product>Trivial</Product>
<Authors>Kingcean Tuan</Authors>
<Company>Nanchang Jinchen Software Co., Ltd.</Company>
<Version>7.1.0</Version>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
<FileVersion>7.1.0.0</FileVersion>
<Description>CLI for local web app.</Description>
<Copyright>Copyright (c) 2022 Kingcean Tuan.</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/nuscien/winkit</PackageProjectUrl>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<RepositoryUrl>https://github.com/nuscien/winkit</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageIcon>logo.png</PackageIcon>
<PackageTags>cli lwa</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<ApplicationIcon>..\Materials\WinKit.ico</ApplicationIcon>
<LangVersion>10.0</LangVersion>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\Trivial.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\bin\Debug\</OutputPath>
<DocumentationFile>..\bin\$(Configuration)\$(TargetFramework)\lwac.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>..\bin\Release\</OutputPath>
<PropertyGroup>
<OutputPath>..\bin\$(Configuration)\</OutputPath>
<DocumentationFile>..\bin\$(Configuration)\$(TargetFramework)\lwac.xml</DocumentationFile>
</PropertyGroup>

Expand All @@ -51,16 +32,6 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Trivial" Version="7.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'net8.0' AND '$(TargetFramework)' != 'net9.0'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="README.md" />
<None Include="..\LICENSE" Pack="true" PackagePath="LICENSE" />
<None Include="..\Materials\logo.png" Pack="true" PackagePath="logo.png" />
</ItemGroup>

Expand Down
40 changes: 40 additions & 0 deletions Common.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Product>Trivial</Product>
<Authors>Kingcean Tuan</Authors>
<Company>Nanchang Jinchen Software Co., Ltd.</Company>
<Version>7.2.0</Version>
<AssemblyVersion>7.2.0.0</AssemblyVersion>
<FileVersion>7.2.0.0</FileVersion>
<Copyright>Copyright (c) 2018 Kingcean Tuan.</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/nuscien/trivial</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<LangVersion>12.0</LangVersion>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\Trivial.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net481' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'net461'">
<DefineConstants>NETOLDVER</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Trivial" Version="7.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net481' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'net461'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net481' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'net462' OR '$(TargetFramework)' == 'net461'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="README.md" />
<None Include="..\LICENSE" Pack="true" PackagePath="LICENSE" />
</ItemGroup>
</Project>
37 changes: 5 additions & 32 deletions Common/Common.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\Common.props" />

<PropertyGroup>
<TargetFrameworks>net7.0-windows10.0.17763.0;net7.0-windows10.0.19041.0;net7.0-windows10.0.22000.0;net6.0-windows10.0.17763.0;net6.0-windows10.0.19041.0;net6.0-windows10.0.22000.0</TargetFrameworks>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
Expand All @@ -7,38 +10,15 @@
<PackageId>Trivial.WindowsKit</PackageId>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<UseWinUI>true</UseWinUI>
<Product>Trivial</Product>
<Authors>Kingcean Tuan</Authors>
<Company>Nanchang Jinchen Software Co., Ltd.</Company>
<Version>7.1.0</Version>
<AssemblyVersion>7.1.0.0</AssemblyVersion>
<FileVersion>7.1.0.0</FileVersion>
<Description>Some advanced visual controls and utilities for Windows app.</Description>
<Copyright>Copyright (c) 2022 Kingcean Tuan.</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/nuscien/winkit</PackageProjectUrl>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<RepositoryUrl>https://github.com/nuscien/winkit</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageIcon>logo.png</PackageIcon>
<PackageTags>ui tiles lwa</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<ApplicationIcon>..\Materials\WinKit.ico</ApplicationIcon>
<LangVersion>10.0</LangVersion>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\Trivial.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\bin\Debug\</OutputPath>
<DocumentationFile>..\bin\$(Configuration)\$(TargetFramework)\Trivial.WindowsKit.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<OutputPath>..\bin\Release\</OutputPath>
<PropertyGroup>
<OutputPath>..\bin\$(Configuration)\</OutputPath>
<DocumentationFile>..\bin\$(Configuration)\$(TargetFramework)\Trivial.WindowsKit.xml</DocumentationFile>
</PropertyGroup>

Expand All @@ -54,11 +34,6 @@
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231115000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.2428" />
<PackageReference Include="Trivial" Version="7.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'net8.0' AND '$(TargetFramework)' != 'net9.0'">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand All @@ -81,8 +56,6 @@

<ItemGroup>
<None Include="..\FileBrowser\src\localWebApp.d.ts" Link="localWebApp.d.ts" />
<None Include="README.md" Pack="true" PackagePath="README.md" />
<None Include="..\LICENSE" Pack="true" PackagePath="LICENSE" />
<None Include="..\Materials\logo.png" Pack="true" PackagePath="logo.png" />
</ItemGroup>

Expand Down
Loading

0 comments on commit fdd58a2

Please sign in to comment.