File tree 4 files changed +22
-30
lines changed
4 files changed +22
-30
lines changed Original file line number Diff line number Diff line change 15
15
<Description >https://github.com/Knagis/CommonMark.NET</Description >
16
16
<Copyright >Copyright © Kārlis Gaņģis 2014</Copyright >
17
17
18
- <Version >1.0.0.0</Version >
19
- <FileVersion >1.0.0.0</FileVersion >
20
-
21
18
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
22
19
<NuspecFile >..\CommonMark.NET.Console.nuspec</NuspecFile >
23
20
<NuspecProperties >configuration=$(Configuration)</NuspecProperties >
42
39
</PropertyGroup >
43
40
44
41
<ItemGroup >
45
- <ProjectReference Include =" ..\CommonMark\CommonMark.Base.csproj " />
42
+ <PackageReference Include =" Nerdbank.GitVersioning " Version = " 2.2.13 " PrivateAssets = " all " />
46
43
</ItemGroup >
47
44
48
45
<ItemGroup >
49
- <EmbeddedResource Include =" ..\CommonMark.NET.Console.nuspec" >
50
- <Link >Properties\CommonMark.NET.Console.nuspec</Link >
51
- </EmbeddedResource >
46
+ <ProjectReference Include =" ..\CommonMark\CommonMark.Base.csproj" />
52
47
</ItemGroup >
53
48
54
49
</Project >
Original file line number Diff line number Diff line change 19
19
<Description >https://github.com/Knagis/CommonMark.NET</Description >
20
20
<Copyright >Copyright © Kārlis Gaņģis 2014-2016</Copyright >
21
21
22
- <Version >0.1.0.0</Version >
23
- <FileVersion >0.1.0.0</FileVersion >
24
-
25
22
<GeneratePackageOnBuild >true</GeneratePackageOnBuild >
26
23
<NuspecFile >..\CommonMark.NET.nuspec</NuspecFile >
27
24
<NuspecProperties >configuration=$(Configuration)</NuspecProperties >
69
66
</Choose >
70
67
71
68
<ItemGroup >
72
- <EmbeddedResource Include =" ..\CommonMark.NET.nuspec" >
73
- <Link >Properties\CommonMark.NET.nuspec</Link >
74
- </EmbeddedResource >
69
+ <PackageReference Include =" Nerdbank.GitVersioning" Version =" 2.2.13" PrivateAssets =" all" />
75
70
</ItemGroup >
76
71
77
72
</Project >
Original file line number Diff line number Diff line change 3
3
using System ;
4
4
using System . IO ;
5
5
using System . Reflection ;
6
- using System . Text ;
7
6
using System . Threading ;
8
7
9
8
namespace CommonMark
@@ -46,22 +45,7 @@ public static Version Version
46
45
47
46
private static Version InitializeVersion ( )
48
47
{
49
- // System.Xml is not available so resort to string parsing.
50
- using ( var stream = Assembly . GetManifestResourceStream ( "CommonMark.Properties.CommonMark.NET.nuspec" ) )
51
- using ( var reader = new System . IO . StreamReader ( stream , Encoding . UTF8 ) )
52
- {
53
- string line ;
54
- while ( ( line = reader . ReadLine ( ) ) != null )
55
- {
56
- var i = line . IndexOf ( "<version>" , StringComparison . Ordinal ) ;
57
- if ( i == - 1 )
58
- continue ;
59
-
60
- i += 9 ;
61
- return new Version ( line . Substring ( i , line . IndexOf ( "</version>" , StringComparison . Ordinal ) - i ) ) ;
62
- }
63
- }
64
- return null ;
48
+ return new Version ( ThisAssembly . AssemblyFileVersion ) ;
65
49
}
66
50
67
51
/// <summary>
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json" ,
3
+ "version" : " 0.15.1.0" ,
4
+ "assemblyVersion" : {
5
+ "precision" : " minor"
6
+ },
7
+ "publicReleaseRefSpec" : [
8
+ " ^refs/heads/master$"
9
+ ],
10
+ "nugetPackageVersion" : {
11
+ "semVer" : 1
12
+ },
13
+ "cloudBuild" : {
14
+ "buildNumber" : {
15
+ "enabled" : true
16
+ }
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments