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

7
.gitignore vendored
View file

@ -1,10 +1,11 @@
.agents/
.codex/
.vs/
bin/
intermediate/
Binaries
Intermediate/
obj/
releases/*
!releases/.gitkeep
.DS_Store
.env
*.filters

View file

@ -11,10 +11,11 @@
<NoWarn>$(NoWarn);0618;1591;1998;2002;8767</NoWarn>
</PropertyGroup>
<PropertyGroup>
<ConfigLower>$([System.String]::Copy('$(Configuration)').ToLower())</ConfigLower>
<IntermediateOutputPath>$(SolutionDir)intermediate\$(MSBuildProjectName)\$(ConfigLower)\</IntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(SolutionDir)intermediate\$(MSBuildProjectName)\</MSBuildProjectExtensionsPath>
<OutputPath>$(SolutionDir)bin\$(ConfigLower)\</OutputPath>
<PackageOutputPath>$(SolutionDir)intermediate\</PackageOutputPath>
<BaseIntermediateOutputPath>$(SolutionDir)Intermediate\DotNet\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>
<NuspecOutputPath>$(IntermediateOutputPath)</NuspecOutputPath>
<OutputPath>$(SolutionDir)Binaries\$(Configuration)\DotNet\</OutputPath>
<PackageOutputPath>$(SolutionDir)Intermediate\</PackageOutputPath>
</PropertyGroup>
</Project>

View file

@ -1,5 +1,7 @@
#!/usr/bin/env pwsh
$ErrorActionPreference = "Stop"
$env:CSHARP_POST_PROCESS_FILE = ""
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
@ -10,3 +12,12 @@ java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
--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

Some files were not shown because too many files have changed in this diff Show more