Browse Source

格式化 .csproj 文件

dev
王厅 2 months ago
parent
commit
57e5568578
  1. 42
      Apewer.Source/Apewer.Source.csproj
  2. 36
      Apewer.Web/Apewer.Web.csproj
  3. 126
      Apewer.Windows/Apewer.Windows.csproj

42
Apewer.Source/Apewer.Source.csproj

@ -1,29 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Apewer\Apewer.props" /> <Import Project="..\Apewer\Apewer.props" />
<PropertyGroup> <PropertyGroup>
<DefineConstants>SOURCE;$(DefineConstants);</DefineConstants> <DefineConstants>SOURCE;$(DefineConstants);</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)'=='netstandard2.0'">MYSQL_6_10;$(DefineConstants);</DefineConstants> <DefineConstants Condition="'$(TargetFramework)'=='netstandard2.0'">MYSQL_6_10;$(DefineConstants);</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)'=='net40'">MYSQL_6_9;$(DefineConstants);</DefineConstants> <DefineConstants Condition="'$(TargetFramework)'=='net40'">MYSQL_6_9;$(DefineConstants);</DefineConstants>
<TargetFrameworks>netstandard2.0;net40;net20</TargetFrameworks> <TargetFrameworks>netstandard2.0;net40;net20</TargetFrameworks>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Apewer\Apewer.csproj" /> <ProjectReference Include="..\Apewer\Apewer.csproj" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.110" PrivateAssets="all" /> <PackageReference Include="System.Data.SQLite.Core" Version="1.0.110" PrivateAssets="all" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'"> <ItemGroup Condition="'$(TargetFramework)'=='netstandard2.0'">
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.4.1" /> <PackageReference Include="System.Configuration.ConfigurationManager" Version="4.4.1" />
<PackageReference Include="System.Data.SqlClient" Version="4.4.3" /> <PackageReference Include="System.Data.SqlClient" Version="4.4.3" />
<PackageReference Include="System.Security.Permissions" Version="4.4.1" /> <PackageReference Include="System.Security.Permissions" Version="4.4.1" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.4.0" /> <PackageReference Include="System.Text.Encoding.CodePages" Version="4.4.0" />
</ItemGroup> </ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net40'"> <ItemGroup Condition="'$(TargetFramework)'=='net40'">
<Reference Include="System.Configuration" /> <Reference Include="System.Configuration" />
<Reference Include="System.Transactions" /> <Reference Include="System.Transactions" />
</ItemGroup> </ItemGroup>
</Project> </Project>

36
Apewer.Web/Apewer.Web.csproj

@ -1,25 +1,25 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Apewer\Apewer.props" /> <Import Project="..\Apewer\Apewer.props" />
<PropertyGroup> <PropertyGroup>
<DefineConstants>WEB;$(DefineConstants);</DefineConstants> <DefineConstants>WEB;$(DefineConstants);</DefineConstants>
<TargetFrameworks>netcoreapp3.1;net40;net20</TargetFrameworks> <TargetFrameworks>netcoreapp3.1;net40;net20</TargetFrameworks>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="FavIcon.ico" /> <EmbeddedResource Include="FavIcon.ico" />
<EmbeddedResource Include="WebConfig40.xml" /> <EmbeddedResource Include="WebConfig40.xml" />
<EmbeddedResource Include="WebConfigStd.xml" /> <EmbeddedResource Include="WebConfigStd.xml" />
<EmbeddedResource Include="WebConfig461.xml" /> <EmbeddedResource Include="WebConfig461.xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Apewer\Apewer.csproj" /> <ProjectReference Include="..\Apewer\Apewer.csproj" />
<FrameworkReference Condition="'$(TargetFramework)' == 'netcoreapp3.1'" Include="Microsoft.AspNetCore.App" /> <FrameworkReference Condition="'$(TargetFramework)' == 'netcoreapp3.1'" Include="Microsoft.AspNetCore.App" />
<Reference Condition="'$(TargetFramework)' == 'net461'" Include="System.Web" /> <Reference Condition="'$(TargetFramework)' == 'net461'" Include="System.Web" />
<Reference Condition="'$(TargetFramework)' == 'net40'" Include="System.Web" /> <Reference Condition="'$(TargetFramework)' == 'net40'" Include="System.Web" />
<Reference Condition="'$(TargetFramework)' == 'net20'" Include="System.Web" /> <Reference Condition="'$(TargetFramework)' == 'net20'" Include="System.Web" />
</ItemGroup> </ItemGroup>
</Project> </Project>

