Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: $(Build.SourceBranchName)-$(Build.SourceVersion)-$(Rev:r)

trigger:
- master
- refs/tags/*

pr:
- master

resources:
repositories:
- repository: internal-templates
type: github
name: xamarin/yaml-templates
endpoint: xamarin
- repository: components
type: github
name: xamarin/XamarinComponents
endpoint: xamarin

jobs:
- template: .ci/build.yml@components
parameters:
publishJob: windows
buildType: none
areaPath: 'DevDiv\Xamarin SDK'
linuxImage: '' # skip linux builds
skipValidation: true
steps:
- task: MSBuild@1
displayName: msbuild LineEditor.sln
inputs:
solution: LineEditor.sln
configuration: Release
msbuildArguments: /restore /t:Pack /p:PackageOutputPath=$(Build.SourcesDirectory)/output

- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- template: sign-artifacts/jobs/v1.yml@internal-templates
parameters:
dependsOn: [ 'build' ]
14 changes: 3 additions & 11 deletions LineEditor/LineEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,15 @@
<Title>Mono.Terminal - LineEdit, GetLine</Title>
<Description>Interactive Command Line Editor</Description>
<InferPackageContents>false</InferPackageContents>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<IncludeSymbols>True</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DocumentationFile>bin\Debug\netstandard2.0\LineEditor.xml</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType></DebugType>
<DocumentationFile>bin\Release\netstandard2.0\LineEditor.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Packaging" Version="0.2.0" />
</ItemGroup>

<!-- Workaround for 'Nugetizer packs reference assemblies into NuGet package' issue -->
<!-- https://github.com/NuGet/Home/issues/5800 -->
<ItemGroup>
<PackageFile Include="$(OutputPath)LineEditor.dll" PackagePath="lib/netstandard2.0/LineEditor.dll" />
<PackageFile Include="$(OutputPath)LineEditor.xml" PackagePath="lib/netstandard2.0/LineEditor.xml" />
</ItemGroup>
</Project>