Skip to content

Commit

Permalink
Merge pull request elsa-workflows#4828 from lahma/directory-build-props
Browse files Browse the repository at this point in the history
Use Directory.Build.props
  • Loading branch information
sfmskywalker committed Feb 2, 2024
2 parents 5436d95 + 68beb5c commit 3ff6e3e
Show file tree
Hide file tree
Showing 119 changed files with 84 additions and 402 deletions.
18 changes: 5 additions & 13 deletions common.props → Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Authors>Elsa Workflows Community</Authors>
<Copyright>2023</Copyright>

<PackageProjectUrl>https://github.com/elsa-workflows/elsa-core</PackageProjectUrl>
<RepositoryUrl>https://github.com/elsa-workflows/elsa-core</RepositoryUrl>
<RepositoryType>git</RepositoryType>

<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>

<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>icon.png</PackageIcon>

<!-- For NuGet browsers that currently don't support <PackageIcon> yet -->
<PackageIconUrl>https://v3.elsaworkflows.io/nuget-icon.png</PackageIconUrl>

Expand All @@ -24,15 +27,4 @@
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
</PropertyGroup>

<ItemGroup Label="Files">
<None Include="..\..\..\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
</ItemGroup>
</Project>
10 changes: 7 additions & 3 deletions Elsa.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 17.7.34003.232
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{61017E64-6D00-49CB-9E81-5002DC8F7D5F}"
ProjectSection(SolutionItems) = preProject
src\Directory.Build.props = src\Directory.Build.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{155227F0-A33B-40AA-A4B4-06F813EB921B}"
EndProject
Expand All @@ -14,10 +17,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution", "solution", "{7D
.editorconfig = .editorconfig
.gitignore = .gitignore
build-and-run-all-in-one-web-docker.sh = build-and-run-all-in-one-web-docker.sh
common.props = common.props
configureawait.props = configureawait.props
Directory.Build.props = Directory.Build.props
docker-compose.yml = docker-compose.yml
frameworks.props = frameworks.props
icon.png = icon.png
NuGet.Config = NuGet.Config
packages.props = packages.props
Expand Down Expand Up @@ -50,6 +51,9 @@ EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elsa.MassTransit", "src\modules\Elsa.MassTransit\Elsa.MassTransit.csproj", "{BB983D0B-A939-4008-B9E3-C7C172BCF83A}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{90031D64-CA0F-46D0-9AF4-8DC023A5FFCD}"
ProjectSection(SolutionItems) = preProject
test\Directory.Build.props = test\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elsa.Labels", "src\modules\Elsa.Labels\Elsa.Labels.csproj", "{80FF5821-E831-450D-AA0C-C76D07D878F4}"
EndProject
Expand Down
9 changes: 0 additions & 9 deletions configureawait.props

This file was deleted.

5 changes: 0 additions & 5 deletions frameworks.props

This file was deleted.

25 changes: 25 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<IsSampleProject Condition="$(MSBuildProjectName.Contains('.Samples.')) == true or $(MSBuildProjectName.Contains('SampleDropIn')) == true">true</IsSampleProject>
<IsPackable Condition="$(IsSampleProject) == 'true'">false</IsPackable>
</PropertyGroup>

<PropertyGroup Label="TargetFrameworks" Condition="$(IsSampleProject) != 'true'">
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup Label="Files">
<None Include="..\..\..\icon.png" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup Condition="$(IsSampleProject) != 'true'">
<PackageReference Include="ConfigureAwait.Fody" Version="3.3.2" PrivateAssets="All" />
<PackageReference Include="Fody" Version="6.8.0" PrivateAssets="All" />
<PackageReference Include="JetBrains.Annotations" Version="2023.3.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

</Project>
2 changes: 0 additions & 2 deletions src/bundles/Elsa.Server.Web/Elsa.Server.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
Expand Down
3 changes: 3 additions & 0 deletions src/bundles/Elsa.Server.Web/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<ConfigureAwait />
</Weavers>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/bundles/Elsa.ServerAndStudio.Web/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<ConfigureAwait />
</Weavers>
2 changes: 0 additions & 2 deletions src/bundles/Elsa.Studio.Web/Elsa.Studio.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/bundles/Elsa.Studio.Web/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<ConfigureAwait />
</Weavers>
4 changes: 0 additions & 4 deletions src/bundles/Elsa/Elsa.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Bundles the most commonly-used packages when building an Elsa workflows application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0'">
Expand Down
3 changes: 3 additions & 0 deletions src/bundles/ElsaStudioWebAssembly/FodyWeavers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http:https://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<ConfigureAwait />
</Weavers>
4 changes: 0 additions & 4 deletions src/clients/Elsa.Api.Client/Elsa.Api.Client.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides HTTP clients for the Elsa Workflows REST API.
Expand Down
4 changes: 0 additions & 4 deletions src/common/Elsa.Api.Common/Elsa.Api.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides common features to modules that expose API endpoints.
Expand Down
4 changes: 0 additions & 4 deletions src/common/Elsa.DropIns.Core/Elsa.DropIns.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Reference this package when developing drop-ins for Elsa Workflows.
Expand Down
4 changes: 0 additions & 4 deletions src/common/Elsa.DropIns/Elsa.DropIns.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides drop-in features for Elsa workflows.
Expand Down
4 changes: 0 additions & 4 deletions src/common/Elsa.Features/Elsa.Features.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides utilities to turn your class library into a module that provides features.
Expand Down
4 changes: 0 additions & 4 deletions src/common/Elsa.Mediator/Elsa.Mediator.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides a mediator service inspired by MediatR.
Expand Down
4 changes: 0 additions & 4 deletions src/common/Elsa.Testing.Shared/Elsa.Testing.Shared.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides common utilities that are helpful when writing tests against Elsa Workflows functionality.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides core interfaces, models and services that support the alteration engine.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides alteration background job runners using MassTransit.
Expand Down
4 changes: 0 additions & 4 deletions src/modules/Elsa.Alterations/Elsa.Alterations.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides alterations for workflow instances.
Expand Down
4 changes: 0 additions & 4 deletions src/modules/Elsa.AzureServiceBus/Elsa.AzureServiceBus.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides Azure Service Bus integration and activities.
Expand Down
4 changes: 0 additions & 4 deletions src/modules/Elsa.CSharp/Elsa.CSharp.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides a CSharp expression provider.
Expand Down
4 changes: 0 additions & 4 deletions src/modules/Elsa.Common/Elsa.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides services and utility functions common to Elsa modules.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides Dapper migrations for Dapper perisstence providers from various modules.
Expand Down
4 changes: 0 additions & 4 deletions src/modules/Elsa.Dapper/Elsa.Dapper.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides Dapper implementations of various persistence abstractions from various modules.
Expand Down
4 changes: 0 additions & 4 deletions src/modules/Elsa.Dsl/Elsa.Dsl.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides a custom DSL to write workflows with in a syntax similar to JavaScript but with native keywords translating to workflow functionality.
Expand Down
4 changes: 0 additions & 4 deletions src/modules/Elsa.Elasticsearch/Elsa.Elasticsearch.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props" />
<Import Project="..\..\..\configureawait.props" />
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides Elasticsearch implementation for workflow state persistence.
Expand Down
4 changes: 0 additions & 4 deletions src/modules/Elsa.Email/Elsa.Email.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides a SendEmail activity that lets you send emails from a workflow.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides common Entity Framework Core types for implementing EF Core persistence of varipus ELsa modules.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props" />

<PropertyGroup>
<Description>
Provides MySQL EF Core migrations for various modules.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="..\..\..\common.props"/>
<Import Project="..\..\..\configureawait.props"/>
<Import Project="..\..\..\frameworks.props"/>

<PropertyGroup>
<Description>
Provides PostgreSQL EF Core migrations for various modules.
Expand Down
Loading

0 comments on commit 3ff6e3e

Please sign in to comment.