Skip to content

Commit

Permalink
Support Visual Studio for Mac 17.4
Browse files Browse the repository at this point in the history
The ConsoleInputEventArgs class is no longer public in VS Mac.
The vsmac console external repository now includes this class.

Fix build error in EnvDTE Document class:

Error CS0118: 'Windows' is a namespace but is used like a type

Prefix the Windows type with its namespace to fix the clash.
  • Loading branch information
mrward committed Aug 7, 2022
1 parent 51e75c5 commit ad3ab6c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion external/vsmac-console
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public bool ReplaceText (string FindText, string ReplaceText, int Flags = 0)

public bool ReadOnly { get => throw new NotImplementedException (); set => throw new NotImplementedException (); }

public Windows Windows => throw new NotImplementedException ();
public global::EnvDTE.Windows Windows => throw new NotImplementedException ();

public global::EnvDTE.ProjectItem ProjectItem => throw new NotImplementedException ();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
<Import file="runtimes/unix/lib/net6.0/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1" />
</Runtime>
<Dependencies>
<Addin id="Core" version="17.3"/>
<Addin id="Ide" version="17.3"/>
<Addin id="PackageManagement" version="17.3"/>
<Addin id="DotNetCore" version="17.3" />
<Addin id="Core" version="17.4"/>
<Addin id="Ide" version="17.4"/>
<Addin id="PackageManagement" version="17.4"/>
<Addin id="DotNetCore" version="17.4" />
</Dependencies>

<Extension path="/MonoDevelop/Ide/Composition">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
</None>
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\external\vsmac-console\src\Microsoft.VisualStudio.Components\ConsoleInputEventArgs.cs">
<Link>Microsoft.VisualStudio.Components\ConsoleInputEventArgs.cs</Link>
</Compile>
<Compile Include="..\..\external\vsmac-console\src\Microsoft.VisualStudio.Components\ConsoleViewCommandHandler.cs">
<Link>Microsoft.VisualStudio.Components\ConsoleViewCommandHandler.cs</Link>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

using System;
using System.Collections.Specialized;
using Microsoft.VisualStudio.Components;
using MonoDevelop.Components;
using MonoDevelop.Components.Declarative;
using MonoDevelop.Components.Docking;
Expand Down

0 comments on commit ad3ab6c

Please sign in to comment.