Compare commits

...

3 Commits

Author SHA1 Message Date
Diego
8e3bd89f61 修改编译项 2025-08-18 17:30:34 +08:00
Diego
6da142d080 10.10.23 2025-08-18 17:03:40 +08:00
2248356998 qq.com
ff7d029e6f 更新依赖 2025-08-14 20:25:00 +08:00
53 changed files with 3271 additions and 110 deletions

View File

@@ -26,12 +26,12 @@
OnQueryAsync="OnQueryAsync" CustomerSearchModel="@CustomerSearchModel" OnQueryAsync="OnQueryAsync" CustomerSearchModel="@CustomerSearchModel"
OnSaveAsync="Save" OnDeleteAsync="Delete"> OnSaveAsync="Save" OnDeleteAsync="Delete">
<TableToolbarTemplate> <TableToolbarTemplate>
<PopConfirmButton Color=Color.Warning IsDisabled="SelectedRows.Count<=0||!AuthorizeButton(AdminOperConst.Add)" Text=@OperDescLocalizer["CopyResource"] Icon="fa fa-copy" OnConfirm="OnCopy"> <PopConfirmButton Color=Color.Warning IsKeepDisabled="SelectedRows.Count <= 0 || !AuthorizeButton(AdminOperConst.Add)" Text=@OperDescLocalizer["CopyResource"] Icon="fa fa-copy" OnConfirm="OnCopy">
<BodyTemplate> <BodyTemplate>
<Select Items="ModuleSelectedItems" @bind-Value=CopyModule ShowLabel="false" /> <Select Items="ModuleSelectedItems" @bind-Value=CopyModule ShowLabel="false" />
</BodyTemplate> </BodyTemplate>
</PopConfirmButton> </PopConfirmButton>
<PopConfirmButton Color=Color.Warning IsDisabled="SelectedRows.Count!=1||!AuthorizeButton(AdminOperConst.Edit)" Text=@OperDescLocalizer["ChangeParentResource"] Icon="fa fa-copy" OnConfirm="OnChangeParent"> <PopConfirmButton Color=Color.Warning IsKeepDisabled="SelectedRows.Count != 1 || !AuthorizeButton(AdminOperConst.Edit)" Text=@OperDescLocalizer["ChangeParentResource"] Icon="fa fa-copy" OnConfirm="OnChangeParent">
<BodyTemplate> <BodyTemplate>
<div class="overflow-y-auto" style="height:500px"> <div class="overflow-y-auto" style="height:500px">
<TreeView Items="MenuTreeItems" IsVirtualize="true" OnTreeItemClick="a=>{ChangeParentId=a.Value.Id;return Task.CompletedTask;}" /> <TreeView Items="MenuTreeItems" IsVirtualize="true" OnTreeItemClick="a=>{ChangeParentId=a.Value.Id;return Task.CompletedTask;}" />

View File

@@ -29,7 +29,7 @@
<Target Name="AdminPostPublish" AfterTargets="Publish"> <Target Name="AdminPostPublish" AfterTargets="Publish">
<ItemGroup> <ItemGroup>
<!-- setting up the variable for convenience --> <!-- setting up the variable for convenience -->
<AdminFiles Include="bin\$(Configuration)\$(TargetFramework)\SeedData\**" /> <AdminFiles Include="$(OutputPath)\$(TargetFramework)\SeedData\**" />
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
</PropertyGroup> </PropertyGroup>

View File

@@ -14,7 +14,7 @@
<ItemGroup> <ItemGroup>
<PackageReference Include="BootstrapBlazor.TableExport" Version="9.2.6" /> <PackageReference Include="BootstrapBlazor.TableExport" Version="9.2.6" />
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" /> <PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
<PackageReference Include="BootstrapBlazor" Version="9.9.1" /> <PackageReference Include="BootstrapBlazor" Version="9.9.2" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -41,7 +41,7 @@
} }
<PopConfirmButton IsAsync IsDisabled=@_importPreviews.Any(it => it.Value.HasError) Color=Color.Warning class="mt-2" OnConfirm=@(SaveDeviceImport)>@Localizer["Import"]</PopConfirmButton> <PopConfirmButton IsAsync IsKeepDisabled=@_importPreviews.Any(it => it.Value.HasError) Color=Color.Warning class="mt-2" OnConfirm=@(SaveDeviceImport)>@Localizer["Import"]</PopConfirmButton>
@* @*
<Button IsAsync class="mt-2" IsDisabled=@_importPreviews.Any(it => it.Value.HasError) OnClick="() => step.Next()">@Localizer["Next"]</Button> *@ <Button IsAsync class="mt-2" IsDisabled=@_importPreviews.Any(it => it.Value.HasError) OnClick="() => step.Next()">@Localizer["Next"]</Button> *@

