Skip to content

Commit 127784e

Browse files
author
N. Taylor Mullen
committed
Fix clean machine/testing for Mvc.Extensions.
1 parent aa980fc commit 127784e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test.csproj

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,23 @@
3030
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />
3131

3232
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(RoslynVersion)" />
33+
</ItemGroup>
3334

34-
<!-- We need this to compile but don't want it referenced by the project.
35-
It is included dynamically in CodeGeneration tests. -->
35+
<ItemGroup>
36+
<!-- We need this to compile but don't want it referenced by the project. It is included dynamically in CodeGeneration tests. -->
3637
<ProjectReference Include="..\Microsoft.AspNetCore.Razor.Test.MvcShim\Microsoft.AspNetCore.Razor.Test.MvcShim.csproj">
3738
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
3839
<OutputItemType>Content</OutputItemType>
3940
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4041
<Targets>Build</Targets>
4142
</ProjectReference>
43+
44+
<!-- Due to how DependencyContext.Load handles our special MvcShim reference above we need to also reference the MvcShim's DiagnosticSource dependency -->
45+
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="$(DiagnosticSourceVersion)" />
4246
</ItemGroup>
4347

4448
<ItemGroup>
45-
<MvcShim
46-
Condition="$(TargetFramework) != ''"
47-
Include="..\Microsoft.AspNetCore.Razor.Test.MvcShim\bin\$(Configuration)\$(TargetFramework)\Microsoft.AspNetCore.Razor.Test.MvcShim.deps.json" />
49+
<MvcShim Condition="$(TargetFramework) != ''" Include="..\Microsoft.AspNetCore.Razor.Test.MvcShim\bin\$(Configuration)\$(TargetFramework)\Microsoft.AspNetCore.Razor.Test.MvcShim.deps.json" />
4850
</ItemGroup>
4951

5052
<Target Name="CopyDepsFromShims" AfterTargets="Build">

0 commit comments

Comments
 (0)