Skip to content

Commit

Permalink
Fix nuget packages missing logo (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Jan 7, 2025
1 parent 83df3f8 commit 7e74f60
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 10 deletions.
5 changes: 2 additions & 3 deletions CrestApps.OrchardCore.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Common", "Common", "{03CAC8
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ProjectItems", "ProjectItems", "{E94D7009-1D71-46B8-A78F-88DA48F4FCB6}"
ProjectSection(SolutionItems) = preProject
.dockerignore = .dockerignore
src\Directory.Build.props = src\Directory.Build.props
src\Directory.Packages.props = src\Directory.Packages.props
Directory.Build.props = Directory.Build.props
Directory.Packages.props = Directory.Packages.props
gulpfile.js = gulpfile.js
NuGet.Config = NuGet.Config
package.json = package.json
Expand Down
92 changes: 92 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<Project>

<!-- Default TFMs to use when building and packaging -->
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Authors>Mike Alhayek</Authors>
<Company>CrestApps</Company>
<PackageIcon>CrestAppsLogo.png</PackageIcon>
<IsPackable>true</IsPackable>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/CrestApps/CrestApps.OrchardCore</RepositoryUrl>
</PropertyGroup>

<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)/CrestAppsLogo.png">
<Pack>True</Pack>
<PackagePath>CrestAppsLogo.png</PackagePath>
</None>
</ItemGroup>

<PropertyGroup>
<VersionPrefix>1.2.0</VersionPrefix>
<VersionSuffix>preview</VersionSuffix>
<VersionSuffix Condition="'$(VersionSuffix)' != '' AND '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
<InformationalVersion></InformationalVersion>
</PropertyGroup>

<PropertyGroup>
<!-- https://aka.ms/vs-build-acceleration -->
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
</PropertyGroup>

<PropertyGroup Label="Analysis rules">

<AnalysisLevel>latest-Recommended</AnalysisLevel>

<!-- Member is explicitly initialized to its default value -->
<NoWarn>$(NoWarn);CA1805</NoWarn>

<!-- The behavior could vary based on the current user's locale setting -->
<NoWarn>$(NoWarn);CA1304;CA1305;CA1310</NoWarn>

<!-- Specify a culture or use an invariant version to avoid implicit dependency on current culture -->
<NoWarn>$(NoWarn);CA1311</NoWarn>

<!-- Do not declare static members on generic types -->
<NoWarn>$(NoWarn);CA1000</NoWarn>

<!-- For improved performance, use the LoggerMessage delegates -->
<NoWarn>$(NoWarn);CA1848</NoWarn>

<!-- Identifier contains type name -->
<NoWarn>$(NoWarn);CA1720</NoWarn>

<!-- Do not declare visible instance fields -->
<NoWarn>$(NoWarn);CA1051</NoWarn>

<!-- Avoid using cref tags with a prefix -->
<NoWarn>$(NoWarn);CA1200</NoWarn>

<!-- Rename type name X so that it does not end in 'Delegate', 'EventHandler', 'Permission' etc -->
<NoWarn>$(NoWarn);CA1711</NoWarn>

<!-- Parameter name differs from original overriden implemented name -->
<NoWarn>$(NoWarn);CA1725</NoWarn>

<!-- Reserved keyword -->
<NoWarn>$(NoWarn);CA1716</NoWarn>

<!-- Type owns disposable field(s) -->
<NoWarn>$(NoWarn);CA1001</NoWarn>

<!-- Exception type is not sufficiently specific -->
<NoWarn>$(NoWarn);CA2201</NoWarn>

<!-- Remove the underscores from member name -->
<NoWarn>$(NoWarn);CA1707</NoWarn>

<!-- Use PascalCase for named placeholders in the logging message template -->
<NoWarn>$(NoWarn);CA1727</NoWarn>

<!-- CA1861: Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array -->
<NoWarn>$(NoWarn);CA1861</NoWarn>

<!-- NU1605: NuGet Warning NU1605 -->
<NoWarn>$(NoWarn);NU1605</NoWarn>

<NoWarn>$(NoWarn),1573,1591,1712</NoWarn>

</PropertyGroup>
</Project>
46 changes: 46 additions & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<OrchardCoreVersion>[2.1.0,3.0.0)</OrchardCoreVersion>
</PropertyGroup>

<PropertyGroup>
<!-- Special case - this property is used by a DotNetCliToolReference -->
<DotNetXunitVersion>2.3.0</DotNetXunitVersion>
</PropertyGroup>

<ItemGroup>
<!-- Miscellaneous Packages -->

<!-- OrchardCore Packages -->
<PackageVersion Include="OrchardCore.DisplayManagement.Abstractions" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.DisplayManagement" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Users.Abstractions" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Users.Core" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Infrastructure.Abstractions" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Liquid.Abstractions" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.ContentFields" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Contents" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.ContentTypes" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.ContentTypes.Abstractions" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.ContentManagement" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.ContentManagement.Abstractions" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Media" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Module.Targets" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Navigation.Core" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Logging.NLog" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="OrchardCore.Application.Cms.Core.Targets" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="TheAdmin" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="TheTheme" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="SafeMode" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="TheAgencyTheme" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="TheComingSoonTheme" Version="$(OrchardCoreVersion)"/>
<PackageVersion Include="TheBlogTheme" Version="$(OrchardCoreVersion)"/>

<PackageVersion Include="coverlet.collector" Version="6.0.3" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0" />
<PackageReference Include="coverlet.collector" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.visualstudio" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 7e74f60

Please sign in to comment.