Browse Source

update deploy scripts

pull/10934/head
Alper Ebicoglu 4 years ago
parent
commit
bb5a524f98
  1. 14
      common.props
  2. 36
      nupkg/common.ps1

14
common.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>5.0.0-rc.2</Version>
<Version>5.0.0</Version>
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn>
<PackageIconUrl>https://abp.io/assets/abp_nupkg.png</PackageIconUrl>
<PackageProjectUrl>https://abp.io/</PackageProjectUrl>
@ -9,28 +9,24 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/abpframework/abp/</RepositoryUrl>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Include symbol files (*.pdb) in the built .nupkg -->
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0-beta-20204-02">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Content Remove="*.abppkg.json"/>
<Content Remove="*.abppkg.json" />
<None Include="*.abppkg.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</None>
</ItemGroup>
<ItemGroup Condition="$(AssemblyName.EndsWith('HttpApi.Client'))">
<EmbeddedResource Include="**\*generate-proxy.json" />
<Content Remove="**\*generate-proxy.json" />
</ItemGroup>
</Project>
</Project>

36
nupkg/common.ps1

@ -2,6 +2,42 @@
$packFolder = (Get-Item -Path "./" -Verbose).FullName
$rootFolder = Join-Path $packFolder "../"
function Write-Info
{
param(
[Parameter(Mandatory = $true)]
[string]
$text
)
Write-Host $text -ForegroundColor Black -BackgroundColor Green
try
{
$host.UI.RawUI.WindowTitle = $text
}
catch
{
#Changing window title is not suppoerted!
}
}
function Write-Error
{
param(
[Parameter(Mandatory = $true)]
[string]
$text
)
Write-Host $text -ForegroundColor Red -BackgroundColor Black
}
function Seperator
{
Write-Host ("_" * 100) -ForegroundColor gray
}
# List of solutions
$solutions = (
"framework",

Loading…
Cancel
Save