-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add sourcelink * Update appveyor artifact path * Improve publish script
- Loading branch information
Showing
8 changed files
with
73 additions
and
19 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
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,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFrameworks>netstandard1.6;net461</TargetFrameworks> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<DotNetCliToolReference Include="dotnet-sourcelink" Version="[2.1.0]" /> | ||
</ItemGroup> | ||
</Project> |
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,14 @@ | ||
<Project> | ||
<PropertyGroup> | ||
|
||
<Authors>Aleksander Heintz</Authors> | ||
<PackageLicenseUrl>https://opensource.org/licenses/MIT</PackageLicenseUrl> | ||
<!--<PackageIconUrl>https://ctaggart.github.io/SourceLink/SourceLink128.jpg</PackageIconUrl>--> | ||
<PackageProjectUrl>/~https://github.com/YoloDev/YoloDev.AspNetCore.Assets</PackageProjectUrl> | ||
<PackageTags>aspnet mvc webpack assets</PackageTags> | ||
<Description>Deal with assets that have generated names for dist.</Description> | ||
|
||
<DebugType>embedded</DebugType> | ||
|
||
</PropertyGroup> | ||
</Project> |
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,5 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageReference Include="SourceLink.Create.CommandLine" Version="[2.1.0]" PrivateAssets="all" /> | ||
</ItemGroup> | ||
</Project> |
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 was deleted.
Oops, something went wrong.
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,37 @@ | ||
# create this function in the calling script | ||
function Get-ScriptDirectory { Split-Path $MyInvocation.ScriptName } | ||
|
||
function __exec($cmd) { | ||
$cmdName = [IO.Path]::GetFileName($cmd) | ||
Write-Host -ForegroundColor Cyan "> $cmdName $args" | ||
$originalErrorPref = $ErrorActionPreference | ||
$ErrorActionPreference = 'Continue' | ||
& $cmd @args | ||
$exitCode = $LASTEXITCODE | ||
$ErrorActionPreference = $originalErrorPref | ||
if ($exitCode -ne 0) { | ||
throw "'$cmdName $args' failed with exit code: $exitCode" | ||
} | ||
} | ||
|
||
$bindir = Join-Path (Get-ScriptDirectory) "../bin" | ||
if (Test-Path $bindir) { | ||
Remove-Item -Recurse -Force $bindir | ||
} | ||
|
||
$projects = Get-ChildItem src/**/*.csproj | ||
foreach ($project in $projects) { | ||
__exec dotnet pack "$project" "-c" "release" "-o" "$bindir" "/v:m" "/p:ci=true" | ||
} | ||
|
||
$nupkgs = Get-ChildItem bin/*.nupkg | ||
Push-Location "build" | ||
try { | ||
__exec dotnet restore | ||
foreach ($nupkg in $nupkgs) { | ||
__exec dotnet sourcelink test $nupkg | ||
} | ||
} | ||
finally { | ||
Pop-Location | ||
} |
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