Skip to content

Commit

Permalink
🎨 统一使用 Directory.Build.props 管理项目
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonNoCry committed Aug 2, 2024
1 parent 288eedf commit 4424bcb
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 22 deletions.
1 change: 0 additions & 1 deletion Blog.Core.Api/Blog.Core.Api.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<Import Project="..\build\common.targets" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Common/Blog.Core.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<ItemGroup>
<Compile Remove="HttpRestSharp\**" />
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.EventBus/Blog.Core.EventBus.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />


<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Extensions/Blog.Core.Extensions.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<ItemGroup>
<PackageReference Include="AspNetCoreRateLimit" Version="5.0.0" />
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.FrameWork/Blog.Core.FrameWork.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<ItemGroup>
<None Update="Blog.Core.FrameWork.Entity\Blog.Core.FrameWork.tt">
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Gateway/Blog.Core.Gateway.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<Import Project="..\build\common.targets" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>..\Blog.Core.Gateway\Blog.Core.Gateway.xml</DocumentationFile>
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.IServices/Blog.Core.IServices.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<ItemGroup>
<ProjectReference Include="..\Blog.Core.Common\Blog.Core.Common.csproj" />
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Model/Blog.Core.Model.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>..\Blog.Core.Api\Blog.Core.Model.xml</DocumentationFile>
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Repository/Blog.Core.Repository.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />


<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Serilog.Es/Blog.Core.Serilog.Es.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Serilog/Blog.Core.Serilog.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<ItemGroup>
<PackageReference Include="Mapster" Version="7.4.0" />
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Services/Blog.Core.Services.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<OutputPath>..\Blog.Core.Api\bin\Debug\</OutputPath>
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Tasks/Blog.Core.Tasks.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />

<ItemGroup>
<PackageReference Include="Quartz" Version="3.7.0" />
Expand Down
1 change: 0 additions & 1 deletion Blog.Core.Tests/Blog.Core.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />
<PropertyGroup>
<IsPackable>false</IsPackable>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
Expand Down
2 changes: 1 addition & 1 deletion Blog.Core.sln
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt
Blog.Core.Publish.Docker.sh = Blog.Core.Publish.Docker.sh
Blog.Core.Publish.Linux.sh = Blog.Core.Publish.Linux.sh
codecov.yml = codecov.yml
build\common.targets = build\common.targets
CreateYourProject.bat = CreateYourProject.bat
DockerBuild.bat = DockerBuild.bat
Dockerfile = Dockerfile
nuget.config = nuget.config
README.md = README.md
Directory.Build.props = Directory.Build.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{EDA8901E-541E-4ADC-B71E-59697D5F9549}"
Expand Down
6 changes: 6 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion Ocelot.Provider.Nacos/Ocelot.Provider.Nacos.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\build\common.targets" />
<PropertyGroup>
<Copyright>softlgl</Copyright>
<Owners>softlgl</Owners>
Expand Down
6 changes: 0 additions & 6 deletions build/common.targets

This file was deleted.

0 comments on commit 4424bcb

Please sign in to comment.