126
Apewer.Windows/Apewer.Windows.csproj

@ -3,77 +3,77 @@
<Import Project="..\Apewer\Apewer.props" /> <Import Project="..\Apewer\Apewer.props" />
<PropertyGroup> <PropertyGroup>
<NoWarn>CS0108;CS0612</NoWarn> <NoWarn>CS0108;CS0612</NoWarn>
<TargetFrameworks>net461;net40;net20;netcoreapp3.1</TargetFrameworks> <TargetFrameworks>net461;net40;net20;netcoreapp3.1</TargetFrameworks>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Apewer\Apewer.csproj" /> <ProjectReference Include="..\Apewer\Apewer.csproj" />
</ItemGroup> </ItemGroup>
<!-- .NET Core 3.1 --> <!-- .NET Core 3.1 -->
<PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'"> <PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
<!-- <UseWPF>true</UseWPF> --> <!-- <UseWPF>true</UseWPF> -->
<!-- <UseWindowsForms>true</UseWindowsForms> --> <!-- <UseWindowsForms>true</UseWindowsForms> -->
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'"> <ItemGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
<!-- <FrameworkReference Include="Microsoft.AspNetCore.App" /> --> <!-- <FrameworkReference Include="Microsoft.AspNetCore.App" /> -->
<FrameworkReference Include="Microsoft.WindowsDesktop.App" /> <FrameworkReference Include="Microsoft.WindowsDesktop.App" />
</ItemGroup> </ItemGroup>
<!-- .NET Framework 4.6.1 --> <!-- .NET Framework 4.6.1 -->
<ItemGroup Condition="'$(TargetFramework)'=='net461'"> <ItemGroup Condition="'$(TargetFramework)'=='net461'">
<Reference Include="CustomMarshalers" /> <Reference Include="CustomMarshalers" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="PresentationCore" /> <Reference Include="PresentationCore" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Configuration" /> <Reference Include="System.Configuration" />
<Reference Include="System.Design" /> <Reference Include="System.Design" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Management" /> <Reference Include="System.Management" />
<Reference Include="System.Runtime.Caching" /> <Reference Include="System.Runtime.Caching" />
<Reference Include="System.Security" /> <Reference Include="System.Security" />
<Reference Include="System.Speech" /> <Reference Include="System.Speech" />
<Reference Include="System.Transactions" /> <Reference Include="System.Transactions" />
<Reference Include="System.Web" /> <Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="WindowsBase" /> <Reference Include="WindowsBase" />
</ItemGroup> </ItemGroup>
<!-- .NET Framework 4.0 --> <!-- .NET Framework 4.0 -->
<ItemGroup Condition="'$(TargetFramework)'=='net40'"> <ItemGroup Condition="'$(TargetFramework)'=='net40'">
<Reference Include="CustomMarshalers" /> <Reference Include="CustomMarshalers" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="PresentationCore" /> <Reference Include="PresentationCore" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Configuration" /> <Reference Include="System.Configuration" />
<Reference Include="System.Design" /> <Reference Include="System.Design" />
<Reference Include="System.Drawing" /> <Reference Include="System.Drawing" />
<Reference Include="System.Management" /> <Reference Include="System.Management" />
<Reference Include="System.Runtime.Caching" /> <Reference Include="System.Runtime.Caching" />
<Reference Include="System.Security" /> <Reference Include="System.Security" />
<Reference Include="System.Speech" /> <Reference Include="System.Speech" />
<Reference Include="System.Transactions" /> <Reference Include="System.Transactions" />
<Reference Include="System.Web" /> <Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
<Reference Include="WindowsBase" /> <Reference Include="WindowsBase" />
</ItemGroup> </ItemGroup>
<!-- .NET Framework 2.0 --> <!-- .NET Framework 2.0 -->
<ItemGroup Condition="'$(TargetFramework)'=='net20'"> <ItemGroup Condition="'$(TargetFramework)'=='net20'">
<Reference Include="CustomMarshalers" /> <Reference Include="CustomMarshalers" />
<Reference Include="System.Configuration" /> <Reference Include="System.Configuration" />
<Reference Include="System.Design" /> <Reference Include="System.Design" />
<Reference Include="System.Management" /> <Reference Include="System.Management" />
<Reference Include="System.Security" /> <Reference Include="System.Security" />
<Reference Include="System.Transactions" /> <Reference Include="System.Transactions" />
<Reference Include="System.Web" /> <Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Windows.Forms" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="Tray\MainForm.cs"> <Compile Update="Tray\MainForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
</Project> </Project>
Loading…
Cancel
Save