Compare commits
3 Commits
ac34361d78
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 86ec037531 | |||
| f50603205f | |||
| 8707031fa2 |
@@ -11,8 +11,14 @@
|
|||||||
<Authors>Azures04</Authors>
|
<Authors>Azures04</Authors>
|
||||||
|
|
||||||
<PackAsTool>false</PackAsTool>
|
<PackAsTool>false</PackAsTool>
|
||||||
|
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||||
|
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<Target Name="AddRuntimeDependencies" BeforeTargets="GenerateNuspec">
|
||||||
|
<ItemGroup>
|
||||||
|
<_PackageFiles Include="$(OutputPath)\*.dll" Exclude="$(OutputPath)\$(AssemblyName).dll" TargetPath="lib\$(TargetFramework)" />
|
||||||
|
</ItemGroup>
|
||||||
|
</Target>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="SharpCompress" Version="0.44.4" />
|
<PackageReference Include="SharpCompress" Version="0.44.4" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
17
publish.ps1
17
publish.ps1
@@ -1,17 +1,12 @@
|
|||||||
Clear-Host
|
Clear-Host
|
||||||
$version = "0.0.1"
|
$version = "0.0.1"
|
||||||
|
|
||||||
Write-Host "`r`n[Task 1/5] Cleaning project..." -ForegroundColor Magenta
|
Write-Host "`r`n[Task 1/3] Cleaning and Building (Release)..." -ForegroundColor Magenta
|
||||||
dotnet clean -c Release
|
dotnet clean -c Release
|
||||||
|
dotnet build -c Release /p:Version=$version
|
||||||
|
|
||||||
Write-Host "`r`n[Task 2/5] Building project..." -ForegroundColor Magenta
|
Write-Host "`r`n[Task 2/3] Packing project..." -ForegroundColor Magenta
|
||||||
dotnet build -c Release
|
dotnet pack -c Release --no-build /p:PackageVersion=$version
|
||||||
|
|
||||||
Write-Host "`r`n[Task 3/5] Restoring project..." -ForegroundColor Magenta
|
Write-Host "`r`n[Task 3/3] Publishing project..." -ForegroundColor Magenta
|
||||||
dotnet restore
|
dotnet nuget push "bin\Release\BrikPackager.$version.nupkg" --source AzuresBrikGitea --skip-duplicate
|
||||||
|
|
||||||
Write-Host "`r`n[Task 4/5] Packing project..." -ForegroundColor Magenta
|
|
||||||
dotnet pack --version $version -c Release
|
|
||||||
|
|
||||||
Write-Host "`r`n[Task 5/5] Publishing project..." -ForegroundColor Magenta
|
|
||||||
dotnet nuget push --source AzuresBrikGitea "bin\Debug\BrikPackager.$version.nupkg" --skip-duplicate
|
|
||||||
Reference in New Issue
Block a user