Compare commits
5 Commits
77fe2e4d48
...
fd614be89c
| Author | SHA1 | Date | |
|---|---|---|---|
|
fd614be89c
|
|||
| 03c0c60fd7 | |||
|
|
3d39000ad0 | ||
|
|
26c6fd3517 | ||
| def7541ca1 |
@@ -9,7 +9,7 @@
|
|||||||
<!-- Suppresses display of the sign-on banner -->
|
<!-- Suppresses display of the sign-on banner -->
|
||||||
<NoLogo>true</NoLogo>
|
<NoLogo>true</NoLogo>
|
||||||
<!-- Prepend organization name to default namespace -->
|
<!-- Prepend organization name to default namespace -->
|
||||||
<RootNamespace>Kritikos.$(MSBuildProjectName)</RootNamespace>
|
<RootNamespace>Cognify.$(MSBuildProjectName)</RootNamespace>
|
||||||
<!-- Enable global usings based on project type -->
|
<!-- Enable global usings based on project type -->
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<!-- Generate documentation file and ignore warnings for undocumented elements -->
|
<!-- Generate documentation file and ignore warnings for undocumented elements -->
|
||||||
@@ -163,10 +163,11 @@
|
|||||||
|
|
||||||
<PropertyGroup Label="Package">
|
<PropertyGroup Label="Package">
|
||||||
<PackageId>$(RootNamespace)</PackageId>
|
<PackageId>$(RootNamespace)</PackageId>
|
||||||
<Company>Kritikos IO</Company>
|
<Company>Cognify</Company>
|
||||||
<Authors>Alexandros Kritikos</Authors>
|
<Authors>Elisa Servidio, Dimitrios Tsapetis, Alexandros Kritikos, Stefanos Katsikas, Katerina Pouspourika, Antonia Tsatsouli</Authors>
|
||||||
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear>
|
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear>
|
||||||
<Copyright>Copyright © 2017-$(CurrentYear) Kritikos IO. All rights reserved.</Copyright>
|
<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>
|
<PackageIcon Condition="$(ProjectIconExists) == 'True'">icon.png</PackageIcon>
|
||||||
<PackageReadmeFile Condition="$(ProjectReadMeExists) == 'True'">README.md</PackageReadmeFile>
|
<PackageReadmeFile Condition="$(ProjectReadMeExists) == 'True'">README.md</PackageReadmeFile>
|
||||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup
|
<ItemGroup
|
||||||
Condition="@(PackageReference->WithMetadataValue('Identity','Microsoft.AspNetCore.OpenApi')->Count()) > 0">
|
Condition="'$(UsingMicrosoftNETSdkWeb)' == 'True' AND @(PackageReference->WithMetadataValue('Identity','Microsoft.AspNetCore.OpenApi')->Count()) > 0">
|
||||||
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server">
|
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
@@ -33,6 +33,14 @@
|
|||||||
Condition="Exists('$(OpenApiDocumentsDirectory)/$(MSBuildProjectName).json')" />
|
Condition="Exists('$(OpenApiDocumentsDirectory)/$(MSBuildProjectName).json')" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="SetHierarchicalPackageOutputPath"
|
||||||
|
BeforeTargets="_GetAbsoluteOutputPathsForPack"
|
||||||
|
Condition="'$(ArtifactsPath)' != '' AND '$(PackageVersion)' != ''">
|
||||||
|
<PropertyGroup>
|
||||||
|
<PackageOutputPath>$(ArtifactsPath)/nuget/$(PackageId)/$(PackageVersion)</PackageOutputPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Target Name="AddInternalsVisibleTo" BeforeTargets="BeforeCompile">
|
<Target Name="AddInternalsVisibleTo" BeforeTargets="BeforeCompile">
|
||||||
<!--
|
<!--
|
||||||
Add an ItemGroup with tags in the following format:
|
Add an ItemGroup with tags in the following format:
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -5,11 +5,11 @@ A starting point for new .NET projects, based on opinionated rules.
|
|||||||
## Getting started
|
## 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:
|
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
|
```bash
|
||||||
git remote add template https://github.com/kritikos-io/templates-dotnet
|
git remote add template https://github.com/Cognify-App/templates-dotnet
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git merge template/main --allow-unrelated-histories
|
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. 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
|
1. Afterwards, you can pull future changes using
|
||||||
```bash
|
```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
|
[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
|
[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
|
||||||
Reference in New Issue
Block a user