Skip to content

Commit f1c6e6c

Browse files
committed
Merge remote branch 'origin/master'
2 parents 426681f + ddfa464 commit f1c6e6c

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/StarterTemplates/ConsoleAppHost/ConsoleAppHost.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@
6666
<None Include="App.config" />
6767
</ItemGroup>
6868
<ItemGroup>
69-
<Content Include="default.htm" />
69+
<Content Include="default.htm">
70+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
71+
</Content>
7072
</ItemGroup>
7173
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
7274
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

src/StarterTemplates/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ These starter templates show the default configuration required to run ServiceSt
1111
Run run the script below to start the hosts above on VS.NET WebDev.WebServer.EXE at ports 5001-5004:
1212
start_vs2010_webserver.bat
1313

14+
When embedding static files in a Console or Windows Service host, remember to set the Build Action = "Content" and Copy to Output Directory settings.
15+

src/StarterTemplates/WinServiceAppHost/WinServiceAppHost.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
<None Include="install.bat" />
7878
</ItemGroup>
7979
<ItemGroup>
80-
<Content Include="default.htm" />
80+
<Content Include="default.htm">
81+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
82+
</Content>
8183
</ItemGroup>
8284
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8385
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

0 commit comments

Comments
 (0)