Skip to content
Snippets Groups Projects
Commit 19f45303 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Include Mail-Templates as links to Solution Items.

Add the template files as links to the ATxService project, pointing to
the central "Solution Items" files and mark them for copying to the
build output location. Update the Make-Package script accordingly.
parent d212b4b3
Branches
Tags
No related merge requests found
...@@ -152,6 +152,20 @@ ...@@ -152,6 +152,20 @@
<Name>ATxCommon</Name> <Name>ATxCommon</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Content Include="..\Resources\Mail-Templates\DiskSpace-Low.txt">
<Link>Mail-Templates\DiskSpace-Low.txt</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="..\Resources\Mail-Templates\Transfer-Interrupted.txt">
<Link>Mail-Templates\Transfer-Interrupted.txt</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="..\Resources\Mail-Templates\Transfer-Success.txt">
<Link>Mail-Templates\Transfer-Success.txt</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PreBuildEvent>PowerShell -NoProfile -ExecutionPolicy RemoteSigned $(SolutionDir)\Scripts\Prepare-Build.ps1 $(ProjectDir)</PreBuildEvent> <PreBuildEvent>PowerShell -NoProfile -ExecutionPolicy RemoteSigned $(SolutionDir)\Scripts\Prepare-Build.ps1 $(ProjectDir)</PreBuildEvent>
......
$ResourceDir = "..\ATxService\Resources" $ResourceDir = "..\ATxService\Resources"
$TemplateDir = "$($ResourceDir)\Mail-Templates"
$RsrcDirCommon = "..\Resources" $RsrcDirCommon = "..\Resources"
...@@ -49,7 +48,6 @@ $dir = New-Item -ItemType Container -Name $PkgDir ...@@ -49,7 +48,6 @@ $dir = New-Item -ItemType Container -Name $PkgDir
$dir = New-Item -ItemType Container -Path $PkgDir -Name "AutoTx" $dir = New-Item -ItemType Container -Path $PkgDir -Name "AutoTx"
$tgt = $dir.FullName $tgt = $dir.FullName
Copy-Item -Recurse "$TemplateDir" $tgt
Copy-Item -Exclude *.pdb -Recurse "$($BinariesDirService)\*" $tgt Copy-Item -Exclude *.pdb -Recurse "$($BinariesDirService)\*" $tgt
Copy-Item -Exclude *.pdb -Recurse "$($BinariesDirTrayApp)\*" $tgt -EA Ignore Copy-Item -Exclude *.pdb -Recurse "$($BinariesDirTrayApp)\*" $tgt -EA Ignore
Copy-Item -Exclude *.pdb -Recurse "$($BinariesDirCfgTest)\*" $tgt -EA Ignore Copy-Item -Exclude *.pdb -Recurse "$($BinariesDirCfgTest)\*" $tgt -EA Ignore
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment