把StarAgent作为工具发布到nuget

This commit is contained in:
大石头 2020-09-10 08:20:17 +08:00
parent af9103cf12
commit bf55460f14
3 changed files with 83 additions and 4 deletions

View File

@ -7,8 +7,8 @@
<Description>星尘,分布式资源调度,客户端代理部署于每一台机器节点,接受服务端命令,获取目标应用包并拉起进程。</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2020 NewLife</Copyright>
<Version>1.0.2020.0629</Version>
<FileVersion>1.0.2020.0629</FileVersion>
<Version>1.0.2020.0910</Version>
<FileVersion>1.0.2020.0910</FileVersion>
<AssemblyVersion>1.0.*</AssemblyVersion>
<Deterministic>false</Deterministic>
<OutputPath>..\Bin\Agent</OutputPath>
@ -24,7 +24,7 @@
<RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" />
</ItemGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'">
<PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
<DefineConstants>$(DefineConstants);__CORE__</DefineConstants>
</PropertyGroup>

View File

@ -0,0 +1,73 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>netcoreapp3.1</TargetFrameworks>
<AssemblyName>staragent</AssemblyName>
<AssemblyTitle>星尘代理</AssemblyTitle>
<Description>星尘,分布式资源调度,客户端代理部署于每一台机器节点,接受服务端命令,获取目标应用包并拉起进程。</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2020 NewLife</Copyright>
<Version>1.0.2020.0911</Version>
<FileVersion>1.0.2020.0911</FileVersion>
<AssemblyVersion>1.0.*</AssemblyVersion>
<Deterministic>false</Deterministic>
<OutputPath>..\Bin\Agent</OutputPath>
<!--<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>-->
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants>
<LangVersion>latest</LangVersion>
<PackAsTool>true</PackAsTool>
</PropertyGroup>
<PropertyGroup>
<PackageId>$(AssemblyName)</PackageId>
<Authors>$(Company)</Authors>
<ProjectUrl>https://github.com/NewLifeX</ProjectUrl>
<PackageIconUrl>http://www.NewLifeX.com/favicon.ico</PackageIconUrl>
<RepositoryUrl>https://github.com/NewLifeX/Stardust</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
<PackageReleaseNotes>支持APM跟踪</PackageReleaseNotes>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\StarAgent\Program.cs" Link="Program.cs" />
<Compile Include="..\StarAgent\Setting.cs" Link="Setting.cs" />
</ItemGroup>
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" />
</ItemGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp3.1'">
<DefineConstants>$(DefineConstants);__CORE__</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NewLife.Agent" Version="8.7.2020.802" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Stardust\Stardust.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
<PackageReference Include="NewLife.Agent">
<Version>8.1.2019.618</Version>
</PackageReference>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="del &quot;$(TargetDir)*.xml&quot; /q" />
</Target>
</Project>

View File

@ -29,7 +29,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClientTest", "ClientTest\Cl
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "UnitTest", "UnitTest", "{48B9E6E7-289F-42F2-8ACA-E7DF8E7C9059}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Stardust.ServerTests", "Stardust.ServerTests\Stardust.ServerTests.csproj", "{677C6502-2C9C-4907-AD82-670BE77B0AE6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stardust.ServerTests", "Stardust.ServerTests\Stardust.ServerTests.csproj", "{677C6502-2C9C-4907-AD82-670BE77B0AE6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StarAgentTool", "StarAgentTool\StarAgentTool.csproj", "{4DA8CFA1-A2B9-4DD0-86C1-19925BA076B2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -69,6 +71,10 @@ Global
{677C6502-2C9C-4907-AD82-670BE77B0AE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{677C6502-2C9C-4907-AD82-670BE77B0AE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{677C6502-2C9C-4907-AD82-670BE77B0AE6}.Release|Any CPU.Build.0 = Release|Any CPU
{4DA8CFA1-A2B9-4DD0-86C1-19925BA076B2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4DA8CFA1-A2B9-4DD0-86C1-19925BA076B2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4DA8CFA1-A2B9-4DD0-86C1-19925BA076B2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4DA8CFA1-A2B9-4DD0-86C1-19925BA076B2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE