Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit fda65d4

Browse files
committed
Set the default version numbers to 0.0.0 (for local develop builds).
1 parent 9474e0a commit fda65d4

File tree

6 files changed

+35
-32
lines changed

6 files changed

+35
-32
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# version format
2-
version: 0.1.2.{build}
2+
version: 0.2.0.{build}
33

44
# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
55
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta

build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if "%APPVEYOR_BUILD_NUMBER%" == "" (
1010
SET APPVEYOR_BUILD_NUMBER=100
1111
)
1212
if "%PACKAGE_VERISON%" == "" (
13-
SET PACKAGE_VERISON=0.1.0
13+
SET PACKAGE_VERISON=0.0.0
1414
)
1515

1616
SET APPVEYOR_BUILD_VERSION=%PACKAGE_VERISON%.%APPVEYOR_BUILD_NUMBER%

build/package.proj

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,17 @@
9797
<MakeDir Directories="$(ArtifactsDir)" />
9898
</Target>
9999

100-
<!-- UPDATE PROJECT ASSEMBLEY VERSION -->
101-
<Target Name="UpdateAssemblyInfo" DependsOnTargets="Clean">
102-
<FileUpdate Encoding="ASCII" Files="$(CoreProjectDir)\Properties\AssemblyInfo.cs" Regex="AssemblyVersion\(&quot;.*&quot;\)\]" ReplacementText="AssemblyVersion(&quot;$(FileVersion)&quot;)]" />
103-
<FileUpdate Encoding="ASCII" Files="$(CoreProjectDir)\Properties\AssemblyInfo.cs" Regex="AssemblyFileVersion\(&quot;.*&quot;\)\]" ReplacementText="AssemblyFileVersion(&quot;$(FileVersion)&quot;)]" />
104-
<FileUpdate Encoding="ASCII" Files="$(CoreProjectDir)\Properties\AssemblyInfo.cs" Regex="AssemblyInformationalVersion\(&quot;.*&quot;\)\]" ReplacementText="AssemblyInformationalVersion(&quot;$(ProductVersion)&quot;)]" />
105-
</Target>
100+
<!-- UPDATE PROJECT ASSEMBLEY VERSION -->
101+
<Target Name="UpdateAssemblyInfo" DependsOnTargets="Clean">
102+
<ItemGroup>
103+
<VersionMajor Include="$(ProductVersion.Split('.')[0])" />
104+
<VersionMinor Include="$(ProductVersion.Split('.')[1])" />
105+
</ItemGroup>
106+
<AssemblyInfo CodeLanguage="CS"
107+
OutputFile="$(CoreProjectDir)\Properties\VersionInfo.cs"
108+
AssemblyVersion="@(VersionMajor).@(VersionMinor).*"
109+
AssemblyInformationalVersion="$(ProductVersion)"/>
110+
</Target>
106111

107112
<!-- COMPILE -->
108113
<Target Name="Compile" DependsOnTargets="UpdateAssemblyInfo">

src/Our.Umbraco.DocTypeGridEditor/Our.Umbraco.DocTypeGridEditor.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@
231231
<Compile Include="Models\DetachedPublishedProperty.cs" />
232232
<Compile Include="PackageActions\AddObjectToJsonArray.cs" />
233233
<Compile Include="Properties\AssemblyInfo.cs" />
234+
<Compile Include="Properties\VersionInfo.cs" />
234235
<Compile Include="Web\Attributes\DocTypeGridEditorPreviewAttribute.cs" />
235236
<Compile Include="Web\Controllers\DocTypeGridEditorApiController.cs" />
236237
<Compile Include="Extensions\ContentTypeServiceExtensions.cs" />
Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,14 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
32
using System.Runtime.InteropServices;
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.
84
[assembly: AssemblyTitle("Our.Umbraco.DocTypeGridEditor")]
95
[assembly: AssemblyDescription("")]
106
[assembly: AssemblyConfiguration("")]
117
[assembly: AssemblyCompany("The Umbraco Community")]
128
[assembly: AssemblyProduct("Our.Umbraco.DocTypeGridEditor")]
13-
[assembly: AssemblyCopyright("Copyright The Umbraco Community 2015")]
9+
[assembly: AssemblyCopyright("Copyright \xa9 The Umbraco Community 2015")]
1410
[assembly: AssemblyTrademark("")]
1511
[assembly: AssemblyCulture("")]
1612

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.
2013
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("693e3ce7-edf1-4775-a317-9882495f3a2d")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("0.1.1")]
35-
[assembly: AssemblyVersion("0.1.1")]
36-
[assembly: AssemblyFileVersion("0.1.1")]
14+
[assembly: Guid("693E3CE7-EDF1-4775-A317-9882495F3A2D")]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by a tool.
4+
// Runtime Version:4.0.30319.34209
5+
//
6+
// Changes to this file may cause incorrect behavior and will be lost if
7+
// the code is regenerated.
8+
// </auto-generated>
9+
//------------------------------------------------------------------------------
10+
11+
using System;
12+
using System.Reflection;
13+
using System.Runtime.CompilerServices;
14+
using System.Runtime.InteropServices;
15+
16+
[assembly: AssemblyVersion("0.0.*")]
17+
[assembly: AssemblyInformationalVersion("0.0.0-develop")]
18+
19+

0 commit comments

Comments
 (0)