Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Copy SampleApp certificate to output and publish directories.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesar Blum Silveira committed Jan 27, 2017
1 parent a5e3bd0 commit 2580f3f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion samples/SampleApp/SampleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
<RuntimeIdentifier Condition="'$(TargetFramework)'!='netcoreapp1.1'">win7-x64</RuntimeIdentifier>
</PropertyGroup>

<ItemGroup>
<Content Include="testCert.pfx">

This comment has been minimized.

Copy link
@davidfowl

davidfowl Jan 27, 2017

Member

Use attributes for these:

<Content Include="testCert.pfx" CopyToOutputDirectory="PreserveNewest" />

I think CopyToOutputDirectory implies CopyToPublishDirectory

/cc @vijayrkn

This comment has been minimized.

Copy link
@vijayrkn

vijayrkn Jan 27, 2017

Yes, setting the CopyToOutputDirectory will automatically set CopyToPublishDirectory also.

https://github.com/dotnet/sdk/blob/master/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.Publish.targets#L385-L387

<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\Microsoft.AspNetCore.Server.Kestrel.Https\Microsoft.AspNetCore.Server.Kestrel.Https.csproj" />
</ItemGroup>
Expand All @@ -17,4 +24,4 @@
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.2.0-*" />
</ItemGroup>

</Project>
</Project>

0 comments on commit 2580f3f

Please sign in to comment.