Migrate to new tribufu project structure

This commit is contained in:
Guilherme Werner 2026-06-21 12:07:08 -03:00
parent be25ee8fe3
commit 6ef2762a64
114 changed files with 35 additions and 26 deletions

5
.gitignore vendored
View file

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

View file

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

View file

@ -1,5 +1,7 @@
#!/usr/bin/env pwsh #!/usr/bin/env pwsh
$ErrorActionPreference = "Stop"
$env:CSHARP_POST_PROCESS_FILE = "" $env:CSHARP_POST_PROCESS_FILE = ""
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` 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 ` --additional-properties=packageName=Tribufu,library=restsharp,targetFramework=net47,zeroBasedEnums=true `
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated ` --openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated `
--skip-validate-spec --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