Skip to content

Commit d52df82

Browse files
authored
Work CI-CD (#67)
1 parent c51c531 commit d52df82

File tree

6 files changed

+20
-46
lines changed

6 files changed

+20
-46
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ trigger:
2121
- .github/*
2222
- Tests/*
2323

24-
tags:
25-
include:
26-
- v*
27-
2824
# PR always trigger build
2925
pr:
3026
autoCancel: true

nanoFramework.MagicBit.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.31729.503
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.2.32519.379
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "nanoFramework.MagicBit", "nanoFramework.MagicBit\nanoFramework.MagicBit.nfproj", "{08E6B7CB-17CC-46EB-8CC6-9C8235CBF0FF}"
77
EndProject
Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,9 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
43

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("")]
4+
using System.Reflection;
165

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-
/////////////////////////////////////////////////////////////////
6+
[assembly: AssemblyTitle("nanoFramework.MagicBit")]
7+
[assembly: AssemblyCompany("nanoFramework Contributors")]
8+
[assembly: AssemblyProduct("nanoFramework.MagicBit")]
9+
[assembly: AssemblyCopyright("Copyright (c) .NET Foundation and Contributors")]

nanoFramework.MagicBit/nanoFramework.MagicBit.nfproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,11 @@
9696
<ProjectConfigurationsDeclaredAsItems />
9797
</ProjectCapabilities>
9898
</ProjectExtensions>
99+
<Import Project="..\packages\Nerdbank.GitVersioning.3.5.107\build\Nerdbank.GitVersioning.targets" Condition="Exists('..\packages\Nerdbank.GitVersioning.3.5.107\build\Nerdbank.GitVersioning.targets')" />
100+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
101+
<PropertyGroup>
102+
<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>
103+
</PropertyGroup>
104+
<Error Condition="!Exists('..\packages\Nerdbank.GitVersioning.3.5.107\build\Nerdbank.GitVersioning.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Nerdbank.GitVersioning.3.5.107\build\Nerdbank.GitVersioning.targets'))" />
105+
</Target>
99106
</Project>

nanoFramework.MagicBit/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
<package id="nanoFramework.System.Device.Model" version="1.1.1" targetFramework="netnanoframework10" />
1515
<package id="nanoFramework.System.Device.Pwm" version="1.0.1" targetFramework="netnanoframework10" />
1616
<package id="nanoFramework.System.Math" version="1.4.4" targetFramework="netnanoframework10" />
17-
<package id="Nerdbank.GitVersioning" version="3.4.244" targetFramework="netnanoframework10" developmentDependency="true" />
17+
<package id="Nerdbank.GitVersioning" version="3.5.107" targetFramework="netnano1.0" developmentDependency="true" />
1818
<package id="UnitsNet.nanoFramework.Frequency" version="4.132.0" targetFramework="netnanoframework10" />
1919
</packages>

version.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "1.0.1-preview.{height}",
3+
"version": "1.1.0",
44
"buildNumberOffset": 3,
55
"assemblyVersion": {
66
"precision": "revision"
77
},
88
"semVer1NumericIdentifierPadding": 3,
99
"nuGetPackageVersion": {
10-
"semVer": 2.0
10+
"semVer": 2.0,
11+
"precision": "revision"
1112
},
1213
"publicReleaseRefSpec": [
1314
"^refs/heads/develop$",

0 commit comments

Comments
 (0)