Skip to content

Commit 8a0e522

Browse files
committed
Fix language multi-target issues with tests
1 parent 1ab8a71 commit 8a0e522

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
<PropertyGroup>
1212
<LangVersion>12.0</LangVersion>
1313
<Nullable>enable</Nullable>
14+
15+
<LangMT Condition="'$(Configuration)' == 'CSharp' or '$(Configuration)' == 'VisualBasic'">$(Configuration)</LangMT>
16+
<IsLangMT Condition="'$(LangMT)' != ''">true</IsLangMT>
1417
</PropertyGroup>
1518

1619
<PropertyGroup>

eng/LanguageInternals.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project>
2-
<PropertyGroup>
2+
<PropertyGroup Condition="'$(IsLangMT)' == 'true'">
33
<AssemblyName>Riverside.CompilerPlatform.$(Configuration).$(MSBuildProjectName.Replace("Riverside.CompilerPlatform.", ""))</AssemblyName>
44
</PropertyGroup>
5-
<ItemGroup>
5+
<ItemGroup Condition="'$(IsLangMT)' == 'true'">
66
<PackageReference Include="Microsoft.CodeAnalysis.$(Configuration)" Version="4.13.0" />
77
<PackageReference Include="Microsoft.CodeAnalysis.$(Configuration).Workspaces" Version="4.13.0" />
88
</ItemGroup>

0 commit comments

Comments
 (0)