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

Commit b537eb4

Browse files
N. Taylor MullenNate McMaster
authored andcommitted
Fix clean machine/testing for Mvc.Extensions.
1 parent e45618e commit b537eb4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@
3030
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitRunnerVisualStudioPackageVersion)" />
3131

3232
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="$(MicrosoftCodeAnalysisCSharpPackageVersion)" />
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="$(SystemDiagnosticsDiagnosticSourcePackageVersion)" />
4246
</ItemGroup>
4347

4448
<ItemGroup>

0 commit comments

Comments
 (0)