Skip to content

Commit

Permalink
build: Add dotnet tools configuration and versioning via NBGV
Browse files Browse the repository at this point in the history
- Added `.config/dotnet-tools.json` file to configure the `nbgv` tool with version 3.6.143
- Added `Directory.Build.props` file to include package references for `Nerdbank.GitVersioning` and `DotNet.ReproducibleBuilds`
- Updated `YumeChan.sln` to include solution items like `.gitattributes`, `.gitignore`, LICENSE, and README.md
- Added `src/YumeChan.ConsoleRunner/version.json`, `src/YumeChan.Core/version.json`, `src/YumeChan.NetRunner.Plugins/version.json`, and `src/YumeChan.NetRunner/version.json` files for versioning using Nerdbank.GitVersioning
- Added a global `version.json` file with initial version set as "4.0-beta"
  • Loading branch information
SakuraIsayeki committed Sep 8, 2024
1 parent 3616e74 commit 16d4831
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"nbgv": {
"version": "3.6.143",
"commands": [
"nbgv"
],
"rollForward": false
}
}
}
13 changes: 13 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')">
<PrivateAssets>all</PrivateAssets>
<Version>3.6.143</Version>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="$(PackAsTool) != 'true'">
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.4" PrivateAssets="All"/>
</ItemGroup>
</Project>
6 changes: 6 additions & 0 deletions YumeChan.sln
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YumeChan.PluginBase.Database.Postgres", "src\YumeChan.PluginBase\YumeChan.PluginBase.Database.Postgres\YumeChan.PluginBase.Database.Postgres.csproj", "{E8018B42-85E3-45D5-BF26-9A7BB8D1E0B9}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{ABBD4637-C672-425B-B39B-D51B279CA7C5}"
ProjectSection(SolutionItems) = preProject
.gitattributes = .gitattributes
.gitignore = .gitignore
LICENSE = LICENSE
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github/workflows", ".github/workflows", "{24C84DC3-4061-4ACA-88BA-19BDAABB9A15}"
ProjectSection(SolutionItems) = preProject
Expand Down
14 changes: 14 additions & 0 deletions src/YumeChan.ConsoleRunner/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"inherit": true,
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
],
"cloudBuild": {
"buildNumber": {
"enabled": true
}
},
"pathFilters": ["."]
}
1 change: 0 additions & 1 deletion src/YumeChan.Core/YumeChan.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>3.0-rc3</Version>
<Authors>Sakura Akeno Isayeki</Authors>
<Company>Nodsoft Systems</Company>
<Product>Yume-Chan</Product>
Expand Down
14 changes: 14 additions & 0 deletions src/YumeChan.Core/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"inherit": true,
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
],
"cloudBuild": {
"buildNumber": {
"enabled": true
}
},
"pathFilters": ["."]
}
14 changes: 14 additions & 0 deletions src/YumeChan.NetRunner.Plugins/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"inherit": true,
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
],
"cloudBuild": {
"buildNumber": {
"enabled": true
}
},
"pathFilters": ["."]
}
14 changes: 14 additions & 0 deletions src/YumeChan.NetRunner/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"inherit": true,
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
],
"cloudBuild": {
"buildNumber": {
"enabled": true
}
},
"pathFilters": ["."]
}
13 changes: 13 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
"version": "4.0-beta",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
],
"cloudBuild": {
"buildNumber": {
"enabled": true
}
}
}

0 comments on commit 16d4831

Please sign in to comment.