Skip to content

Commit c934af4

Browse files
authored
Merge pull request #185 from AArnott/analyzerDep
Build analyzers tests to its own directory
2 parents 244dadd + 15e532a commit c934af4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/tests/Microsoft.VisualStudio.Composition.Analyzers.Tests/Microsoft.VisualStudio.Composition.Analyzers.Tests.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4+
<!-- Do not contribute to the one test directory that all the others do, because we're unrelated
5+
and most importantly our analyzer test dependencies bring their own copy of vs-mef, leading to a 'last one wins' file overwrite
6+
issue if we were to share a directory with vs-mef tests that makes testing unstable. -->
7+
<BaseOutputPath>$(MSBuildThisFileDirectory)..\..\..\bin\Tests\Microsoft.VisualStudio.Composition.Analyzers.Tests</BaseOutputPath>
48
<TargetFramework>netcoreapp3.1</TargetFramework>
59
<Nullable>enable</Nullable>
610
<IsPackable>false</IsPackable>
711
</PropertyGroup>
812

913
<ItemGroup>
10-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit" Version="1.0.1-beta1.20059.2" />
11-
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.XUnit" Version="1.0.1-beta1.20059.2" />
14+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit" Version="1.0.1-beta1.20478.1" />
15+
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.XUnit" Version="1.0.1-beta1.20478.1" />
1216
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" version="2.10.0" />
1317
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" version="2.10.0" />
1418
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />

0 commit comments

Comments
 (0)