build: 更新构建条件

This commit is contained in:
Diego
2025-12-05 10:04:41 +08:00
parent 9dd20a4241
commit 9aa145a71b
10 changed files with 45 additions and 37 deletions

View File

@@ -13,14 +13,14 @@
NU1510;SYSLIB5007;CS8603;CS8618;CS1591;CS8625;CS8602;CS8604;CS8600;CS8601;CS8714;CS8619;CS8629;CS8765;CS8634;CS8621;CS8767;CS8633;CS8620;CS8610;CS8631;CS8605;CS8622;CS8613;NU5100;NU5104;NU1903;NU1902;CA1863;CA1812;CA1805;CA1515;CA1508;CA1819;CA1852;CA5394;CA1822;CA1815;CA1813;CA2000;CA5358;CA5384;CA5400;CA5401;CA1814;CA1835;CA5392;CA5350;CA2100;CA1848;CA1810;CA1513;CA5351;CA1510;CA1512;CA1823;RCS1102;RCS1194;NETSDK1206
</NoWarn>
<TouchSocketVersion>4.0.1</TouchSocketVersion>
<AdminVersion>12.4.12</AdminVersion>
<FoundationVersion>12.4.11</FoundationVersion>
<PluginVersion>12.4.12</PluginVersion>
<ProPluginVersion>12.4.10</ProPluginVersion>
<Version>12.4.14</Version>
<AdminVersion>12.4.13</AdminVersion>
<FoundationVersion>12.4.12</FoundationVersion>
<PluginVersion>12.4.13</PluginVersion>
<ProPluginVersion>12.4.11</ProPluginVersion>
<Version>12.4.15</Version>
<ManagementvVersion>12.4.14</ManagementvVersion>
<ManagementvVersion>12.4.15</ManagementvVersion>
<LangVersion>preview</LangVersion>

View File

@@ -37,17 +37,21 @@
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<ItemGroup Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Photino.Blazor" Version="$(AdminVersion)" />
<PackageReference Include="ThingsGateway.Debug.Razor" Version="$(PluginVersion)" />
<PackageReference Include="ThingsGateway.Debug.ProRazor" Version="$(ProPluginVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ItemGroup Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\ThingsGateway.Photino.Blazor\ThingsGateway.Photino.Blazor.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Plugin\src\ThingsGateway.Debug.Razor\ThingsGateway.Debug.Razor.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Debug.ProRazor" Version="$(ProPluginVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.ProPlugin\src\ThingsGateway.Debug.ProRazor\ThingsGateway.Debug.ProRazor.csproj" />
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="BootstrapBlazor.CherryMarkdown" Version="10.0.1" />

View File

@@ -9,13 +9,13 @@
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<ItemGroup Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' ">
<PackageReference Include="BlazorSetParametersAsyncGenerator" Version="$(AdminVersion)" PrivateAssets="all" OutputItemType="Analyzer" />
<PackageReference Include="ThingsGateway.Razor" Version="$(AdminVersion)" />
<PackageReference Include="ThingsGateway.Foundation" Version="$(FoundationVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ItemGroup Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Foundation\src\ThingsGateway.Foundation\ThingsGateway.Foundation.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\ThingsGateway.Razor\ThingsGateway.Razor.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\BlazorSetParametersAsyncGenerator\BlazorSetParametersAsyncGenerator.csproj" PrivateAssets="all" OutputItemType="Analyzer" />

View File

@@ -53,16 +53,14 @@
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Authentication" Version="$(ManagementvVersion)" />
<ItemGroup Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Admin.Application" Version="$(AdminVersion)" />
<PackageReference Include="ThingsGateway.Blazor.Diagrams.Core" Version="$(AdminVersion)" />
<PackageReference Include="ThingsGateway.CSScript" Version="$(FoundationVersion)" />
<PackageReference Include="ThingsGateway.Foundation" Version="$(FoundationVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Management\src\ThingsGateway.Authentication\ThingsGateway.Authentication.csproj" />
<ItemGroup Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Foundation\src\ThingsGateway.Foundation\ThingsGateway.Foundation.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Foundation\src\ThingsGateway.CSScript\ThingsGateway.CSScript.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\ThingsGateway.Admin.Application\ThingsGateway.Admin.Application.csproj" />
@@ -70,6 +68,12 @@
</ItemGroup>
<ItemGroup Condition="'$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Authentication" Version="$(ManagementvVersion)" />
</ItemGroup>
<ItemGroup Condition="'$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Management\src\ThingsGateway.Authentication\ThingsGateway.Authentication.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)'=='net8.0'">
<PackageReference Include="System.Linq.Async" Version="7.0.0" />

View File

@@ -24,14 +24,14 @@
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<ItemGroup Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Blazor.Diagrams" Version="$(AdminVersion)" />
<PackageReference Include="ThingsGateway.Admin.Razor" Version="$(AdminVersion)" />
<PackageReference Include="BlazorSetParametersAsyncGenerator" Version="$(AdminVersion)" PrivateAssets="all" OutputItemType="Analyzer" />
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ItemGroup Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\ThingsGateway.Admin.Razor\ThingsGateway.Admin.Razor.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\ThingsGateway.Blazor.Diagrams\ThingsGateway.Blazor.Diagrams.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\BlazorSetParametersAsyncGenerator\BlazorSetParametersAsyncGenerator.csproj" PrivateAssets="all" OutputItemType="Analyzer" />

