diff --git a/common.props b/common.props new file mode 100644 index 0000000000..1a4c5d42ba --- /dev/null +++ b/common.props @@ -0,0 +1,16 @@ + + + 0.1.0 + $(NoWarn);CS1591 + http://www.aspnetboilerplate.com/images/abp_nupkg.png + http://abp.io + https://github.com/aspnetzero/abp/blob/master/LICENSE + git + https://github.com/aspnetzero/abp/ + + + + + + + \ No newline at end of file diff --git a/nupkg/pack.ps1 b/nupkg/pack.ps1 new file mode 100644 index 0000000000..f0da7cb4ed --- /dev/null +++ b/nupkg/pack.ps1 @@ -0,0 +1,32 @@ +# Paths +$packFolder = (Get-Item -Path "./" -Verbose).FullName +$slnPath = Join-Path $packFolder "../" +$srcPath = Join-Path $slnPath "src" + +# List of projects +$projects = ( + "Volo.Abp" +) + +# Rebuild solution +Set-Location $slnPath +& dotnet restore + +# Copy all nuget packages to the pack folder +foreach($project in $projects) { + + $projectFolder = Join-Path $srcPath $project + + # Create nuget pack + Set-Location $projectFolder + Remove-Item -Recurse (Join-Path $projectFolder "bin/Release") + & dotnet msbuild /t:pack /p:Configuration=Release /p:SourceLinkCreate=true + + # Copy nuget package + $projectPackPath = Join-Path $projectFolder ("/bin/Release/" + $project + ".*.nupkg") + Move-Item $projectPackPath $packFolder + +} + +# Go back to the pack folder +Set-Location $packFolder \ No newline at end of file diff --git a/src/Volo.Abp/Volo.Abp.csproj b/src/Volo.Abp/Volo.Abp.csproj index be558fc887..583f40b460 100644 --- a/src/Volo.Abp/Volo.Abp.csproj +++ b/src/Volo.Abp/Volo.Abp.csproj @@ -1,5 +1,7 @@  + + netstandard2.0 Volo.Abp