11<?xml version =" 1.0" encoding =" utf-8" ?>
2+ <!-- NB: rather than bothering with GitVersion here, we simply expect the version to be lingering in the environment from previous runs.
3+ This is supported by .github/workflows/dotnet.yml -->
24<Project DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
35 <PropertyGroup >
46 <Configuration Condition =" '$(Configuration)' == '' " >Release</Configuration >
57 <Platform Condition =" '$(Platform)' == '' " >x86</Platform >
6- <ProductVersion >3.5 </ProductVersion >
8+ <ProductVersion >$(GitVersion_AssemblySemVer) </ProductVersion >
79 <ProjectGuid >c1ee5822-e382-11de-8a39-0800200c9a66</ProjectGuid >
810 <SchemaVersion >2.0</SchemaVersion >
911 <OutputName >ChorusHubInstaller</OutputName >
1012 <OutputType >Package</OutputType >
13+ <OutputPath >..\..\output\$(Configuration)\</OutputPath >
1114 <WixTargetsPath Condition =" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' " >$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath >
1215 <WixTargetsPath Condition =" '$(WixTargetsPath)' == '' " >$(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets</WixTargetsPath >
1316 <Name >ChorusHubInstaller</Name >
14- </PropertyGroup >
15- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|x86' " >
16- <OutputPath >..\..\output\Debug\</OutputPath >
17- <IntermediateOutputPath >obj\Debug\</IntermediateOutputPath >
18- <DefineConstants >Debug</DefineConstants >
19- <SuppressPdbOutput >True</SuppressPdbOutput >
20- </PropertyGroup >
21- <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|x86' " >
22- <OutputPath >..\..\output\Release\</OutputPath >
23- <IntermediateOutputPath >obj\Release\</IntermediateOutputPath >
17+ <DefineConstants >ProductVersion=$(ProductVersion)</DefineConstants >
18+ <DefineConstants Condition =" '$(Configuration)' == 'Debug'" >Debug;$(DefineConstants)</DefineConstants >
19+ <DefineSolutionProperties >false</DefineSolutionProperties >
2420 <SuppressPdbOutput >True</SuppressPdbOutput >
2521 </PropertyGroup >
2622 <ItemGroup >
4743 </WixExtension >
4844 </ItemGroup >
4945 <Import Project =" $(WixTargetsPath)" />
50- <!--
51- To modify your build process, add your task inside one of the targets below and uncomment it.
52- Other similar extension points exist, see Wix.targets.
53- <Target Name="BeforeBuild">
54- </Target>
55- <Target Name="AfterBuild">
56- </Target>
57- -->
58- </Project >
46+
47+ <!-- Stamp Years -->
48+ <Import Project =" NuGet.targets" />
49+ <PropertyGroup >
50+ <SilBuildTasksVersion >2.5.0</SilBuildTasksVersion >
51+ <SilBuildTasksDll >$(NuGetToolsPath)/packages/SIL.BuildTasks.$(SilBuildTasksVersion)/tools/SIL.BuildTasks.dll</SilBuildTasksDll >
52+ </PropertyGroup >
53+
54+ <UsingTask TaskName =" FileUpdate" AssemblyFile =" $(SilBuildTasksDll)" Condition =" Exists('$(SilBuildTasksDll)')" />
55+
56+ <Target Name =" Restore" DependsOnTargets =" CheckPrerequisites" >
57+ <Exec Command =' $(NuGetCommand) install SIL.BuildTasks -version $(SilBuildTasksVersion) -solutionDirectory $(NuGetToolsPath)'
58+ Condition=" !Exists('$(SilBuildTasksDll)')" />
59+ </Target >
60+
61+ <Target Name =" StampLicenseYear" DependsOnTargets =" Restore" >
62+ <FileUpdate File =" resources\License.rtf" RegEx =' COPYRIGHTYEARPLACEHOLDER' ReplacementText =" $([System.DateTime]::Now.ToString(yyyy))" />
63+ </Target >
64+ </Project >
0 commit comments