|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk.Web"> |
| 2 | + <ItemGroup> |
| 3 | + <ProjectReference Include="..\Common\Common.csproj" /> |
| 4 | + </ItemGroup> |
| 5 | + |
| 6 | + <!-- Props --> |
| 7 | + <ItemGroup> |
| 8 | + <!-- Expose API internals to IntegrationTest project --> |
| 9 | + <InternalsVisibleTo Include="$(AssemblyName).Tests.Integration" /> |
| 10 | + </ItemGroup> |
| 11 | + |
| 12 | + <!-- NuGet packages --> |
2 | 13 | <ItemGroup> |
3 | 14 | <PackageReference Include="AspNet.Security.OAuth.Discord" /> |
4 | 15 | <PackageReference Include="Fluid.Core" /> |
|
7 | 18 | <PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" /> |
8 | 19 | </ItemGroup> |
9 | 20 |
|
10 | | - <Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation"> |
11 | | - <Exec Command="git rev-parse HEAD" IgnoreExitCode="False"> |
12 | | - <Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput" /> |
13 | | - </Exec> |
14 | | - </Target> |
| 21 | + <!-- Files to copy --> |
| 22 | + <ItemGroup> |
| 23 | + <!-- Copy all Liquid templates (recursively) to build and publish outputs --> |
| 24 | + <None Update="SmtpTemplates\**\*.liquid"> |
| 25 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
| 26 | + </None> |
| 27 | + |
| 28 | + <!-- Dev cert included on publish --> |
| 29 | + <None Include="devcert.pfx" CopyToPublishDirectory="Always" /> |
| 30 | + </ItemGroup> |
15 | 31 |
|
| 32 | + <!-- Git stuff --> |
16 | 33 | <Target Name="SetHash" AfterTargets="InitializeSourceControlInformation"> |
17 | 34 | <ItemGroup> |
18 | 35 | <AssemblyAttribute Include="OpenShock.Common.Utils.GitHashAttribute"> |
19 | 36 | <_Parameter1>$(SourceRevisionId)</_Parameter1> |
20 | 37 | </AssemblyAttribute> |
21 | 38 | </ItemGroup> |
22 | 39 | </Target> |
23 | | - |
24 | | - <ItemGroup> |
25 | | - <ProjectReference Include="..\Common\Common.csproj" /> |
26 | | - <None Include="devcert.pfx" CopyToPublishDirectory="Always" /> |
27 | | - <None Update="SmtpTemplates\PasswordReset.liquid"> |
28 | | - <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
29 | | - </None> |
30 | | - <None Update="SmtpTemplates\EmailVerification.liquid"> |
31 | | - <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
32 | | - </None> |
33 | | - </ItemGroup> |
34 | | - |
35 | | - <ItemGroup> |
36 | | - <InternalsVisibleTo Include="$(AssemblyName).Tests.Integration" /> |
37 | | - </ItemGroup> |
38 | 40 | </Project> |
0 commit comments