Skip to content

Commit f10ffcf

Browse files
Update AppVeyor build script to set assembly/file versions.
1 parent b4221c0 commit f10ffcf

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

Take2/AppVeyor.proj

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
<SQ_RESULTSFILES Include="@(XU_RESULTSFILE);@(OC_RESULTSFILE)" />
66
</ItemGroup>
77
<PropertyGroup>
8-
<APPVEYOR_BUILD_VERSION Condition="'$(APPVEYOR_BUILD_VERSION)' == ''">0.0.0-rc0</APPVEYOR_BUILD_VERSION>
8+
<APPVEYOR_BUILD_VERSION Condition="'$(APPVEYOR_BUILD_VERSION)' == ''">1.0.0.0</APPVEYOR_BUILD_VERSION>
99
<APPVEYOR_REPO_TAG_NAME Condition="'$(APPVEYOR_REPO_TAG_NAME)' == ''">$(APPVEYOR_BUILD_VERSION)</APPVEYOR_REPO_TAG_NAME>
1010

11+
<ASSEMBLY_COPYRIGHT Condition="'$(ASSEMBLY_COPYRIGHT)' == ''">© 2019 Ivan Andrew Pointer</ASSEMBLY_COPYRIGHT>
12+
1113
<TESTS_DLL Condition="'$(TESTS_DLL)' == ''">NuLog.Tests\bin\Debug\NuLog.Tests.dll</TESTS_DLL>
1214

1315
<XU_VERSION Condition="'$(XU_VERSION)' == ''">2.4.1</XU_VERSION>
@@ -52,13 +54,19 @@
5254
<Target Name="AppVeyor" DependsOnTargets="Inspect;AppVeyorBuild">
5355
</Target>
5456
<Target Name="AppVeyorBuild">
55-
<MSBuild Projects="@(ProjectToBuild)" />
56-
<Exec Command="nuget pack NuGet\NuLog.nuspec -version $(APPVEYOR_REPO_TAG_NAME)" />
57-
<Exec Command="nuget pack NuGet\NuLog.Configuration\NuLog.Configuration.nuspec -version $(APPVEYOR_REPO_TAG_NAME)" />
58-
5957
<ItemGroup>
6058
<FilesToDelete Include="**\NuLog*0.0.0-rc0.nupkg" />
59+
<AssemblyInfoFiles Include="**\NuLog*\AssemblyInfo.cs" />
6160
</ItemGroup>
61+
62+
<AssemblyInfo AssemblyInfoFiles="@(AssemblyInfoFiles)"
63+
AssemblyCopyright="$(ASSEMBLY_COPYRIGHT)"
64+
AssemblyVersion="$(APPVEYOR_BUILD_VERSION)"
65+
AssemblyFileVersion="$(APPVEYOR_BUILD_VERSION)" />
66+
67+
<MSBuild Projects="@(ProjectToBuild)" />
68+
<Exec Command="nuget pack NuGet\NuLog.nuspec -version $(APPVEYOR_REPO_TAG_NAME)" />
69+
<Exec Command="nuget pack NuGet\NuLog.Configuration\NuLog.Configuration.nuspec -version $(APPVEYOR_REPO_TAG_NAME)" />
6270

6371
<Delete Files="@(FilesToDelete)" />
6472
</Target>

0 commit comments

Comments
 (0)