Migrate to new tribufu project structure (#2)

* Migrate to new tribufu project structure

* Update .gitignore

* Remove old api files

* Update Directory.Build.props

* Rename solution
This commit is contained in:
Guilherme Werner 2026-06-21 12:27:05 -03:00 committed by GitHub
parent be25ee8fe3
commit 7e8e192dc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
115 changed files with 41 additions and 262 deletions

23
Scripts/Generate.ps1 Normal file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env pwsh
$ErrorActionPreference = "Stop"
$env:CSHARP_POST_PROCESS_FILE = ""
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
-i https://api.tribufu.com/openapi.json `
-g csharp `
-o . `
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
--additional-properties=packageName=Tribufu,library=restsharp,targetFramework=net47,zeroBasedEnums=true `
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated `
--skip-validate-spec
$srcDir = "./src"
$sourceDir = "./Source"
if (Test-Path $srcDir) {
New-Item -ItemType Directory -Force -Path $sourceDir | Out-Null
Copy-Item -Path (Join-Path $srcDir "*") -Destination $sourceDir -Recurse -Force
Remove-Item $srcDir -Recurse -Force
}

7
Scripts/Package.ps1 Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env pwsh
Get-ChildItem ./Intermediate -Filter *.nupkg -Recurse -Force | Remove-Item -Force
dotnet clean
dotnet build -c Release
dotnet pack -c Release -o ./Intermediate