Skip to content

Commit 0d062c8

Browse files
author
John Luo
committed
Fix Template Test 1
1 parent f7eadb4 commit 0d062c8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Middleware/HealthChecks/test/testassets/HealthChecksSample/HealthChecksSample.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8+
<!-- Workaround missing entries in deps files. Still under investigation -->
9+
<RuntimeHostConfigurationOption
10+
Include="Microsoft.NETCore.DotNetHostPolicy.SetAppPaths"
11+
Value="true" />
12+
813
<Reference Include="Microsoft.AspNetCore.Diagnostics.HealthChecks" />
914
<Reference Include="Microsoft.AspNetCore.Server.Kestrel" />
1015
<Reference Include="Microsoft.AspNetCore.StaticFiles" />
Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
<Project>
22
<!-- This file gets copied above the template test projects so that we disconnect the templates from the rest of the repository -->
33

4-
<ItemGroup>
5-
<!-- Workaround missing entries in deps files. Still under investigation -->
6-
<RuntimeHostConfigurationOption
7-
Include="Microsoft.NETCore.DotNetHostPolicy.SetAppPaths"
8-
Value="true" />
9-
</ItemGroup>
4+
<Import Project="${IndirectReferences}" />
105
</Project>

src/ProjectTemplates/test/ProjectTemplates.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
<GenerateFileFromTemplate
130130
TemplateFile="$(MSBuildThisFileDirectory)Infrastructure\Directory.Build.props.in"
131-
Properties=""
131+
Properties="IndirectReferences=$(RepoRoot)eng\IndirectReferences.props"
132132
OutputPath="$(TestTemplateCreationFolder)Directory.Build.props" />
133133

134134
<!-- Workaround https://github.com/dotnet/core-setup/issues/6420 - there is no MSBuild setting for rollforward yet -->

0 commit comments

Comments
 (0)