Compare commits

..

5 Commits

Author SHA1 Message Date
fd614be89c Adds condition to PackageReference for Microsoft.AspNetCore.OpenApi 2026-03-24 01:00:37 +02:00
03c0c60fd7 Merge branch 'main' into main
Signed-off-by: Alexandros Kritikos <akritikos@outlook.com>
2026-03-22 15:15:50 +02:00
Dimitris Tsapetis
3d39000ad0 Update Directory.Build.props
Signed-off-by: Dimitris Tsapetis <dimtsap@hotmail.com>
2026-03-01 14:13:27 +01:00
Dimitris Tsapetis
26c6fd3517 Update project namespace and company information
Signed-off-by: Dimitris Tsapetis <dimtsap@hotmail.com>
2026-03-01 14:07:09 +01:00
def7541ca1 Update remote repository URL in README
Signed-off-by: Alexandros Kritikos <akritikos@outlook.com>
2026-03-01 13:52:17 +02:00
3 changed files with 19 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
<!-- Suppresses display of the sign-on banner -->
<NoLogo>true</NoLogo>
<!-- Prepend organization name to default namespace -->
<RootNamespace>Kritikos.$(MSBuildProjectName)</RootNamespace>
<RootNamespace>Cognify.$(MSBuildProjectName)</RootNamespace>
<!-- Enable global usings based on project type -->
<ImplicitUsings>enable</ImplicitUsings>
<!-- Generate documentation file and ignore warnings for undocumented elements -->
@@ -163,10 +163,11 @@
<PropertyGroup Label="Package">
<PackageId>$(RootNamespace)</PackageId>
<Company>Kritikos IO</Company>
<Authors>Alexandros Kritikos</Authors>
<Company>Cognify</Company>
<Authors>Elisa Servidio, Dimitrios Tsapetis, Alexandros Kritikos, Stefanos Katsikas, Katerina Pouspourika, Antonia Tsatsouli</Authors>
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear>
<Copyright>Copyright © 2017-$(CurrentYear) Kritikos IO. All rights reserved.</Copyright>
<Copyright>Copyright © 2024-$(CurrentYear) Cognify. All rights reserved.</Copyright>
<PackageIcon Condition="$(ProjectIconExists) == 'True'">icon.png</PackageIcon>
<PackageReadmeFile Condition="$(ProjectReadMeExists) == 'True'">README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>

View File

@@ -10,7 +10,7 @@
</ItemGroup>
<ItemGroup
Condition="@(PackageReference->WithMetadataValue('Identity','Microsoft.AspNetCore.OpenApi')->Count()) &gt; 0">
Condition="'$(UsingMicrosoftNETSdkWeb)' == 'True' AND @(PackageReference->WithMetadataValue('Identity','Microsoft.AspNetCore.OpenApi')->Count()) &gt; 0">
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
@@ -33,6 +33,14 @@
Condition="Exists('$(OpenApiDocumentsDirectory)/$(MSBuildProjectName).json')" />
</Target>
<Target Name="SetHierarchicalPackageOutputPath"
BeforeTargets="_GetAbsoluteOutputPathsForPack"
Condition="'$(ArtifactsPath)' != '' AND '$(PackageVersion)' != ''">
<PropertyGroup>
<PackageOutputPath>$(ArtifactsPath)/nuget/$(PackageId)/$(PackageVersion)</PackageOutputPath>
</PropertyGroup>
</Target>
<Target Name="AddInternalsVisibleTo" BeforeTargets="BeforeCompile">
<!--
Add an ItemGroup with tags in the following format:

View File

@@ -5,11 +5,11 @@ A starting point for new .NET projects, based on opinionated rules.
## Getting started
1. In order to be able to update your repository with the latest changes, you can use the following command **after creating** your repo:
```bash
git remote add template https://github.com/kritikos-io/templates-dotnet
git fetch --all
git merge template/main --allow-unrelated-histories
```
```bash
git remote add template https://github.com/Cognify-App/templates-dotnet
git fetch --all
git merge template/main --allow-unrelated-histories
```
1. Do this as soon as possible, as the unrelated histories flag will lead to a few conflicts that you will need to resolve manually.
1. Afterwards, you can pull future changes using
```bash
@@ -53,4 +53,4 @@ OpenAPI documents generated at build time are validated using [Spectral]. Config
[Central Package Management]: https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management
[Entity Framework Core MSBuild integration]: https://learn.microsoft.com/en-us/ef/core/cli/msbuild
[Spectral]: https://github.com/stoplightio/spectral
[Spectral]: https://github.com/stoplightio/spectral