View File

@@ -30,11 +30,11 @@
<PackageReference Include="MySqlConnector" Version="2.4.0" /> <PackageReference Include="MySqlConnector" Version="2.4.0" />
<PackageReference Include="Npgsql" Version="9.0.3" /> <PackageReference Include="Npgsql" Version="9.0.3" />
<PackageReference Include="CsvHelper" Version="33.1.0" /> <PackageReference Include="CsvHelper" Version="33.1.0" />
<PackageReference Include="TDengine.Connector" Version="3.1.7" /> <PackageReference Include="TDengine.Connector" Version="3.1.8" />
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.9.1" /> <PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.9.1" />
<PackageReference Include="Oscar.Data.SqlClient" Version="4.2.22" /> <PackageReference Include="Oscar.Data.SqlClient" Version="4.2.23" />
<PackageReference Include="System.Data.Common" Version="4.3.0" /> <PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.0" /> <PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.1" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0" /> <PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.7.0" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" /> <PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
<PackageReference Include="System.Formats.Asn1" Version="8.0.2" /> <PackageReference Include="System.Formats.Asn1" Version="8.0.2" />

View File

@@ -1,11 +1,11 @@
<Project> <Project>
<PropertyGroup> <PropertyGroup>
<PluginVersion>10.10.18</PluginVersion> <PluginVersion>10.10.23</PluginVersion>
<ProPluginVersion>10.10.18</ProPluginVersion> <ProPluginVersion>10.10.23</ProPluginVersion>
<DefaultVersion>10.10.19</DefaultVersion> <DefaultVersion>10.10.23</DefaultVersion>
<AuthenticationVersion>10.10.1</AuthenticationVersion> <AuthenticationVersion>10.10.2</AuthenticationVersion>
<SourceGeneratorVersion>10.10.1</SourceGeneratorVersion> <SourceGeneratorVersion>10.10.2</SourceGeneratorVersion>
<NET8Version>8.0.19</NET8Version> <NET8Version>8.0.19</NET8Version>
<NET9Version>9.0.8</NET9Version> <NET9Version>9.0.8</NET9Version>
<SatelliteResourceLanguages>zh-Hans;en-US</SatelliteResourceLanguages> <SatelliteResourceLanguages>zh-Hans;en-US</SatelliteResourceLanguages>

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -177,7 +177,7 @@ public partial class VariableRuntime : Variable
/// 是否在线 /// 是否在线
/// </summary> /// </summary>
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true, Order = 5)] [AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true, Order = 5)]
public bool IsOnline{get;set;} public bool IsOnline { get; set; }
/// <summary> /// <summary>
/// 设备名称 /// 设备名称

View File

@@ -392,16 +392,17 @@ internal sealed class ChannelService : BaseService<Channel>, IChannelService
ManageHelper.CheckChannelCount(insertData.Count); ManageHelper.CheckChannelCount(insertData.Count);
using var db = GetDB(); using var db = GetDB();
if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory > 2 * 1024 * 1024) if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory < 2 * 1024 * 1024 || WebEnableVariable.WebEnable == false)
{
await db.BulkCopyAsync(insertData, 200000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 200000).ConfigureAwait(false);
}
else
{ {
await db.BulkCopyAsync(insertData, 10000).ConfigureAwait(false); await db.BulkCopyAsync(insertData, 10000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 10000).ConfigureAwait(false); await db.BulkUpdateAsync(upData, 10000).ConfigureAwait(false);
} }
else
{
await db.BulkCopyAsync(insertData, 200000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 200000).ConfigureAwait(false);
}
DeleteChannelFromCache(); DeleteChannelFromCache();
return upData.Select(a => a.Id).Concat(insertData.Select(a => a.Id)).ToHashSet(); return upData.Select(a => a.Id).Concat(insertData.Select(a => a.Id)).ToHashSet();
} }

