Compare commits

..

10 Commits

Author SHA1 Message Date
akritikos 3266fd5e65 🔧 Disables CentralPackageTransitivePinning in favor of explicit references
Keeping this enabled makes nuget updating a pain, with manual edits required to circumvent certain dependency graphs
2025-10-24 14:53:23 +03:00
akritikos 4e997a6fdf 🔧 Adds UseArtifactsOutput property for non-empty ArtifactsPath 2025-10-24 14:32:35 +03:00
akritikos 9a9b3ca9f8 🚚 Allows underscores in unit test names 2025-08-20 14:05:18 +03:00
akritikos 0a769040fc 🔧 Fixes EF Core migrations with compiled models 2025-08-20 13:46:32 +03:00
akritikos 268aff434e 🚨 Adds back dotnet ruleset 2025-08-20 13:42:33 +03:00
akritikos 30e2c18b68 🔧 Enables opting out of custom paths via DisableCustomArtifactsPath variable
Necessary to faciliate Deterministic builds
2025-08-16 18:15:29 +03:00
akritikos 405767587e 🔖 Updates GitVersion to latest configuration values 2025-08-16 17:39:37 +03:00
akritikos aff7de0901 🚚 Falls back to msbuild configured paths 2025-08-16 16:24:28 +03:00
akritikos 6bb600ac87 🚚 Sets proper path for published artifacts and allows overriding 2025-08-16 16:23:00 +03:00
akritikos b744a8b052 🔖 Moves back to GitHub Flow branching strategy 2025-07-10 14:38:43 +03:00
5 changed files with 32 additions and 23 deletions
-2
View File
@@ -94,8 +94,6 @@
"--nologo",
"--verbosity",
"minimal",
"--output",
"packages",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"/p:TF_BUILD=true",
+15 -4
View File
@@ -50,15 +50,19 @@
<DefaultItemExcludes>$(DefaultItemExcludes);*.log;*.binlog</DefaultItemExcludes>
</PropertyGroup>
<PropertyGroup Condition="$(ArtifactsPath) == ''">
<PropertyGroup Condition="$(ArtifactsPath) == '' AND $(DisableCustomArtifactsPath) != 'true'">
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
</PropertyGroup>
<PropertyGroup Condition="$(ArtifactsPath) != ''">
<UseArtifactsOutput>true</UseArtifactsOutput>
</PropertyGroup>
<PropertyGroup Label="Central Package Management">
<!-- Create Directory.Packages.props file next to solution to use -->
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<!-- Any transitive dependency defined below will be used explicitly on the version stated -->
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<PropertyGroup Label="Project Assets">
@@ -134,6 +138,12 @@
</AssemblyAttribute>
</ItemGroup>
<!-- Use .NET ruleset for analyzers -->
<PropertyGroup Label="Code Analysis Ruleset"
Condition="Exists('$(MSBuildThisFileDirectory)\dotnet.ruleset')">
<CodeAnalysisRuleset>$(MSBuildThisFileDirectory)\dotnet.ruleset</CodeAnalysisRuleset>
</PropertyGroup>
<!-- Use readme as nuget information -->
<ItemGroup Label="Readme" Condition="$(IsPackable) == 'True' AND $(ProjectReadMe) != ''">
<None Include="$(ProjectReadMe)" Pack="true" PackagePath="" Visible="true"/>
@@ -164,8 +174,9 @@
<CurrentYear>$([System.DateTime]::Now.ToString(yyyy))</CurrentYear>
<Copyright>Copyright © 2017-$(CurrentYear) Kritikos IO. All rights reserved.</Copyright>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<PackageOutputPath>$(MSBuildThisFileDirectory)/packages</PackageOutputPath>
<PublishDir>$(MSBuildThisFileDirectory)/upload/$(ProjectName)</PublishDir>
<PackageOutputPath Condition="$(PackageOutputPath) == ''">$(MSBuildThisFileDirectory)/packages</PackageOutputPath>
<PublishDir Condition="$(PublishDir) == ''">
$(MSBuildThisFileDirectory)/upload/$(MSBuildProjectName)</PublishDir>
<PackageIcon Condition="$(ProjectIconExists) == 'True'">icon.png</PackageIcon>
<PackageReadmeFile Condition="$(ProjectReadMeExists) == 'True'">README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
+6
View File
@@ -10,6 +10,7 @@
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
<RunSettingsFilePath>$(MSBuildThisFileDirectory)\.runsettings</RunSettingsFilePath>
<NoWarn>$(NoWarn);CA1707</NoWarn>
</PropertyGroup>
<ItemGroup Label="Hide Assets">
@@ -65,4 +66,9 @@
<PackageReleaseNotes>@(ReleaseNoteLines, '%0a')</PackageReleaseNotes>
</PropertyGroup>
</Target>
<Import
Condition="Exists('$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).EntityFrameworkCore.targets')"
Project="$(MSBuildProjectDirectory)\obj\$(MSBuildProjectFile).EntityFrameworkCore.targets" />
</Project>
+1 -1
View File
@@ -1,6 +1,6 @@
<Project>
<ItemGroup Label="Packages">
<PackageVersion Include="GitVersion.MsBuild" Version="6.3.0" />
<PackageVersion Include="GitVersion.MsBuild" Version="6.4.0" />
<PackageVersion Include="Microsoft.AspNetCore.OpenApi" Version="9.0.6" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageVersion Include="NSubstitute.Analyzers.CSharp" Version="1.0.17" />
+10 -16
View File
@@ -1,30 +1,24 @@
workflow: GitFlow/v1
workflow: GitHubFlow/v1
mode: ContinuousDelivery
tag-prefix: '[vV]?'
ignore:
paths:
- ^(?!src\/|Directory\.Packages\.props|GitVersion.yml).*
branches:
main:
mode: ContinuousDelivery
label: rc
develop:
label: alpha
label: 'beta'
regex: '^(dev|develop|development)$'
source-branches:
- main
- feature
feature:
mode: ContinuousDelivery
label: '{BranchName}'
source-branches:
- develop
hotfix:
regex: ^hotfix?[\/-](?<BranchName>.+)
mode: ContinuousDelivery
release:
mode: ContinuousDelivery
label: ''
source-branches:
- main
- hotfix
hotfix:
mode: ContinuousDelivery
label: '{BranchName}'
source-branches:
- release
prevent-increment:
of-merged-branch: true