Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 34d6af2

Browse files
committed
Build packages automatically in CI builds
1 parent d225897 commit 34d6af2

File tree

6 files changed

+12
-112
lines changed

6 files changed

+12
-112
lines changed

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ stages:
4646
inputs:
4747
version: $(DotNetVersion)
4848
performMultiLevelLookup: true
49-
- script: 'dotnet tool update -g dotnet-format && dotnet format -w $(Build.SourcesDirectory) --dry-run --check -v:diag'
49+
- script: 'dotnet tool update -g dotnet-format && dotnet format -f $(Build.SourcesDirectory)\src --dry-run --check -v:diag'
5050
displayName: Check .editorconfig compliance
5151
- template: dump-environment.yml@templates
5252

build.proj

-102
This file was deleted.

src/Directory.Build.props

+3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212

1313
<DefaultItemExcludes>$(DefaultItemExcludes);**/*.binlog</DefaultItemExcludes>
1414

15+
<CI>false</CI>
1516
<CI Condition="'$(TF_BUILD)' == 'true' or '$(APPVEYOR)' != ''">true</CI>
1617
<PackageOutputPath Condition="'$(PackageOutputPath)' == ''">$(MSBuildThisFileDirectory)../pack</PackageOutputPath>
18+
<GeneratePackageOnBuild>$(CI)</GeneratePackageOnBuild>
19+
<PackageOnBuild>$(CI)</PackageOnBuild>
1720
</PropertyGroup>
1821

1922
<ItemGroup>

src/Merq.sln

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
77
ProjectSection(SolutionItems) = preProject
88
.editorconfig = .editorconfig
99
..\azure-pipelines.yml = ..\azure-pipelines.yml
10-
..\build.proj = ..\build.proj
1110
Directory.Build.props = Directory.Build.props
1211
Directory.Build.targets = Directory.Build.targets
1312
GlobalAssemblyInfo.cs = GlobalAssemblyInfo.cs
@@ -16,8 +15,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1615
Merq.VisualStudio.proj = Merq.VisualStudio.proj
1716
Merq.vssettings = Merq.vssettings
1817
NuGet.Config = NuGet.Config
19-
..\packages.config = ..\packages.config
2018
..\README.md = ..\README.md
19+
Version.targets = Version.targets
2120
EndProjectSection
2221
EndProject
2322
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{D01702F6-0CCA-4107-883D-57092F592644}"

src/Vsix/Merq.Vsix/Merq.Vsix.targets

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<Target Name="AppendVsixVersionToTargetVsixContainer" BeforeTargets="CreateVsixContainer" DependsOnTargets="Version">
2424
<PropertyGroup>
25-
<TargetVsixContainerName>$([System.IO.Path]::ChangeExtension('$(TargetVsixContainerName)', '$(VersionPrefix).vsix'))</TargetVsixContainerName>
25+
<TargetVsixContainerName>$([System.IO.Path]::ChangeExtension('$(TargetVsixContainerName)', '$(FileVersion).vsix'))</TargetVsixContainerName>
2626
<TargetVsixContainer Condition="'$(PackageOutputPath)' != ''">$([System.IO.Path]::Combine('$(PackageOutputPath)', '$(TargetVsixContainerName)'))</TargetVsixContainer>
2727
<TargetVsixContainer Condition="'$(Out)' == ''">$([System.IO.Path]::Combine('$(OutDir)', '$(TargetVsixContainerName)'))</TargetVsixContainer>
2828
</PropertyGroup>

src/Vsix/Merq.Vsix/source.extension.vsixmanifest

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<PackageManifest Version="2.0.0"
3-
xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011"
4-
xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
2+
<PackageManifest Version="2.0.0"
3+
xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011"
4+
xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
55
<Metadata>
66
<Identity Id="Merq" Version="|Merq.Vsix;GetVsixVersion|" Language="en-US" Publisher="Mobile Essentials" />
77
<DisplayName>Extensibility Message Bus</DisplayName>
@@ -20,8 +20,8 @@
2020
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
2121
</Prerequisites>
2222
<Assets>
23-
<Asset Type="Microsoft.VisualStudio.VsPackage" Path="BindingRedirects.pkgdef" />
24-
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
25-
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%|" />
23+
<Asset Type="Microsoft.VisualStudio.VsPackage" Path="BindingRedirects.pkgdef" />
24+
<Asset Type="Microsoft.VisualStudio.VsPackage" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%;PkgdefProjectOutputGroup|" />
25+
<Asset Type="Microsoft.VisualStudio.MefComponent" d:Source="Project" d:ProjectName="%CurrentProject%" Path="|%CurrentProject%|" />
2626
</Assets>
2727
</PackageManifest>

0 commit comments

Comments
 (0)