View File

@@ -27,14 +27,14 @@
<ItemGroup Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<ItemGroup Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Blazor.Diagrams" Version="$(AdminVersion)" />
<PackageReference Include="ThingsGateway.Admin.Razor" Version="$(AdminVersion)" />
<PackageReference Include="BlazorSetParametersAsyncGenerator" Version="$(AdminVersion)" PrivateAssets="all" OutputItemType="Analyzer" />
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ItemGroup Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\ThingsGateway.Admin.Razor\ThingsGateway.Admin.Razor.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\ThingsGateway.Blazor.Diagrams\ThingsGateway.Blazor.Diagrams.csproj" />
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\BlazorSetParametersAsyncGenerator\BlazorSetParametersAsyncGenerator.csproj" PrivateAssets="all" OutputItemType="Analyzer" />

View File

@@ -7,10 +7,10 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebView" Version="$(NET10Version)" />
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<ItemGroup Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Photino.Blazor" Version="$(AdminVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ItemGroup Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Admin\src\ThingsGateway.Photino.Blazor\ThingsGateway.Photino.Blazor.csproj" />
</ItemGroup>
@@ -21,17 +21,17 @@
<!--nuget包解压复制文件上下文动态加载-->
<Import Project="..\ThingsGateway.Server\targets\PluginContext.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<Import Project="..\ThingsGateway.Server\targets\PluginContext.targets" Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' " />
<!--nuget包解压复制文件上下文动态加载Pro插件-->
<Import Project="..\ThingsGateway.Server\targets\Pro2.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<Import Project="..\ThingsGateway.Server\targets\Pro2.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<!--nuget包解压复制文件上下文动态加载-->
<Import Project="..\ThingsGateway.Server\targets\PluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<Import Project="..\ThingsGateway.Server\targets\PluginDebug.targets" Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' " />
<!--nuget包解压复制文件上下文动态加载Pro插件-->
<Import Project="..\ThingsGateway.Server\targets\ProPluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<Import Project="..\ThingsGateway.Server\targets\ProPluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<!--打包复制-->
<Import Project="..\ThingsGateway.Server\targets\PluginPublish.targets" />

View File

@@ -7,17 +7,17 @@
<!--nuget包解压复制文件上下文动态加载-->
<Import Project="targets\PluginContext.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<Import Project="targets\PluginContext.targets" Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' " />
<!--nuget包解压复制文件上下文动态加载Pro插件-->
<Import Project="targets\Pro2.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<Import Project="targets\Pro2.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<!--nuget包解压复制文件上下文动态加载-->
<Import Project="targets\PluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<Import Project="targets\PluginDebug.targets" Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' " />
<!--nuget包解压复制文件上下文动态加载Pro插件-->
<Import Project="targets\ProPluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<Import Project="targets\ProPluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<PropertyGroup>

View File

@@ -3,23 +3,23 @@
<ItemGroup>
<ProjectReference Include="..\ThingsGateway.Gateway.Razor\ThingsGateway.Gateway.Razor.csproj" />
<PackageReference Include="BootstrapBlazor" Version="10.1.0" />
<PackageReference Include="BootstrapBlazor" Version="10.1.1" />
</ItemGroup>
<!--nuget包解压复制文件上下文动态加载-->
<Import Project="targets\PluginContext.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<Import Project="targets\PluginContext.targets" Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' " />
<!--nuget包解压复制文件上下文动态加载Pro插件-->
<Import Project="targets\Pro2.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<Import Project="targets\Pro2.targets" Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' " />
<!--nuget包解压复制文件上下文动态加载-->
<Import Project="targets\PluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<Import Project="targets\PluginDebug.targets" Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' " />
<!--nuget包解压复制文件上下文动态加载Pro插件-->
<Import Project="targets\ProPluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<Import Project="targets\ProPluginDebug.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' " />
<!--打包复制-->
<Import Project="targets\PluginPublish.targets" />

View File

@@ -6,11 +6,11 @@
<NoWarn> CA1812; CA1852;CA1515;$(NoWarn)</NoWarn>
</PropertyGroup>
<ItemGroup Condition=" '$(SolutionName)' != 'ThingsGatewayAll' OR '$(Configuration)' == 'Release' ">
<ItemGroup Condition=" ! $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) OR '$(Configuration)' == 'Release' ">
<PackageReference Include="ThingsGateway.Foundation.OpcUa" Version="$(FoundationVersion)" />
</ItemGroup>
<ItemGroup Condition=" '$(SolutionName)' == 'ThingsGatewayAll' AND '$(Configuration)' != 'Release' ">
<ItemGroup Condition=" $([System.String]::Copy('$(SolutionName)').StartsWith('ThingsGatewayAll')) AND '$(Configuration)' != 'Release' ">
<ProjectReference Include="..\..\..\ThingsGateway.Foundation\src\ThingsGateway.Foundation.OpcUa\ThingsGateway.Foundation.OpcUa.csproj" />
</ItemGroup>
</Project>