-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
1,067 additions
and
9,689 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -235,3 +235,5 @@ _Pvt_Extensions | |
|
||
# FAKE - F# Make | ||
.fake/ | ||
*.db | ||
/build/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
param ( | ||
[string]$BuildVersionNumber=$(throw "-BuildVersionNumber is required."), | ||
[string]$TagVersionNumber | ||
) | ||
# Set the version number in package.json | ||
$ProjectJsonPath = Join-Path -Path $PSScriptRoot\..\ -ChildPath "src\Flurl.Http.Xml\project.json" | ||
if ($TagVersionNumber){ | ||
(gc -Path $ProjectJsonPath) ` | ||
-replace "(?<=`"version`":\s`")[.\w-]*(?=`",)", "$TagVersionNumber" | | ||
sc -Path $ProjectJsonPath -Encoding UTF8 | ||
} | ||
else { | ||
(gc -Path $ProjectJsonPath) ` | ||
-replace "(?<=`"version`":\s`")[.\w-]*(?=`",)", "$BuildVersionNumber" | | ||
sc -Path $ProjectJsonPath -Encoding UTF8 | ||
} | ||
# run restore on all project.json files in the src folder including 2>1 to redirect stderr to stdout for badly behaved tools | ||
Get-ChildItem -Path $PSScriptRoot\..\src -Filter project.json -Recurse | ForEach-Object { & dotnet restore $_.FullName 2>1 } | ||
|
||
# run pack on all project.json files in the src folder including 2>1 to redirect stderr to stdout for badly behaved tools | ||
Get-ChildItem -Path $PSScriptRoot\..\src -Filter project.json -Recurse | ForEach-Object { & dotnet pack $_.FullName -c Release 2>1 } |
Oops, something went wrong.