Skip to content

Commit

Permalink
Use Multiple Directory.Build.props
Browse files Browse the repository at this point in the history
Fix package logo
  • Loading branch information
maldworth authored and phatboyg committed May 20, 2020
1 parent 848b5bf commit cdfe5c5
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 32 deletions.
32 changes: 0 additions & 32 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@
<!-- These properties will be shared for all projects -->

<PropertyGroup>
<Product>MassTransit</Product>
<Copyright>Copyright 2007-2019 Chris Patterson</Copyright>
<Authors>Chris Patterson</Authors>
<LangVersion>8</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<WarningLevel>4</WarningLevel>
<NoWarn>CS1587,CS1591,CS1998,NU5105</NoWarn>
<DebugSymbols>True</DebugSymbols>
<DebugType>portable</DebugType>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
Expand All @@ -24,29 +17,4 @@
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(MSBuildProjectName.Contains(Tests))' == false">
<!-- Nuget Package Details -->
<PackageIcon>mt-logo-small.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<Description>MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com</Description>
<IsPackable>True</IsPackable>

<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- SourceLink Config, needs nuget package in each csproj Microsoft.SourceLink.GitHub in order to work -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>

<ItemGroup Condition="'$(MSBuildProjectName.Contains(Tests))' == false">
<None Include="../mt-logo-small.png" Pack="true" Visible="false" PackagePath=""/>
</ItemGroup>

<PropertyGroup Condition="'$(MSBuildProjectName.Contains(Tests))' == true">
<NoWarn>$(NoWarn),CS0618</NoWarn>
<IsTestProject>true</IsTestProject>
<IsPackable>False</IsPackable>
</PropertyGroup>

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

<PropertyGroup>
<Product>MassTransit</Product>
<Copyright>Copyright 2007-2019 Chris Patterson</Copyright>
<Authors>Chris Patterson</Authors>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DebugSymbols>True</DebugSymbols>
<DebugType>portable</DebugType>
<NoWarn>$(NoWarn)</NoWarn>
</PropertyGroup>

<PropertyGroup>
<!-- Nuget Package Details -->
<PackageIcon>mt-logo-small.png</PackageIcon>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<Description>MassTransit is a message-based distributed application framework for .NET http://masstransit-project.com</Description>
<IsPackable>True</IsPackable>

<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- SourceLink Config, needs nuget package in each csproj Microsoft.SourceLink.GitHub in order to work -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\mt-logo-small.png" Pack="true" Visible="false" PackagePath=""/>
</ItemGroup>

</Project>
Binary file added src/mt-logo-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<Project>

<Import Project="..\Directory.Build.props" />

<PropertyGroup>
<LangVersion>8</LangVersion>
<WarningLevel>4</WarningLevel>
<NoWarn>$(NoWarn),CS0618</NoWarn>
<IsTestProject>true</IsTestProject>
<IsPackable>false</IsPackable>
</PropertyGroup>

</Project>

0 comments on commit cdfe5c5

Please sign in to comment.