更新
This commit is contained in:
@@ -1,21 +1,34 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<ApplicationIcon>favicon.ico</ApplicationIcon>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<ApplicationIcon>favicon.ico</ApplicationIcon>
|
||||
<GenerateDocumentationFile>True</GenerateDocumentationFile>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<Version>1.0.0-preview.$([System.DateTime]::Now.ToString("yyyyMMddHHmm"))</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="favicon.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="favicon.ico" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.TagHelpers" Version="2.3.9" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Razor.Runtime" Version="2.3.0" />
|
||||
<PackageReference Include="System.Security.Cryptography.Xml" Version="10.0.7" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.TagHelpers" Version="2.3.9" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Razor.Runtime" Version="2.3.0" />
|
||||
<PackageReference Include="System.Security.Cryptography.Xml" Version="10.0.7" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PushToGiteaAfterPack" AfterTargets="Pack" Condition="'$(Configuration)' == 'Release'">
|
||||
<PropertyGroup>
|
||||
<GiteaToken>$(GITEA_TOKEN_ACDIU_NET)</GiteaToken>
|
||||
<GiteaSource>https://git.acdiu.net/api/packages/gunyeng/nuget/index.json</GiteaSource>
|
||||
</PropertyGroup>
|
||||
|
||||
<Message Importance="high" Text="正在推送包到 acdiu.net Gitea..." />
|
||||
|
||||
<Exec Command="chcp 65001 > nul && dotnet nuget push "$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" --source "$(GiteaSource)" --api-key $(GiteaToken) --skip-duplicate"
|
||||
ContinueOnError="true" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user