Skip to content

Commit

Permalink
Cleanup package references
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Nov 17, 2024
1 parent 26576c9 commit 3344445
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.

using System;
using System.ComponentModel.Composition;
using System.Composition;
using dnSpy.Roslyn.EditorFeatures.Editor;
using dnSpy.Roslyn.EditorFeatures.Host;
using dnSpy.Roslyn.EditorFeatures.TextStructureNavigation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
*/

using System;
using System.ComponentModel.Composition;
using System.Composition;
using System.Linq;
using System.Threading;
using Microsoft.CodeAnalysis.Shared.Utilities;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// See the LICENSE file in the project root for more information.

using System;
using System.ComponentModel.Composition;
using System.Composition;
using dnSpy.Roslyn.EditorFeatures.Editor;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Utilities;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<Import Project="$(MSBuildProjectDirectory)\..\..\..\Build\MakeEverythingPublic\MakeEverythingPublic.tasks" />

<ItemGroup>
<PackageReference Include="System.ComponentModel.Composition" Version="$(SCCompositionVersion)" Condition=" '$(IsDotNetFramework)' == 'true' " />
<PackageReference Include="Microsoft.CodeAnalysis.Features" Version="$(RoslynVersion)" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.

Imports System.ComponentModel.Composition
Imports System.Composition
Imports dnSpy.Roslyn.EditorFeatures.Editor
Imports dnSpy.Roslyn.EditorFeatures.Host
Imports dnSpy.Roslyn.EditorFeatures.TextStructureNavigation
Expand Down
9 changes: 0 additions & 9 deletions dnSpy/dnSpy.Contracts.DnSpy/dnSpy.Contracts.DnSpy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@

<ItemGroup>
<PackageReference Include="Ookii.Dialogs.Wpf" Version="$(OokiiDialogsWpfVersion)" />
<!--TODO: This is a workaround for a bug where we get the wrong version of System.Security.Permissions.
Microsoft.VisualStudio.Composition.NetFxAttributes and Microsoft.VisualStudio.Composition reference
System.ComponentModel.Composition 4.5.0 which references System.Security.Permissions 4.5.0 which has
assembly version 4.0.1.0. The runtime has asm version 4.0.2.0. This library is copied to the output dir
overwriting the 4.0.2.0 file because CopyLocalLockFileAssemblies=true in DnSpyCommon.props (to prevent
us having to publish all extensions).
Will probably be fixed after Microsoft.VisualStudio.Composition.NetFxAttributes and Microsoft.VisualStudio.Composition
reference a newer System.ComponentModel.Composition nuget in which case this hack can be removed.
-->
<PackageReference Include="System.ComponentModel.Composition" Version="$(SCCompositionVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MSVSIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.UI.Wpf" Version="$(MSVSTextVersion)" />
Expand Down

0 comments on commit 3344445

Please sign in to comment.