42 lines
2.3 KiB
XML
42 lines
2.3 KiB
XML
<Project Sdk="WixToolset.Sdk/5.0.0">
|
|
<PropertyGroup>
|
|
<HarvestFileSuppressUniqueIds>false</HarvestFileSuppressUniqueIds>
|
|
<HarvestFileGenerateGuidsNow>true</HarvestFileGenerateGuidsNow>
|
|
<HarvestDirectorySuppressRegistry>false</HarvestDirectorySuppressRegistry>
|
|
<HarvestDirectoryVerboseOutput>true</HarvestDirectoryVerboseOutput>
|
|
<HarvestProjectsDirectoryIds>InstallFolder</HarvestProjectsDirectoryIds>
|
|
<CabinetCachePath>$(OutputPath)bin\cabcache\</CabinetCachePath>
|
|
<ReuseCabinetCache>True</ReuseCabinetCache>
|
|
<SuppressValidation>True</SuppressValidation>
|
|
<BuildProjectReferences>False</BuildProjectReferences>
|
|
<OutputName>Elwig</OutputName>
|
|
<Cultures>de-AT</Cultures>
|
|
</PropertyGroup>
|
|
<UsingTask TaskName="GetFileVersion" TaskFactory="RoslynCodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
|
|
<ParameterGroup>
|
|
<AssemblyPath ParameterType="System.String" Required="true" />
|
|
<Version ParameterType="System.String" Output="true" />
|
|
</ParameterGroup>
|
|
<Task>
|
|
<Using Namespace="System.Diagnostics" />
|
|
<Code Type="Fragment" Language="cs"><![CDATA[
|
|
this.Version = FileVersionInfo.GetVersionInfo(this.AssemblyPath).ProductVersion.Split('+')[0];
|
|
]]></Code>
|
|
</Task>
|
|
</UsingTask>
|
|
<Target Name="CustomBeforeBuild" BeforeTargets="BeforeBuild">
|
|
<Exec Command="curl -s -L "http://www.columbia.edu/~em36/PDFtoPrinter.exe" -z "$(ProjectDir)\Files\PDFtoPrinter.exe" -o "$(ProjectDir)\Files\PDFtoPrinter.exe"" />
|
|
<Exec Command="dotnet publish "$(ProjectDir)\..\Elwig\Elwig.csproj" "/p:PublishProfile=$(ProjectDir)\..\Elwig\Properties\PublishProfiles\FolderProfile.pubxml"" />
|
|
<GetFileVersion AssemblyPath="..\Elwig\bin\Publish\Elwig.exe">
|
|
<Output TaskParameter="Version" PropertyName="ElwigFileVersion" />
|
|
</GetFileVersion>
|
|
<PropertyGroup>
|
|
<DefineConstants>ProductVersion=$(ElwigFileVersion);BuildPath=..\Elwig\bin\Publish;DocumentPath=..\Elwig\Documents;ElwigProjectDir=..\Elwig</DefineConstants>
|
|
</PropertyGroup>
|
|
</Target>
|
|
<ItemGroup>
|
|
<None Include="Files\config.ini" />
|
|
<None Include="Files\PDFtoPrinter.exe" />
|
|
<None Include="Files\WinziPrint.exe" />
|
|
</ItemGroup>
|
|
</Project> |