View File

@@ -388,16 +388,17 @@ internal sealed class DeviceService : BaseService<Device>, IDeviceService
ManageHelper.CheckDeviceCount(insertData.Count); ManageHelper.CheckDeviceCount(insertData.Count);
using var db = GetDB(); using var db = GetDB();
if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory > 2 * 1024 * 1024) if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory < 2 * 1024 * 1024 || WebEnableVariable.WebEnable == false)
{
await db.BulkCopyAsync(insertData, 200000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 200000).ConfigureAwait(false);
}
else
{ {
await db.BulkCopyAsync(insertData, 10000).ConfigureAwait(false); await db.BulkCopyAsync(insertData, 10000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 10000).ConfigureAwait(false); await db.BulkUpdateAsync(upData, 10000).ConfigureAwait(false);
} }
else
{
await db.BulkCopyAsync(insertData, 200000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 200000).ConfigureAwait(false);
}
DeleteDeviceFromCache(); DeleteDeviceFromCache();
return upData.Select(a => a.Id).Concat(insertData.Select(a => a.Id)).ToHashSet(); return upData.Select(a => a.Id).Concat(insertData.Select(a => a.Id)).ToHashSet();
} }

View File

@@ -63,7 +63,7 @@ internal sealed class RedundancyTask : IRpcDriver, IAsyncDisposable
const int highMemorySize = 100000; const int highMemorySize = 100000;
const long memoryThreshold = 2L * 1024 * 1024; // 2GB单位KB const long memoryThreshold = 2L * 1024 * 1024; // 2GB单位KB
return GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory > memoryThreshold return (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory > memoryThreshold && WebEnableVariable.WebEnable == true)
? highMemorySize ? highMemorySize
: defaultSize; : defaultSize;
} }

View File

