Skip to content

Commit 91436f3

Browse files
committed
Fixes #2
1 parent 34232e7 commit 91436f3

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

BuildVersion.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ This file is updated on a public release to set the next build that pre-releases
44
<BuildVersionData
55
BuildMajor = "2"
66
BuildMinor = "0"
7-
BuildPatch = "2"
8-
PrereleaseName ="Alpha"
7+
BuildPatch = "3"
8+
PreReleaseName ="RC"
99
/>

src/CSemVer.Build.Tasks/build/CSemVer.Build.Tasks.targets

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,16 @@
9292
BeforeTargets="CoreCompile"
9393
>
9494
<ItemGroup>
95+
<AssemblyVersionInfoGeneratedLine Include="// &lt;auto-generated/&gt;"/>
9596
<AssemblyVersionInfoGeneratedLine Include="using System.Reflection%3B"/>
96-
<AssemblyVersionInfoGeneratedLine Include='[assembly: AssemblyVersion("$(FileVersionMajor).$(FileVersionMinor).$(FileVersionBuild).$(FileVersionRevision)")]'/>
97-
<AssemblyVersionInfoGeneratedLine Include='[assembly: AssemblyFileVersion("$(FileVersionMajor).$(FileVersionMinor).$(FileVersionBuild).$(FileVersionRevision)")]'/>
98-
<AssemblyVersionInfoGeneratedLine Include='[assembly: AssemblyInformationalVersion("$(FullBuildNumber)")]'/>
97+
<AssemblyVersionInfoGeneratedLine Include='[assembly: AssemblyVersion("$(FileVersion)")]'/>
98+
<AssemblyVersionInfoGeneratedLine Include='[assembly: AssemblyFileVersion("$(FileVersion)")]'/>
99+
<AssemblyVersionInfoGeneratedLine Include='[assembly: AssemblyInformationalVersion("$(InformationalVersion)")]'/>
99100
</ItemGroup>
100-
<Message Importance="high" Text="Generating: $(IntermediateOutputPath)AssemblyVersionInfo.cs" />
101-
<WriteLinesToFile File="$(IntermediateOutputPath)AssemblyVersionInfo.cs" Overwrite="true" Lines="@(AssemblyVersionInfoGeneratedLine)" />
101+
<Message Importance='normal' Text="Generating: $(IntermediateOutputPath)AssemblyVersionInfo.g.cs" />
102+
<WriteLinesToFile File="$(IntermediateOutputPath)AssemblyVersionInfo.g.cs" Overwrite="true" Lines="@(AssemblyVersionInfoGeneratedLine)" />
102103
<ItemGroup>
103-
<Compile Include="$(IntermediateOutputPath)AssemblyVersionInfo.cs"/>
104+
<Compile Include="$(IntermediateOutputPath)AssemblyVersionInfo.g.cs"/>
104105
</ItemGroup>
105106
</Target>
106107

0 commit comments

Comments
 (0)