Skip to content

Commit e5666a3

Browse files
authored
Fix M5Stack Fire CI-CD (#97)
1 parent 4be4c4c commit e5666a3

File tree

4 files changed

+20
-40
lines changed

4 files changed

+20
-40
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ steps:
7878
- template: azure-pipelines-templates/class-lib-package.yml@templates
7979
parameters:
8080
nugetPackageName: 'nanoFramework.AtomMatrix'
81-
81+
82+
- template: azure-pipelines-templates/class-lib-package.yml@templates
83+
parameters:
84+
nugetPackageName: 'nanoFramework.Fire'
85+
8286
- template: azure-pipelines-templates/class-lib-publish.yml@templates
8387

8488
# create or update GitHub release
@@ -97,7 +101,7 @@ steps:
97101
tag: v$(MY_NUGET_VERSION)
98102
title: '$(nugetPackageName) Library v$(MY_NUGET_VERSION)'
99103
releaseNotesSource: inline
100-
releaseNotesInline: 'Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br><h4>Install from NuGet</h4><br>The following NuGet packages are available for download from this release:<br>:package: [M5Core](https://www.nuget.org/packages/M5Core/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>package: [M5Core2](https://www.nuget.org/packages/M5Core2/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5StickC](https://www.nuget.org/packages/nanoFramework.M5StickC/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5StickCPlus](https://www.nuget.org/packages/nanoFramework.M5StickCPlus/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)'
104+
releaseNotesInline: 'Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br><h4>Install from NuGet</h4><br>The following NuGet packages are available for download from this release:<br>:package: [M5Core](https://www.nuget.org/packages/M5Core/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>package: [M5Core2](https://www.nuget.org/packages/M5Core2/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5StickC](https://www.nuget.org/packages/nanoFramework.M5StickC/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5StickCPlus](https://www.nuget.org/packages/nanoFramework.M5StickCPlus/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5Stack Fire](https://www.nuget.org/packages/nanoFramework.Fire/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)'
101105
assets: '$(Build.ArtifactStagingDirectory)/$(nugetPackageName).$(MY_NUGET_VERSION).nupkg'
102106
assetUploadMode: replace
103107
isPreRelease: true
@@ -120,7 +124,7 @@ steps:
120124
tag: v$(MY_NUGET_VERSION)
121125
title: '$(nugetPackageName) Library v$(MY_NUGET_VERSION)'
122126
releaseNotesSource: inline
123-
releaseNotesInline: 'Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br><h4>Install from NuGet</h4><br>The following NuGet packages are available for download from this release:<br>:package: [M5Core](https://www.nuget.org/packages/M5Core/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5Core2](https://www.nuget.org/packages/M5Core2/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5StickC](https://www.nuget.org/packages/nanoFramework.M5StickC/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5StickCPlus](https://www.nuget.org/packages/nanoFramework.M5StickCPlus/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)'
127+
releaseNotesInline: 'Check the [changelog]($(Build.Repository.Uri)/blob/$(Build.SourceBranchName)/CHANGELOG.md).<br><br><h4>Install from NuGet</h4><br>The following NuGet packages are available for download from this release:<br>:package: [M5Core](https://www.nuget.org/packages/M5Core/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5Core2](https://www.nuget.org/packages/M5Core2/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION).<br>:package: [M5StickC](https://www.nuget.org/packages/nanoFramework.M5StickC/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5StickCPlus](https://www.nuget.org/packages/nanoFramework.M5StickCPlus/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)<br>:package: [M5Stack Fire](https://www.nuget.org/packages/nanoFramework.Fire/$(MY_NUGET_VERSION)) v$(MY_NUGET_VERSION)'
124128
assets: '$(Build.ArtifactStagingDirectory)/$(nugetPackageName).$(MY_NUGET_VERSION).nupkg'
125129
assetUploadMode: replace
126130
isPreRelease: false

nanoFramework.Fire.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<dependency xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
2+
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>nanoFramework.Fire</id>
55
<version>$version$</version>
@@ -59,4 +59,4 @@
5959
<file src="assets\nf-logo.png" target="images\" />
6060
<file src="LICENSE.md" target="" />
6161
</files>
62-
</dependency>
62+
</package>

nanoFramework.Fire/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,7 @@
22
using System.Runtime.CompilerServices;
33
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
8-
[assembly: AssemblyTitle("CSharp.BlankApplication")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("CSharp.BlankApplication")]
13-
[assembly: AssemblyCopyright("Copyright © ")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
21-
22-
// Version information for an assembly consists of the following four values:
23-
//
24-
// Major Version
25-
// Minor Version
26-
// Build Number
27-
// Revision
28-
//
29-
// You can specify all the values or you can default the Build and Revision Numbers
30-
// by using the '*' as shown below:
31-
// [assembly: AssemblyVersion("1.0.*")]
32-
[assembly: AssemblyVersion("1.0.0.0")]
33-
[assembly: AssemblyFileVersion("1.0.0.0")]
34-
35-
/////////////////////////////////////////////////////////////////
36-
// This attribute is mandatory when building Interop libraries //
37-
// update this whenever the native assembly signature changes //
38-
[assembly: AssemblyNativeVersion("1.0.0.0")]
39-
/////////////////////////////////////////////////////////////////
5+
[assembly: AssemblyTitle("nanoFramework.Fire")]
6+
[assembly: AssemblyCompany("nanoFramework Contributors")]
7+
[assembly: AssemblyProduct("nanoFramework.Fire")]
8+
[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")]

nanoFramework.Fire/nanoFramework.Fire.nfproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,11 @@
133133
<ProjectConfigurationsDeclaredAsItems />
134134
</ProjectCapabilities>
135135
</ProjectExtensions>
136+
<Import Project="..\packages\Nerdbank.GitVersioning.3.4.203\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\packages\Nerdbank.GitVersioning.3.4.203\build\Nerdbank.GitVersioning.targets')" />
137+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
138+
<PropertyGroup>
139+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
140+
</PropertyGroup>
141+
<Error Condition="!Exists('..\packages\Nerdbank.GitVersioning.3.4.203\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Nerdbank.GitVersioning.3.4.203\build\Nerdbank.GitVersioning.targets'))" />
142+
</Target>
136143
</Project>

0 commit comments

Comments
 (0)