Skip to content

Commit

Permalink
Ban the appropriate MEF in the approprate project (#10100)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwengier authored Mar 14, 2024
2 parents f5bc8f5 + 1b7cbdc commit 55e0597
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions eng/BannedSymbols.MEFv1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
N:System.ComponentModel.Composition;Use MEF v2 in this project, from System.Composition
1 change: 1 addition & 0 deletions eng/BannedSymbols.MEFv2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
N:System.Composition;Use MEF v1 in this project, from System.ComponentModel.Composition
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<NoWarn>$(NoWarn);NU1701</NoWarn>
</PropertyGroup>

<ItemGroup>
<AdditionalFiles Include="$(RepoRoot)eng\BannedSymbols.MEFv1.txt" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Microsoft.CodeAnalysis.Razor.Workspaces\Microsoft.CodeAnalysis.Razor.Workspaces.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<IsPackable Condition="'$(OS)' != 'Windows_NT'">false</IsPackable>
</PropertyGroup>

<ItemGroup>
<AdditionalFiles Include="$(RepoRoot)eng\BannedSymbols.MEFv2.txt" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Sdk.Razor" Version="$(MicrosoftNETSdkRazorPackageVersion)" IncludeAssets="None" PrivateAssets="All" GeneratePathProperty="true" />
<PackageReference Include="Microsoft.VisualStudio.Editor" Version="$(MicrosoftVisualStudioEditorPackageVersion)" />
Expand Down

0 comments on commit 55e0597

Please # to comment.