@@ -209,18 +209,19 @@ internal sealed class VariableService : BaseService<Variable>, IVariableService
var result = await db.UseTranAsync(async () => var result = await db.UseTranAsync(async () =>
{ {
if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory > 2 * 1024 * 1024) if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory < 2 * 1024 * 1024 || WebEnableVariable.WebEnable == false)
{
await db.BulkCopyAsync(newChannels, 200000).ConfigureAwait(false);
await db.BulkCopyAsync(newDevices, 200000).ConfigureAwait(false);
await db.BulkCopyAsync(newVariables, 200000).ConfigureAwait(false);
}
else
{ {
await db.BulkCopyAsync(newChannels, 10000).ConfigureAwait(false); await db.BulkCopyAsync(newChannels, 10000).ConfigureAwait(false);
await db.BulkCopyAsync(newDevices, 10000).ConfigureAwait(false); await db.BulkCopyAsync(newDevices, 10000).ConfigureAwait(false);
await db.BulkCopyAsync(newVariables, 10000).ConfigureAwait(false); await db.BulkCopyAsync(newVariables, 10000).ConfigureAwait(false);
} }
else
{
await db.BulkCopyAsync(newChannels, 200000).ConfigureAwait(false);
await db.BulkCopyAsync(newDevices, 200000).ConfigureAwait(false);
await db.BulkCopyAsync(newVariables, 200000).ConfigureAwait(false);
}
}).ConfigureAwait(false); }).ConfigureAwait(false);
if (result.IsSuccess)//如果成功了 if (result.IsSuccess)//如果成功了
{ {
@@ -492,7 +493,7 @@ internal sealed class VariableService : BaseService<Variable>, IVariableService
[OperDesc("ExportVariable", isRecordPar: false, localizerType: typeof(Variable))] [OperDesc("ExportVariable", isRecordPar: false, localizerType: typeof(Variable))]
public async Task<Dictionary<string, object>> ExportVariableAsync(GatewayExportFilter exportFilter) public async Task<Dictionary<string, object>> ExportVariableAsync(GatewayExportFilter exportFilter)
{ {
if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory < 4 * 1024 * 1024) if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory < 4 * 1024 * 1024 || WebEnableVariable.WebEnable == false)
{ {
var whereQuery = await GetWhereEnumerableFunc(exportFilter).ConfigureAwait(false); var whereQuery = await GetWhereEnumerableFunc(exportFilter).ConfigureAwait(false);
//导出 //导出
@@ -566,15 +567,16 @@ internal sealed class VariableService : BaseService<Variable>, IVariableService
{ {
ManageHelper.CheckVariableCount(insertData.Count); ManageHelper.CheckVariableCount(insertData.Count);
using var db = GetDB(); using var db = GetDB();
if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory > 2 * 1024 * 1024) if (GlobalData.HardwareJob.HardwareInfo.MachineInfo.AvailableMemory < 2 * 1024 * 1024 || WebEnableVariable.WebEnable == false)
{
await db.BulkCopyAsync(insertData, 200000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 200000).ConfigureAwait(false);
}
else
{ {
await db.BulkCopyAsync(insertData, 10000).ConfigureAwait(false); await db.BulkCopyAsync(insertData, 10000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 10000).ConfigureAwait(false); await db.BulkUpdateAsync(upData, 10000).ConfigureAwait(false);
}
else
{
await db.BulkCopyAsync(insertData, 200000).ConfigureAwait(false);
await db.BulkUpdateAsync(upData, 200000).ConfigureAwait(false);
} }
DeleteVariableCache(); DeleteVariableCache();
return upData.Select(a => a.Id).Concat(insertData.Select(a => a.Id)).ToHashSet(); return upData.Select(a => a.Id).Concat(insertData.Select(a => a.Id)).ToHashSet();

View File

@@ -26,7 +26,7 @@
Content=@(ReloadServiceConfirmText) Content=@(ReloadServiceConfirmText)
Icon="fas fa-rotate" Icon="fas fa-rotate"
IsAsync="true" IsAsync="true"
OnConfirm="Restart" IsDisabled=@(!AuthorizeButton("重启")) /> OnConfirm="Restart" IsKeepDisabled=@(!AuthorizeButton("重启")) />
</div> </div>

View File

@@ -71,7 +71,7 @@
</TableColumns> </TableColumns>
<RowButtonTemplate> <RowButtonTemplate>
<PopConfirmButton IsDisabled=@(!AuthorizeButton("写入变量")) Size="Size.ExtraSmall" Color="Color.Warning" Icon="fa-solid fa-bars" Text="@Localizer["WriteVariable"]" IsAsync OnConfirm="() => OnWriteVariable(context)"> <PopConfirmButton IsKeepDisabled=@(!AuthorizeButton("写入变量")) Size="Size.ExtraSmall" Color="Color.Warning" Icon="fa-solid fa-bars" Text="@Localizer["WriteVariable"]" IsAsync OnConfirm="() => OnWriteVariable(context)">
<BodyTemplate> <BodyTemplate>
<Textarea @bind-Value=WriteValue ShowLabel="true" ShowLabelTooltip="true" /> <Textarea @bind-Value=WriteValue ShowLabel="true" ShowLabelTooltip="true" />
@@ -125,7 +125,7 @@
@if (WebsiteOption.Value.Demo || App.HostEnvironment.IsDevelopment()) @if (WebsiteOption.Value.Demo || App.HostEnvironment.IsDevelopment())
{ {
<PopConfirmButton Color=Color.Warning Text="@Localizer["Test"]" IsDisabled=@(!AuthorizeButton(AdminOperConst.Add)) <PopConfirmButton Color=Color.Warning Text="@Localizer["Test"]" IsKeepDisabled=@(!AuthorizeButton(AdminOperConst.Add))
IsAsync OnConfirm=@(InsertTestDataAsync)> IsAsync OnConfirm=@(InsertTestDataAsync)>
<BodyTemplate> <BodyTemplate>

View File

@@ -12,7 +12,7 @@
<ProjectReference Include="..\ThingsGateway.Gateway.Application\ThingsGateway.Gateway.Application.csproj" /> <ProjectReference Include="..\ThingsGateway.Gateway.Application\ThingsGateway.Gateway.Application.csproj" />
<PackageReference Include="Riok.Mapperly" Version="4.2.1" ExcludeAssets="runtime" PrivateAssets="all" /> <PackageReference Include="Riok.Mapperly" Version="4.2.1" ExcludeAssets="runtime" PrivateAssets="all" />
<PackageReference Include="BootstrapBlazor.WinBox" Version="9.0.7" /> <PackageReference Include="BootstrapBlazor.WinBox" Version="9.0.7" />
<PackageReference Include="BootstrapBlazor.CodeEditor" Version="9.0.1" /> <PackageReference Include="BootstrapBlazor.CodeEditor" Version="9.0.3" />
<ProjectReference Include="..\..\Admin\ThingsGateway.Admin.Razor\ThingsGateway.Admin.Razor.csproj" /> <ProjectReference Include="..\..\Admin\ThingsGateway.Admin.Razor\ThingsGateway.Admin.Razor.csproj" />
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj" /> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj" />
</ItemGroup> </ItemGroup>

View File

@@ -423,12 +423,14 @@ public class OpcUaMaster : IDisposable, IAsyncDisposable
Disconnect(); Disconnect();
_variableDicts?.Clear(); _variableDicts?.Clear();
_subscriptionDicts?.Clear(); _subscriptionDicts?.Clear();
waitLock?.Dispose();
} }
public async ValueTask DisposeAsync() public async ValueTask DisposeAsync()
{ {
await DisconnectAsync().ConfigureAwait(false); await DisconnectAsync().ConfigureAwait(false);
_variableDicts?.Clear(); _variableDicts?.Clear();
_subscriptionDicts?.Clear(); _subscriptionDicts?.Clear();
waitLock?.Dispose();
} }
/// <summary> /// <summary>
/// 获取变量说明 /// 获取变量说明

View File

@@ -1932,7 +1932,7 @@
// } // }
// private void WriteDiagnosticInfo(string fieldName, DiagnosticInfo value, int depth) // private void WriteDiagnosticInfo(string fieldName, DiagnosticInfo value, int depth)
// { // {
// if (value == null || value.IsNullDiagnosticInfo) // if (value?.IsNullDiagnosticInfo != false)
// { // {
// WriteSimpleField(fieldName, null, quotes: false); // WriteSimpleField(fieldName, null, quotes: false);
// return; // return;

View File

@@ -13,7 +13,7 @@
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="xunit" Version="2.9.3" /> <PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.3"> <PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>

View File

@@ -27,19 +27,19 @@
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Plugin.DB*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Plugin.DB*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*TDengine*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*TDengine*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*QuestDb*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*QuestDb*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*CsvHelper*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*CsvHelper*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,8 +3,10 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,16 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk.Razor"> <Project Sdk="Microsoft.NET.Sdk.Razor">
<Import Project="..\..\Version.props" /> <Import Project="..\..\Version.props" />
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<DefineConstants>$(DefineConstants);Management</DefineConstants> <DefineConstants>$(DefineConstants);Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<AssemblyName>ThingsGateway.Plugin.DB</AssemblyName> <AssemblyName>ThingsGateway.Plugin.DB</AssemblyName>
@@ -22,7 +27,9 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
<PackageReference Include="Riok.Mapperly" Version="4.2.1" ExcludeAssets="runtime" PrivateAssets="all" /> <PackageReference Include="Riok.Mapperly" Version="4.2.1" ExcludeAssets="runtime" PrivateAssets="all" />

View File

@@ -5,7 +5,7 @@
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Dlt645*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Dlt645*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">

View File

@@ -6,8 +6,10 @@
<DefineConstants>$(DefineConstants);Management</DefineConstants> <DefineConstants>$(DefineConstants);Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -21,7 +23,9 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
<ProjectReference Include="..\ThingsGateway.Foundation.Dlt645\ThingsGateway.Foundation.Dlt645.csproj"> <ProjectReference Include="..\ThingsGateway.Foundation.Dlt645\ThingsGateway.Foundation.Dlt645.csproj">
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets> <PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>

View File

@@ -5,7 +5,7 @@
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Http*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Http*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Gateway\ThingsGateway.Gateway.Application\ThingsGateway.Gateway.Application.csproj"> <ProjectReference Include="..\..\Gateway\ThingsGateway.Gateway.Application\ThingsGateway.Gateway.Application.csproj">

View File

@@ -5,8 +5,10 @@
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<DefineConstants>$(DefineConstants);Management</DefineConstants> <DefineConstants>$(DefineConstants);Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -17,7 +19,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
</ItemGroup> </ItemGroup>

View File

@@ -17,7 +17,7 @@
<!--在构建后触发的。它通过在 Nuget 包的 Content 文件夹中包含目标目录中的所有文件和子文件夹来创建 nuget 包--> <!--在构建后触发的。它通过在 Nuget 包的 Content 文件夹中包含目标目录中的所有文件和子文件夹来创建 nuget 包-->
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Kafka*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Kafka*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Gateway\ThingsGateway.Gateway.Application\ThingsGateway.Gateway.Application.csproj"> <ProjectReference Include="..\..\Gateway\ThingsGateway.Gateway.Application\ThingsGateway.Gateway.Application.csproj">

View File

@@ -5,8 +5,10 @@
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<DefineConstants>$(DefineConstants);Management</DefineConstants> <DefineConstants>$(DefineConstants);Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -17,7 +19,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
<PackageReference Include="Confluent.Kafka" Version="2.11.0" GeneratePathProperty="true"> <PackageReference Include="Confluent.Kafka" Version="2.11.0" GeneratePathProperty="true">
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets> <PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>

View File

@@ -5,7 +5,7 @@
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Modbus*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Modbus*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">

View File

@@ -5,8 +5,10 @@
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<DefineConstants>$(DefineConstants);Management</DefineConstants> <DefineConstants>$(DefineConstants);Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -19,7 +21,9 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
<ProjectReference Include="..\ThingsGateway.Foundation.Modbus\ThingsGateway.Foundation.Modbus.csproj"> <ProjectReference Include="..\ThingsGateway.Foundation.Modbus\ThingsGateway.Foundation.Modbus.csproj">
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets> <PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>

View File

@@ -26,7 +26,7 @@
<!--在构建后触发的。它通过在 Nuget 包的 Content 文件夹中包含目标目录中的所有文件和子文件夹来创建 nuget 包--> <!--在构建后触发的。它通过在 Nuget 包的 Content 文件夹中包含目标目录中的所有文件和子文件夹来创建 nuget 包-->
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*MQTT*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*MQTT*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">

View File

@@ -5,8 +5,10 @@
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<DefineConstants>$(DefineConstants);Management</DefineConstants> <DefineConstants>$(DefineConstants);Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -19,7 +21,9 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>

View File

@@ -5,7 +5,7 @@
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Opc*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Opc*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<DefineConstants>Plugin</DefineConstants> <DefineConstants>Plugin</DefineConstants>

View File

@@ -6,8 +6,10 @@
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<DefineConstants>$(DefineConstants);Plugin;Management</DefineConstants> <DefineConstants>$(DefineConstants);Plugin;Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -38,7 +40,9 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
<ProjectReference Include="..\ThingsGateway.Foundation.OpcDa\ThingsGateway.Foundation.OpcDa.csproj"> <ProjectReference Include="..\ThingsGateway.Foundation.OpcDa\ThingsGateway.Foundation.OpcDa.csproj">
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets> <PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>

View File

@@ -32,7 +32,7 @@
<!--在构建后触发的。它通过在 Nuget 包的 Content 文件夹中包含目标目录中的所有文件和子文件夹来创建 nuget 包--> <!--在构建后触发的。它通过在 Nuget 包的 Content 文件夹中包含目标目录中的所有文件和子文件夹来创建 nuget 包-->
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Opc*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Opc*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<DefineConstants>Plugin</DefineConstants> <DefineConstants>Plugin</DefineConstants>

View File

@@ -6,8 +6,10 @@
<DefineConstants>$(DefineConstants);Plugin;Management</DefineConstants> <DefineConstants>$(DefineConstants);Plugin;Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -40,7 +42,9 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
<ProjectReference Include="..\ThingsGateway.Foundation.OpcUa\ThingsGateway.Foundation.OpcUa.csproj" /> <ProjectReference Include="..\ThingsGateway.Foundation.OpcUa\ThingsGateway.Foundation.OpcUa.csproj" />

View File

@@ -20,15 +20,15 @@
<!--在构建后触发的。它通过在 Nuget 包的 Content 文件夹中包含目标目录中的所有文件和子文件夹来创建 nuget 包--> <!--在构建后触发的。它通过在 Nuget 包的 Content 文件夹中包含目标目录中的所有文件和子文件夹来创建 nuget 包-->
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*RabbitMQ*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*RabbitMQ*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Pipelines*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Pipelines*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*RateLimiting*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*RateLimiting*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Gateway\ThingsGateway.Gateway.Application\ThingsGateway.Gateway.Application.csproj"> <ProjectReference Include="..\..\Gateway\ThingsGateway.Gateway.Application\ThingsGateway.Gateway.Application.csproj">

View File

@@ -5,8 +5,10 @@
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<DefineConstants>$(DefineConstants);Management</DefineConstants> <DefineConstants>$(DefineConstants);Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -17,7 +19,9 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
</ItemGroup> </ItemGroup>

View File

@@ -5,7 +5,7 @@
<Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build"> <Target Name="IncludeAllFilesInTargetDir" AfterTargets="Build">
<ItemGroup> <ItemGroup>
<Content Include="$(ProjectDir)bin\$(Configuration)\$(TargetFramework)\**\*Siemens*.dll"> <Content Include="$(ProjectDir)$(OutputPath)\$(TargetFramework)\**\*Siemens*.dll">
<Pack>true</Pack> <Pack>true</Pack>
<PackagePath>Content</PackagePath> <PackagePath>Content</PackagePath>
</Content> </Content>

View File

@@ -3,7 +3,9 @@
<Import Project="..\..\PackNuget.props" /> <Import Project="..\..\PackNuget.props" />
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<OutputPath>bin\$(Configuration)</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">

View File

@@ -5,8 +5,10 @@
<TargetFrameworks>net8.0;</TargetFrameworks> <TargetFrameworks>net8.0;</TargetFrameworks>
<DefineConstants>$(DefineConstants);Management</DefineConstants> <DefineConstants>$(DefineConstants);Management</DefineConstants>
<OutputPath>bin\$(Configuration)\Management\</OutputPath> <OutputPath>bin\$(Configuration)\Management</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\Management\$(TargetFramework)\</IntermediateOutputPath> <IntermediateOutputPath>obj\Management\$(Configuration)\</IntermediateOutputPath>
<!--<BaseIntermediateOutputPath>obj\Management\</BaseIntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>-->
<PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath> <PackageOutputPath>$(MSBuildThisFileDirectory)..\..\..\..\nupkgs1</PackageOutputPath>
</PropertyGroup> </PropertyGroup>
@@ -18,7 +20,9 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj"> <ProjectReference Include="..\..\Foundation\ThingsGateway.Foundation.Razor\ThingsGateway.Foundation.Razor.csproj">
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" /> <ProjectReference Include="..\..\PluginPro\ThingsGateway.Management.Razor\ThingsGateway.Management.Razor.csproj" >
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>
</ProjectReference>
<ProjectReference Include="..\ThingsGateway.Foundation.SiemensS7\ThingsGateway.Foundation.SiemensS7.csproj"> <ProjectReference Include="..\ThingsGateway.Foundation.SiemensS7\ThingsGateway.Foundation.SiemensS7.csproj">
<PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets> <PrivateAssets>contentFiles;compile;build;buildMultitargeting;buildTransitive;analyzers;</PrivateAssets>

View File

@@ -34,7 +34,7 @@
<!--<Import Project="targets\Pro3.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayPro' " /> <!--<Import Project="targets\Pro3.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayPro' " />
<Import Project="targets\Pro5.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayPro' " />--> <Import Project="targets\Pro5.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayPro' " />-->
<Import Project="targets\Pro6.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayPro' AND '$(Configuration)' != 'Debug'" /> <!--<Import Project="targets\Pro6.targets" Condition=" '$(SolutionName)' == 'ThingsGatewayPro' AND '$(Configuration)' != 'Debug'" />-->
<!--打包复制--> <!--打包复制-->
<Import Project="targets\PluginPublish.targets" /> <Import Project="targets\PluginPublish.targets" />
@@ -134,6 +134,9 @@
<None Update="thingsgateway.service"> <None Update="thingsgateway.service">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Update="WindowsWebDisable.bat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="WindowsServiceCreate.bat"> <None Update="WindowsServiceCreate.bat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>

View File

@@ -0,0 +1 @@
set WebEnable=false && ThingsGateway.Server.exe

View File

@@ -24,11 +24,11 @@
<!--Omron 插件--> <!--Omron 插件-->
<PackageReference Include="ThingsGateway.Plugin.Omron" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" /> <PackageReference Include="ThingsGateway.Plugin.Omron" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" />
<!--DKQ_A16D 插件--> <!--DKQ_A16D 插件-->
<PackageReference Include="ThingsGateway.Plugin.DKQ_A16D" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" /> <!--<PackageReference Include="ThingsGateway.Plugin.DKQ_A16D" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" />-->
<!--IDR210 插件--> <!--IDR210 插件-->
<PackageReference Include="ThingsGateway.Plugin.IDR210" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" /> <!--<PackageReference Include="ThingsGateway.Plugin.IDR210" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" />-->
<!--URF_R330 插件--> <!--URF_R330 插件-->
<PackageReference Include="ThingsGateway.Plugin.URF_R330" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" /> <!--<PackageReference Include="ThingsGateway.Plugin.URF_R330" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" />-->
<!--USBScaner 插件--> <!--USBScaner 插件-->
<PackageReference Include="ThingsGateway.Plugin.USBScaner" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" /> <PackageReference Include="ThingsGateway.Plugin.USBScaner" Version="$(ProPluginVersion)" GeneratePathProperty="true" Private="false" IncludeAssets=" native;" />

View File

@@ -6,11 +6,11 @@
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.AllenBradleyCip\ThingsGateway.Plugin.AllenBradleyCip.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.AllenBradleyCip\ThingsGateway.Plugin.AllenBradleyCip.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.BACnet\ThingsGateway.Plugin.BACnet.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.BACnet\ThingsGateway.Plugin.BACnet.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.DCON\ThingsGateway.Plugin.DCON.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.DCON\ThingsGateway.Plugin.DCON.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.DKQ_A16D\ThingsGateway.Plugin.DKQ_A16D.csproj" /> <!--<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.DKQ_A16D\ThingsGateway.Plugin.DKQ_A16D.csproj" />-->
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.EDPF_NT\ThingsGateway.Plugin.EDPF_NT.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.EDPF_NT\ThingsGateway.Plugin.EDPF_NT.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.HJ212\ThingsGateway.Plugin.HJ212.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.HJ212\ThingsGateway.Plugin.HJ212.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.HUANANSFSK\ThingsGateway.Plugin.HUANANSFSK.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.HUANANSFSK\ThingsGateway.Plugin.HUANANSFSK.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.IDR210\ThingsGateway.Plugin.IDR210.csproj" /> <!--<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.IDR210\ThingsGateway.Plugin.IDR210.csproj" />-->
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.KELID2008\ThingsGateway.Plugin.KELID2008.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.KELID2008\ThingsGateway.Plugin.KELID2008.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.LEIDIAN\ThingsGateway.Plugin.LEIDIANAPI.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.LEIDIAN\ThingsGateway.Plugin.LEIDIANAPI.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.LKSIS\ThingsGateway.Plugin.LKSIS.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.LKSIS\ThingsGateway.Plugin.LKSIS.csproj" />
@@ -21,7 +21,7 @@
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.Omron\ThingsGateway.Plugin.Omron.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.Omron\ThingsGateway.Plugin.Omron.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.SECS\ThingsGateway.Plugin.SECS.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.SECS\ThingsGateway.Plugin.SECS.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.TS550\ThingsGateway.Plugin.TS550.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.TS550\ThingsGateway.Plugin.TS550.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.URF_R330\ThingsGateway.Plugin.URF_R330.csproj" /> <!--<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.URF_R330\ThingsGateway.Plugin.URF_R330.csproj" />-->
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.USBScaner\ThingsGateway.Plugin.USBScaner.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.USBScaner\ThingsGateway.Plugin.USBScaner.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.Vigor\ThingsGateway.Plugin.Vigor.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.Vigor\ThingsGateway.Plugin.Vigor.csproj" />
<ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.YPSFSK\ThingsGateway.Plugin.YPSFSK.csproj" /> <ProjectReference Include="..\PluginPro\ThingsGateway.Plugin.YPSFSK\ThingsGateway.Plugin.YPSFSK.csproj" />