<Project Sdk="Microsoft.NET.Sdk">

    <PropertyGroup>
        <TargetFrameworks>net8.0-windows;net6.0-windows;net472;net40</TargetFrameworks>
        <LangVersion>12.0</LangVersion>
        <ProjectGuid>{AB1CB247-E20B-4CBE-B269-570ADDD96C53}</ProjectGuid>
        <UseWindowsForms>true</UseWindowsForms>
        <RootNamespace>Sunny.UI</RootNamespace>
        <Description>SunnyUI.Net 是基于.Net Framework4.0+、.Net6、.Net8 框架的 C# WinForm 开源控件库、工具类库、扩展类库、多页面开发框架。</Description>
        <Copyright>CopyRight © SunnyUI.Net 2012-2024</Copyright>
        <PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
        <Version>3.7.0.0</Version>
        <Authors>ShenYonghua</Authors>
        <Company>SunnyUI.Net</Company>
        <PackageId>SunnyUI</PackageId>
        <PackageProjectUrl>https://gitee.com/yhuse/SunnyUI</PackageProjectUrl>
        <RepositoryUrl>https://gitee.com/yhuse/SunnyUI</RepositoryUrl>
        <PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
        <PackageIcon>SunnyUI.png</PackageIcon>
        <SignAssembly>False</SignAssembly>
        <AssemblyOriginatorKeyFile>D:\MyDocuments\Key\SunnyUI.pfx</AssemblyOriginatorKeyFile>
        <DelaySign>False</DelaySign>
        <GeneratePackageOnBuild>False</GeneratePackageOnBuild>
        <GenerateDocumentationFile>False</GenerateDocumentationFile>
		<PackageReadmeFile>README.md</PackageReadmeFile>
    </PropertyGroup>

    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
        <OutputPath>..\Bin\</OutputPath>
        <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
        <DocumentationFile></DocumentationFile>
    </PropertyGroup>

    <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
        <OutputPath>..\Bin\</OutputPath>
        <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
        <DocumentationFile></DocumentationFile>
    </PropertyGroup>

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

    <ItemGroup>
        <EmbeddedResource Include="Font\ElegantIcons.ttf" />
        <EmbeddedResource Include="Font\fa-brands-400.ttf" />
        <EmbeddedResource Include="Font\fa-regular-400.ttf" />
        <EmbeddedResource Include="Font\fa-solid-900.ttf" />
        <EmbeddedResource Include="Font\FontAwesome.ttf" />
        <EmbeddedResource Include="Font\MaterialIcons-Regular.ttf" />
        <EmbeddedResource Include="Font\sa-digital-number.ttf" />
    </ItemGroup>

    <ItemGroup Condition="'$(TargetFramework)' == 'net40'">
        <Reference Include="System.Windows.Forms" />
        <Reference Include="System.Web.Extensions" />
        <Reference Include="System.Design" />
    </ItemGroup>

    <ItemGroup Condition="'$(TargetFramework)' == 'net472'">
        <Reference Include="System.Windows.Forms" />
        <Reference Include="System.Web.Extensions" />
        <Reference Include="System.Design" />
    </ItemGroup>

    <ItemGroup>
      <PackageReference Include="SunnyUI.Common" Version="3.7.0" />
    </ItemGroup>

    <ItemGroup>
        <Compile Update="Forms\UIForm2.cs" />
        <Compile Update="Properties\Resources.Designer.cs">
            <DesignTime>True</DesignTime>
            <AutoGen>True</AutoGen>
            <DependentUpon>Resources.resx</DependentUpon>
        </Compile>
        <Compile Update="Properties\Settings.Designer.cs">
          <DesignTimeSharedInput>True</DesignTimeSharedInput>
          <AutoGen>True</AutoGen>
          <DependentUpon>Settings.settings</DependentUpon>
        </Compile>
    </ItemGroup>

    <ItemGroup>
        <EmbeddedResource Update="Properties\Resources.resx">
            <Generator>ResXFileCodeGenerator</Generator>
            <LastGenOutput>Resources.Designer.cs</LastGenOutput>
        </EmbeddedResource>
    </ItemGroup>

    <ItemGroup>
      <None Update="Properties\Settings.settings">
        <Generator>SettingsSingleFileGenerator</Generator>
        <LastGenOutput>Settings.Designer.cs</LastGenOutput>
      </None>
    </ItemGroup>

</Project>
