mirror of
https://github.com/Tribufu/TribufuDotNet
synced 2026-08-09 04:41:07 +00:00
Migrate to new tribufu project structure
This commit is contained in:
parent
be25ee8fe3
commit
6ef2762a64
114 changed files with 35 additions and 26 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
|
@ -1,10 +1,9 @@
|
|||
.vs/
|
||||
bin/
|
||||
intermediate/
|
||||
Binaries
|
||||
Intermediate/
|
||||
obj/
|
||||
releases/*
|
||||
|
||||
!releases/.gitkeep
|
||||
.DS_Store
|
||||
.env
|
||||
*.filters
|
||||
|
|
|
|||
|
|
@ -11,10 +11,9 @@
|
|||
<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>
|
||||
<IntermediateOutputPath>$(SolutionDir)Intermediate\DotNet\$(MSBuildProjectName)\$(Configuration)\</IntermediateOutputPath>
|
||||
<MSBuildProjectExtensionsPath>$(SolutionDir)Intermediate\DotNet\$(MSBuildProjectName)\</MSBuildProjectExtensionsPath>
|
||||
<OutputPath>$(SolutionDir)Binaries\$(Configuration)\DotNet\</OutputPath>
|
||||
<PackageOutputPath>$(SolutionDir)Intermediate\</PackageOutputPath>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -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
7
Scripts/Package.ps1
Normal 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
Loading…
Add table
Add a link
Reference in a new issue