未验证 提交 7b111eb3 编写于 作者: A Andy Gocke 提交者: GitHub

Merge branch 'dev15.6.x-vs-deps' into merges/dev15.6.x-to-dev15.6.x-vs-deps-20180117-080057

......@@ -28,6 +28,8 @@
<add key="dotnet.myget.org roslyn-analyzers" value = "https://dotnet.myget.org/F/roslyn-analyzers/api/v3/index.json" />
<add key="dotnet.myget.org roslyn" value="https://dotnet.myget.org/F/roslyn/api/v3/index.json" />
<add key="myget.org vs-editor" value="https://myget.org/F/vs-editor/api/v3/index.json" />
<add key="vside.myget.org vssdk" value="https://vside.myget.org/F/vssdk/api/v3/index.json" />
<add key="vside.myget.org vs-impl" value="https://vside.myget.org/F/vs-impl/api/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
......@@ -71,26 +71,25 @@
<MicrosoftVisualStudioCallHierarchyPackageDefinitionsVersion>15.0.26730-alpha</MicrosoftVisualStudioCallHierarchyPackageDefinitionsVersion>
<MicrosoftVisualStudioCodeAnalysisSdkUIVersion>15.0.26730-alpha</MicrosoftVisualStudioCodeAnalysisSdkUIVersion>
<MicrosoftVisualStudioComponentModelHostVersion>15.0.26730-alpha</MicrosoftVisualStudioComponentModelHostVersion>
<MicrosoftVisualStudioCompositionVersion>15.0.71</MicrosoftVisualStudioCompositionVersion>
<MicrosoftVisualStudioCoreUtilityVersion>15.0.26606</MicrosoftVisualStudioCoreUtilityVersion>
<MicrosoftVisualStudioCompositionVersion>15.5.23</MicrosoftVisualStudioCompositionVersion>
<MicrosoftVisualStudioCoreUtilityVersion>15.6.241-preview</MicrosoftVisualStudioCoreUtilityVersion>
<MicrosoftVisualStudioDebuggerEngineVersion>15.0.26811-vsucorediag</MicrosoftVisualStudioDebuggerEngineVersion>
<MicrosoftVisualStudioDebuggerMetadataVersion>15.0.26811-vsucorediag</MicrosoftVisualStudioDebuggerMetadataVersion>
<MicrosoftVisualStudioDebuggerInterop100Version>10.0.30319</MicrosoftVisualStudioDebuggerInterop100Version>
<MicrosoftVisualStudioDesignerInterfacesVersion>1.1.4322</MicrosoftVisualStudioDesignerInterfacesVersion>
<MicrosoftVisualStudioDiagnosticsPerformanceProviderVersion>15.0.26730-alpha</MicrosoftVisualStudioDiagnosticsPerformanceProviderVersion>
<MicrosoftVisualStudioEditorVersion>15.0.26730-alpha</MicrosoftVisualStudioEditorVersion>
<MicrosoftVisualStudioEditorVersion>15.6.241-preview</MicrosoftVisualStudioEditorVersion>
<MicrosoftVisualStudioGraphModelVersion>15.0.26730-alpha</MicrosoftVisualStudioGraphModelVersion>
<MicrosoftVisualStudioImageCatalogVersion>15.0.26730-alpha</MicrosoftVisualStudioImageCatalogVersion>
<MicrosoftVisualStudioImagingVersion>15.0.26730-alpha</MicrosoftVisualStudioImagingVersion>
<MicrosoftVisualStudioImagingInterop140DesignTimeVersion>14.3.25407</MicrosoftVisualStudioImagingInterop140DesignTimeVersion>
<MicrosoftVisualStudioImagingInterop140DesignTimeVersion>15.0.25726-Preview5</MicrosoftVisualStudioImagingInterop140DesignTimeVersion>
<MicrosoftVisualStudioInteractiveWindowVersion>2.0.0-rc3-61304-01</MicrosoftVisualStudioInteractiveWindowVersion>
<MicrosoftVisualStudioLanguageCallHierarchyVersion>15.0.26730-alpha</MicrosoftVisualStudioLanguageCallHierarchyVersion>
<MicrosoftVisualStudioLanguageIntellisenseVersion>15.0.26730-alpha</MicrosoftVisualStudioLanguageIntellisenseVersion>
<MicrosoftVisualStudioLanguageNavigateToInterfacesVersion>15.0.26730-alpha</MicrosoftVisualStudioLanguageNavigateToInterfacesVersion>
<MicrosoftVisualStudioLanguageStandardClassificationVersion>15.0.26730-alpha</MicrosoftVisualStudioLanguageStandardClassificationVersion>
<MicrosoftVisualStudioLanguageCallHierarchyVersion>15.3.1710.203</MicrosoftVisualStudioLanguageCallHierarchyVersion>
<MicrosoftVisualStudioLanguageIntellisenseVersion>15.6.241-preview</MicrosoftVisualStudioLanguageIntellisenseVersion>
<MicrosoftVisualStudioLanguageNavigateToInterfacesVersion>15.6.241-preview</MicrosoftVisualStudioLanguageNavigateToInterfacesVersion>
<MicrosoftVisualStudioLanguageStandardClassificationVersion>15.6.241-preview</MicrosoftVisualStudioLanguageStandardClassificationVersion>
<MicrosoftVisualStudioOLEInteropVersion>7.10.6070</MicrosoftVisualStudioOLEInteropVersion>
<MicrosoftVisualStudioPlatformVSEditorVersion>15.0.26730-alpha</MicrosoftVisualStudioPlatformVSEditorVersion>
<MicrosoftVisualStudioPlatformVSEditorInteropVersion>15.0.26730-alpha</MicrosoftVisualStudioPlatformVSEditorInteropVersion>
<MicrosoftVisualStudioPlatformVSEditorVersion>15.6.241-preview</MicrosoftVisualStudioPlatformVSEditorVersion>
<MicrosoftVisualStudioProgressionCodeSchemaVersion>15.0.26730-alpha</MicrosoftVisualStudioProgressionCodeSchemaVersion>
<MicrosoftVisualStudioProgressionCommonVersion>15.0.26730-alpha</MicrosoftVisualStudioProgressionCommonVersion>
<MicrosoftVisualStudioProgressionInterfacesVersion>15.0.26730-alpha</MicrosoftVisualStudioProgressionInterfacesVersion>
......@@ -109,18 +108,18 @@
<MicrosoftVisualStudioShellInterop100Version>10.0.30319</MicrosoftVisualStudioShellInterop100Version>
<MicrosoftVisualStudioShellInterop110Version>11.0.61030</MicrosoftVisualStudioShellInterop110Version>
<MicrosoftVisualStudioShellInterop121DesignTimeVersion>12.1.30328</MicrosoftVisualStudioShellInterop121DesignTimeVersion>
<MicrosoftVisualStudioShellInterop140DesignTimeVersion>14.3.25407</MicrosoftVisualStudioShellInterop140DesignTimeVersion>
<MicrosoftVisualStudioShellInterop140DesignTimeVersion>15.0.25726-Preview5</MicrosoftVisualStudioShellInterop140DesignTimeVersion>
<MicrosoftVisualStudioShellInterop150DesignTimeVersion>15.0.26730-alpha</MicrosoftVisualStudioShellInterop150DesignTimeVersion>
<MicrosoftVisualStudioShellInterop153DesignTimeVersion>15.0.26730-alpha</MicrosoftVisualStudioShellInterop153DesignTimeVersion>
<MicrosoftVisualStudioShellInterop80Version>8.0.50727</MicrosoftVisualStudioShellInterop80Version>
<MicrosoftVisualStudioShellInterop90Version>9.0.30729</MicrosoftVisualStudioShellInterop90Version>
<MicrosoftVisualStudioTelemetryVersion>15.0.26730-alpha</MicrosoftVisualStudioTelemetryVersion>
<MicrosoftVisualStudioTemplateWizardInterfaceVersion>8.0.0.0-alpha</MicrosoftVisualStudioTemplateWizardInterfaceVersion>
<MicrosoftVisualStudioTextDataVersion>15.0.26730-alpha</MicrosoftVisualStudioTextDataVersion>
<MicrosoftVisualStudioTextInternalVersion>15.0.26730-alpha</MicrosoftVisualStudioTextInternalVersion>
<MicrosoftVisualStudioTextLogicVersion>15.0.26730-alpha</MicrosoftVisualStudioTextLogicVersion>
<MicrosoftVisualStudioTextUIVersion>15.0.26730-alpha</MicrosoftVisualStudioTextUIVersion>
<MicrosoftVisualStudioTextUIWpfVersion>15.0.26730-alpha</MicrosoftVisualStudioTextUIWpfVersion>
<MicrosoftVisualStudioTextDataVersion>15.6.241-preview</MicrosoftVisualStudioTextDataVersion>
<MicrosoftVisualStudioTextInternalVersion>15.6.241-preview</MicrosoftVisualStudioTextInternalVersion>
<MicrosoftVisualStudioTextLogicVersion>15.6.241-preview</MicrosoftVisualStudioTextLogicVersion>
<MicrosoftVisualStudioTextUIVersion>15.6.241-preview</MicrosoftVisualStudioTextUIVersion>
<MicrosoftVisualStudioTextUIWpfVersion>15.6.241-preview</MicrosoftVisualStudioTextUIWpfVersion>
<MicrosoftVisualStudioTextManagerInteropVersion>7.10.6070</MicrosoftVisualStudioTextManagerInteropVersion>
<MicrosoftVisualStudioTextManagerInterop100Version>10.0.30319</MicrosoftVisualStudioTextManagerInterop100Version>
<MicrosoftVisualStudioTextManagerInterop120Version>12.0.30110</MicrosoftVisualStudioTextManagerInterop120Version>
......@@ -213,6 +212,7 @@
<SystemTextRegularExpressionsVersion>4.3.0</SystemTextRegularExpressionsVersion>
<SystemThreadingVersion>4.3.0</SystemThreadingVersion>
<SystemThreadingTasksVersion>4.3.0</SystemThreadingTasksVersion>
<SystemThreadingTasksDataflowVersion>4.5.24</SystemThreadingTasksDataflowVersion>
<SystemThreadingTasksParallelVersion>4.3.0</SystemThreadingTasksParallelVersion>
<SystemThreadingThreadVersion>4.3.0</SystemThreadingThreadVersion>
<SystemValueTupleVersion>4.3.0</SystemValueTupleVersion>
......
......@@ -214,27 +214,6 @@ commitPullList.each { isPr ->
addRoslynJob(myJob, jobName, branchName, isPr, triggerPhraseExtra, triggerPhraseOnly)
}
// VS Integration Tests
commitPullList.each { isPr ->
['debug', 'release'].each { configuration ->
['vs-integration'].each { buildTarget ->
def jobName = Utilities.getFullJobName(projectName, "windows_${configuration}_${buildTarget}", isPr)
def myJob = job(jobName) {
description("Windows ${configuration} tests on ${buildTarget}")
steps {
batchFile(""".\\build\\scripts\\cibuild.cmd ${(configuration == 'debug') ? '-debug' : '-release'} -testVsi""")
}
}
def triggerPhraseOnly = false
def triggerPhraseExtra = ""
Utilities.setMachineAffinity(myJob, 'Windows_NT', 'latest-dev15-3')
Utilities.addXUnitDotNETResults(myJob, '**/xUnitResults/*.xml')
addRoslynJob(myJob, jobName, branchName, isPr, triggerPhraseExtra, triggerPhraseOnly)
}
}
}
JobReport.Report.generateJobReport(out)
// Make the call to generate the help job
......
......@@ -62,13 +62,15 @@
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
<!-- Force a reference to Microsoft.VisualStudio.Text.Internal. This NuGet package includes an empty ref folder so nobody accidentally uses APIs from it,
but includes the lib folder so it's copied as a dependency of Microsoft.VisualStudio.Platform.VSEditor. Unfortunately we still have test code that
does depend on internal APIs, so we need to a force a reference here. -->
<Reference Include="$(NuGetPackageRoot)\microsoft.visualstudio.text.internal\$(MicrosoftVisualStudioTextInternalVersion)\lib\net46\Microsoft.VisualStudio.Text.Internal.dll" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="$(MicrosoftVisualStudioCompositionVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor" Version="$(MicrosoftVisualStudioPlatformVSEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor.Interop" Version="$(MicrosoftVisualStudioPlatformVSEditorInteropVersion)" />
<PackageReference Include="BasicUndo" Version="$(BasicUndoVersion)" />
<PackageReference Include="Microsoft.VisualStudio.InteractiveWindow" Version="$(MicrosoftVisualStudioInteractiveWindowVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.CallHierarchy" Version="$(MicrosoftVisualStudioLanguageCallHierarchyVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.NavigateTo.Interfaces" Version="$(MicrosoftVisualStudioLanguageNavigateToInterfacesVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
......
......@@ -729,5 +729,174 @@ class Test
workspace.Options = originalOptions;
}
}
[WorkItem(23590, "https://github.com/dotnet/roslyn/issues/23590")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TypeImplementsIEnumerableOfType()
{
var markup = @"
using System.Collections.Generic;
public class Class1
{
public void Method()
{
Container $$
}
}
public class Container : ContainerBase { }
public class ContainerBase : IEnumerable<ContainerBase> { }
";
await VerifyItemExistsAsync(markup, "container");
}
[WorkItem(23590, "https://github.com/dotnet/roslyn/issues/23590")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TypeImplementsIEnumerableOfType2()
{
var markup = @"
using System.Collections.Generic;
public class Class1
{
public void Method()
{
Container $$
}
}
public class ContainerBase : IEnumerable<Container> { }
public class Container : ContainerBase { }
";
await VerifyItemExistsAsync(markup, "container");
}
[WorkItem(23590, "https://github.com/dotnet/roslyn/issues/23590")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TypeImplementsIEnumerableOfType3()
{
var markup = @"
using System.Collections.Generic;
public class Class1
{
public void Method()
{
Container $$
}
}
public class Container : IEnumerable<Container> { }
";
await VerifyItemExistsAsync(markup, "container");
}
[WorkItem(23590, "https://github.com/dotnet/roslyn/issues/23590")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TypeImplementsIEnumerableOfType4()
{
var markup = @"
using System.Collections.Generic;
using System.Threading.Tasks;
public class Class1
{
public void Method()
{
TaskType $$
}
}
public class ContainerBase : IEnumerable<Container> { }
public class Container : ContainerBase { }
public class TaskType : Task<Container> { }
";
await VerifyItemExistsAsync(markup, "taskType");
}
[WorkItem(23590, "https://github.com/dotnet/roslyn/issues/23590")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TypeImplementsTaskOfType()
{
var markup = @"
using System.Threading.Tasks;
public class Class1
{
public void Method()
{
Container $$
}
}
public class Container : ContainerBase { }
public class ContainerBase : Task<ContainerBase> { }
";
await VerifyItemExistsAsync(markup, "container");
}
[WorkItem(23590, "https://github.com/dotnet/roslyn/issues/23590")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TypeImplementsTaskOfType2()
{
var markup = @"
using System.Threading.Tasks;
public class Class1
{
public void Method()
{
Container $$
}
}
public class Container : Task<ContainerBase> { }
public class ContainerBase : Container { }
";
await VerifyItemExistsAsync(markup, "container");
}
[WorkItem(23590, "https://github.com/dotnet/roslyn/issues/23590")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TypeImplementsTaskOfType3()
{
var markup = @"
using System.Collections.Generic;
using System.Threading.Tasks;
public class Class1
{
public void Method()
{
EnumerableType $$
}
}
public class TaskType : TaskTypeBase { }
public class TaskTypeBase : Task<TaskTypeBase> { }
public class EnumerableType : IEnumerable<TaskType> { }
";
await VerifyItemExistsAsync(markup, "taskTypes");
}
[WorkItem(23590, "https://github.com/dotnet/roslyn/issues/23590")]
[Fact, Trait(Traits.Feature, Traits.Features.Completion)]
public async void TypeIsNullableOfNullable()
{
var markup = @"
using System.Collections.Generic;
public class Class1
{
public void Method()
{
// This code isn't legal, but we want to ensure we don't crash in this broken code scenario
IEnumerable<Nullable<int?>> $$
}
}
";
await VerifyItemExistsAsync(markup, "nullables");
}
}
}
......@@ -18,6 +18,7 @@
using Roslyn.Test.Utilities;
using Xunit;
#pragma warning disable CS0618 // MatchKind is obsolete
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.NavigateTo
{
public class InteractiveNavigateToTests : AbstractNavigateToTests
......@@ -646,3 +647,4 @@ public async Task TermSplittingTest8()
}
}
}
#pragma warning restore CS0618 // MatchKind is obsolete
......@@ -15,6 +15,7 @@
using Roslyn.Test.Utilities;
using Xunit;
#pragma warning disable CS0618 // MatchKind is obsolete
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.NavigateTo
{
public class NavigateToTests : AbstractNavigateToTests
......@@ -1070,3 +1071,4 @@ public void ToError(__arglist)
}
}
}
#pragma warning restore CS0618 // MatchKind is obsolete
......@@ -32,7 +32,6 @@
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
<PackageReference Include="Microsoft.VisualStudio.InteractiveWindow" Version="$(MicrosoftVisualStudioInteractiveWindowVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.NavigateTo.Interfaces" Version="$(MicrosoftVisualStudioLanguageNavigateToInterfacesVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
......
......@@ -121,6 +121,7 @@ private async Task SearchAsyncWorker(Project project)
}
}
#pragma warning disable CS0618 // MatchKind is obsolete
private void ReportMatchResult(Project project, INavigateToSearchResult result)
{
var navigateToItem = new NavigateToItem(
......@@ -146,6 +147,7 @@ private MatchKind GetMatchKind(NavigateToMatchKind matchKind)
default: return MatchKind.None;
}
}
#pragma warning restore CS0618 // MatchKind is obsolete
/// <summary>
/// Returns the name for the language used by the old Navigate To providers.
......
......@@ -9,6 +9,7 @@
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.Presentation
{
internal partial class QuickInfoPresenter
......@@ -109,3 +110,4 @@ internal void AugmentQuickInfoSession(IList<object> quickInfoContent, out ITrack
}
}
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
......@@ -5,6 +5,7 @@
using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.Presentation
{
internal partial class QuickInfoPresenter
......@@ -30,3 +31,4 @@ public void Dispose()
}
}
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
......@@ -8,6 +8,7 @@
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Utilities;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo.Presentation
{
[Export(typeof(IQuickInfoSourceProvider))]
......@@ -42,3 +43,4 @@ IQuickInfoSource IQuickInfoSourceProvider.TryCreateQuickInfoSource(ITextBuffer t
}
}
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
......@@ -96,7 +96,7 @@ private async Task<SuggestedActionSet> GetPreviewChangesFlavor(CancellationToken
return null;
}
return new SuggestedActionSet(ImmutableArray.Create(previewChangesAction));
return new SuggestedActionSet(categoryName: null, actions: ImmutableArray.Create(previewChangesAction));
}
// HasPreview is called synchronously on the UI thread. In order to avoid blocking the UI thread,
......
......@@ -441,9 +441,9 @@ private CodeRefactoring FilterOnUIThread(CodeRefactoring refactoring, Workspace
_owner, workspace, _subjectBuffer, fix, fixCollection.Provider,
nestedAction, getFixAllSuggestedActionSet(nestedAction)));
var set = new SuggestedActionSet(
nestedActions, SuggestedActionSetPriority.Medium,
fix.PrimaryDiagnostic.Location.SourceSpan.ToSpan());
var set = new SuggestedActionSet(categoryName: null,
actions: nestedActions, priority: SuggestedActionSetPriority.Medium,
applicableToSpan: fix.PrimaryDiagnostic.Location.SourceSpan.ToSpan());
suggestedAction = new SuggestedActionWithNestedActions(
_owner, workspace, _subjectBuffer,
......@@ -512,7 +512,8 @@ private CodeRefactoring FilterOnUIThread(CodeRefactoring refactoring, Workspace
}
return new SuggestedActionSet(
fixAllSuggestedActions.ToImmutableAndFree(),
categoryName: null,
actions: fixAllSuggestedActions.ToImmutableAndFree(),
title: EditorFeaturesResources.Fix_all_occurrences_in);
}
......
......@@ -7,6 +7,7 @@
using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
namespace Microsoft.CodeAnalysis.Editor.CommandHandlers
{
internal partial class QuickInfoCommandHandlerAndSourceProvider
......@@ -50,3 +51,4 @@ public void Dispose()
}
}
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
......@@ -16,6 +16,7 @@
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Utilities;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
namespace Microsoft.CodeAnalysis.Editor.CommandHandlers
{
[Export]
......@@ -93,3 +94,4 @@ internal bool TryHandleEscapeKey(EscapeKeyCommandArgs commandArgs)
}
}
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
......@@ -24,15 +24,18 @@
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Core" />
<PackageReference Include="System.Collections.Immutable" Version="$(SystemCollectionsImmutableVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime" Version="$(MicrosoftVisualStudioImagingInterop140DesignTimeVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.UI" Version="$(MicrosoftVisualStudioTextUIVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.UI.Wpf" Version="$(MicrosoftVisualStudioTextUIWpfVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Utilities" Version="$(MicrosoftVisualStudioUtilitiesVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Validation" Version="$(MicrosoftVisualStudioValidationVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="$(MicrosoftVisualStudioThreadingVersion)" />
<!-- This package is no longer being consumed by the build, but failure to have this line means the dependency
on Microsoft.VisualStudio.Text.Internal will consume a really old version of Microsoft.VisualStudio.Text.UI.Wpf
which doesn't have the type forwards to the new Microsoft.VisualStudio.Text.UI. By including this and then
saying ExcludeAssets=all, we ensure the package graph is sane but doesn't pull in what we don't want.
This line can be deleted once we move off of Microsoft.VisualStudio.Text.Internal. -->
<PackageReference Include="Microsoft.VisualStudio.Text.UI.Wpf" Version="$(MicrosoftVisualStudioTextUIWpfVersion)">
<ExcludeAssets>all</ExcludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.Elfie" Version="$(MicrosoftCodeAnalysisElfieVersion)" />
<PackageReference Include="ICSharpCode.Decompiler" Version="$(ICSharpCodeDecompilerVersion)" />
</ItemGroup>
......
......@@ -16,6 +16,7 @@
using Microsoft.VisualStudio.Text.Editor;
using Roslyn.Utilities;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.QuickInfo
{
internal partial class Controller :
......@@ -168,3 +169,4 @@ public IList<IQuickInfoProvider> GetProviders()
}
}
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
......@@ -25,11 +25,13 @@ void ICommandHandler<InvokeQuickInfoCommandArgs>.ExecuteCommand(InvokeQuickInfoC
}
}
#pragma warning disable CS0618 // IQuickInfo* is obsolete
public void InvokeQuickInfo(int position, bool trackMouse, IQuickInfoSession augmentSession)
{
AssertIsForeground();
DismissSessionIfActive();
StartSession(position, trackMouse, augmentSession);
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
}
}
......@@ -14,12 +14,12 @@
namespace Microsoft.CodeAnalysis.Editor
{
[Export(typeof(IWpfTextViewConnectionListener))]
[Export(typeof(ITextViewConnectionListener))]
[ContentType(ContentTypeNames.RoslynContentType)]
[ContentType(ContentTypeNames.XamlContentType)]
[TextViewRole(PredefinedTextViewRoles.Interactive)]
[Export(typeof(ITextBufferAssociatedViewService))]
internal class TextBufferAssociatedViewService : IWpfTextViewConnectionListener, ITextBufferAssociatedViewService
internal class TextBufferAssociatedViewService : ITextViewConnectionListener, ITextBufferAssociatedViewService
{
#if DEBUG
private static readonly HashSet<ITextView> s_registeredViews = new HashSet<ITextView>();
......@@ -31,7 +31,7 @@ internal class TextBufferAssociatedViewService : IWpfTextViewConnectionListener,
public event EventHandler<SubjectBuffersConnectedEventArgs> SubjectBuffersConnected;
void IWpfTextViewConnectionListener.SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection<ITextBuffer> subjectBuffers)
void ITextViewConnectionListener.SubjectBuffersConnected(ITextView textView, ConnectionReason reason, IReadOnlyCollection<ITextBuffer> subjectBuffers)
{
lock (s_gate)
{
......@@ -51,7 +51,7 @@ void IWpfTextViewConnectionListener.SubjectBuffersConnected(IWpfTextView textVie
this.SubjectBuffersConnected?.Invoke(this, new SubjectBuffersConnectedEventArgs(textView, subjectBuffers.ToReadOnlyCollection()));
}
void IWpfTextViewConnectionListener.SubjectBuffersDisconnected(IWpfTextView textView, ConnectionReason reason, Collection<ITextBuffer> subjectBuffers)
void ITextViewConnectionListener.SubjectBuffersDisconnected(ITextView textView, ConnectionReason reason, IReadOnlyCollection<ITextBuffer> subjectBuffers)
{
lock (s_gate)
{
......
......@@ -67,13 +67,15 @@
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
<!-- Force a reference to Microsoft.VisualStudio.Text.Internal. This NuGet package includes an empty ref folder so nobody accidentally uses APIs from it,
but includes the lib folder so it's copied as a dependency of Microsoft.VisualStudio.Platform.VSEditor. Unfortunately we still have test code that
does depend on internal APIs, so we need to a force a reference here. -->
<Reference Include="$(NuGetPackageRoot)\microsoft.visualstudio.text.internal\$(MicrosoftVisualStudioTextInternalVersion)\lib\net46\Microsoft.VisualStudio.Text.Internal.dll" />
<PackageReference Include="BasicUndo" Version="$(BasicUndoVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="$(MicrosoftVisualStudioCompositionVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor" Version="$(MicrosoftVisualStudioPlatformVSEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor.Interop" Version="$(MicrosoftVisualStudioPlatformVSEditorInteropVersion)" />
<PackageReference Include="Microsoft.VisualStudio.InteractiveWindow" Version="$(MicrosoftVisualStudioInteractiveWindowVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.CallHierarchy" Version="$(MicrosoftVisualStudioLanguageCallHierarchyVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.NavigateTo.Interfaces" Version="$(MicrosoftVisualStudioLanguageNavigateToInterfacesVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
......
......@@ -35,20 +35,20 @@ public void SanityCheck()
var service = new TextBufferAssociatedViewService();
((IWpfTextViewConnectionListener)service).SubjectBuffersConnected(viewMock.Object, dummyReason, bufferCollection);
((ITextViewConnectionListener)service).SubjectBuffersConnected(viewMock.Object, dummyReason, bufferCollection);
Assert.Equal(1, service.GetAssociatedTextViews(bufferMock.Object).Count());
((IWpfTextViewConnectionListener)service).SubjectBuffersDisconnected(viewMock.Object, dummyReason, bufferCollection);
((ITextViewConnectionListener)service).SubjectBuffersDisconnected(viewMock.Object, dummyReason, bufferCollection);
Assert.Equal(0, service.GetAssociatedTextViews(bufferMock.Object).Count());
((IWpfTextViewConnectionListener)service).SubjectBuffersConnected(viewMock.Object, dummyReason, bufferCollection);
((IWpfTextViewConnectionListener)service).SubjectBuffersConnected(viewMock2.Object, dummyReason, bufferCollection);
((ITextViewConnectionListener)service).SubjectBuffersConnected(viewMock.Object, dummyReason, bufferCollection);
((ITextViewConnectionListener)service).SubjectBuffersConnected(viewMock2.Object, dummyReason, bufferCollection);
Assert.Equal(2, service.GetAssociatedTextViews(bufferMock.Object).Count());
((IWpfTextViewConnectionListener)service).SubjectBuffersDisconnected(viewMock.Object, dummyReason, bufferCollection);
((ITextViewConnectionListener)service).SubjectBuffersDisconnected(viewMock.Object, dummyReason, bufferCollection);
Assert.Equal(1, service.GetAssociatedTextViews(bufferMock.Object).Count());
((IWpfTextViewConnectionListener)service).SubjectBuffersDisconnected(viewMock2.Object, dummyReason, bufferCollection);
((ITextViewConnectionListener)service).SubjectBuffersDisconnected(viewMock2.Object, dummyReason, bufferCollection);
Assert.Equal(0, service.GetAssociatedTextViews(bufferMock.Object).Count());
}
}
......
......@@ -61,16 +61,17 @@
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
<PackageReference Include="Microsoft.Tpl.Dataflow" Version="$(MicrosoftTplDataflowVersion)" />
<!-- Force a reference to Microsoft.VisualStudio.Text.Internal. This NuGet package includes an empty ref folder so nobody accidentally uses APIs from it,
but includes the lib folder so it's copied as a dependency of Microsoft.VisualStudio.Platform.VSEditor. Unfortunately we still have test code that
does depend on internal APIs, so we need to a force a reference here. -->
<Reference Include="$(NuGetPackageRoot)\microsoft.visualstudio.text.internal\$(MicrosoftVisualStudioTextInternalVersion)\lib\net46\Microsoft.VisualStudio.Text.Internal.dll" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="$(MicrosoftVisualStudioCompositionVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor" Version="$(MicrosoftVisualStudioPlatformVSEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor.Interop" Version="$(MicrosoftVisualStudioPlatformVSEditorInteropVersion)" />
<PackageReference Include="BasicUndo" Version="$(BasicUndoVersion)" />
<PackageReference Include="Microsoft.Build.Runtime" Version="$(MicrosoftBuildRuntimeVersion)" />
<PackageReference Include="Microsoft.VisualStudio.InteractiveWindow" Version="$(MicrosoftVisualStudioInteractiveWindowVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Editor" Version="$(MicrosoftVisualStudioEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.CallHierarchy" Version="$(MicrosoftVisualStudioLanguageCallHierarchyVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Imaging" Version="$(MicrosoftVisualStudioImagingVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime" Version="$(MicrosoftVisualStudioImagingInterop140DesignTimeVersion)" />
......@@ -78,6 +79,7 @@
<PackageReference Include="Microsoft.VisualStudio.Text.UI" Version="$(MicrosoftVisualStudioTextUIVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.UI.Wpf" Version="$(MicrosoftVisualStudioTextUIWpfVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Validation" Version="$(MicrosoftVisualStudioValidationVersion)" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="$(SystemThreadingTasksDataflowVersion)" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleToTest Include="Roslyn.VisualStudio.Services.UnitTests" />
......
......@@ -14,6 +14,8 @@ Imports Microsoft.VisualStudio.Text
Imports Microsoft.VisualStudio.Text.Editor
Imports Microsoft.VisualStudio.Utilities
Imports Moq
#Disable Warning BC40000 ' IQuickInfo* is obsolete
Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense
Public Class QuickInfoControllerTests
......@@ -245,3 +247,4 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense
End Class
End Class
End Namespace
#Enable Warning BC40000 ' IQuickInfo* is obsolete
......@@ -1080,7 +1080,7 @@ End Class
Dim textViewService = New TextBufferAssociatedViewService()
Dim buffers = New Collection(Of ITextBuffer)
buffers.Add(view.TextBuffer)
DirectCast(textViewService, IWpfTextViewConnectionListener).SubjectBuffersConnected(view, ConnectionReason.TextViewLifetime, buffers)
DirectCast(textViewService, ITextViewConnectionListener).SubjectBuffersConnected(view, ConnectionReason.TextViewLifetime, buffers)
Dim renameService = workspace.GetService(Of InlineRenameService)()
......@@ -1160,7 +1160,7 @@ End Class
Dim textViewService = New TextBufferAssociatedViewService()
Dim buffers = New Collection(Of ITextBuffer)
buffers.Add(view.TextBuffer)
DirectCast(textViewService, IWpfTextViewConnectionListener).SubjectBuffersConnected(view, ConnectionReason.TextViewLifetime, buffers)
DirectCast(textViewService, ITextViewConnectionListener).SubjectBuffersConnected(view, ConnectionReason.TextViewLifetime, buffers)
Dim location = view.Caret.Position.BufferPosition.Position
view.Selection.Select(New SnapshotSpan(view.Caret.Position.BufferPosition, 2), False)
......
......@@ -41,7 +41,8 @@ public static Type[] GetLanguageNeutralTypes()
typeof(DefaultSymbolMappingService),
typeof(TestWaitIndicator),
typeof(TestExtensionErrorHandler),
typeof(TestExportJoinableTaskContext) // Needed by editor components, but not actually exported anywhere else
typeof(TestExportJoinableTaskContext), // Needed by editor components, but not actually exported anywhere else
typeof(TestObscuringTipManager) // Needed by editor components, but only exported in editor VS layer. Tracked by https://devdiv.visualstudio.com/DevDiv/_workitems?id=544569.
};
return types//.Concat(TestHelpers.GetAllTypesWithStaticFieldsImplementingType(typeof(InternalSolutionCrawlerOptions).Assembly, typeof(Microsoft.CodeAnalysis.Options.IOption)))
......@@ -59,7 +60,7 @@ public static IEnumerable<Assembly> GetVisualStudioAssemblies()
// EDITOR
// Microsoft.VisualStudio.Platform.VSEditor.dll:
typeof(Microsoft.VisualStudio.Platform.VSEditor.EventArgsHelper).Assembly,
Assembly.LoadFrom("Microsoft.VisualStudio.Platform.VSEditor.dll"),
// Microsoft.VisualStudio.Text.Logic.dll:
// Must include this because several editor options are actually stored as exported information
......
......@@ -77,6 +77,7 @@ private void InitializeWorkspace(TestWorkspace workspace)
_aggregator = new NavigateToTestAggregator(_provider);
}
#pragma warning disable CS0618 // MatchKind is obsolete
protected void VerifyNavigateToResultItems(
List<NavigateToItem> expecteditems, IEnumerable<NavigateToItem> items)
{
......@@ -161,5 +162,6 @@ protected static int CompareNavigateToItems(NavigateToItem a, NavigateToItem b)
result = a.SecondarySort.CompareTo(b.SecondarySort);
return result;
}
#pragma warning restore CS0618 // MatchKind is obsolete
}
}
......@@ -50,6 +50,10 @@
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
<!-- Force a reference to Microsoft.VisualStudio.Text.Internal. This NuGet package includes an empty ref folder so nobody accidentally uses APIs from it,
but includes the lib folder so it's copied as a dependency of Microsoft.VisualStudio.Platform.VSEditor. Unfortunately we still have test code that
does depend on internal APIs, so we need to a force a reference here. -->
<Reference Include="$(NuGetPackageRoot)\microsoft.visualstudio.text.internal\$(MicrosoftVisualStudioTextInternalVersion)\lib\net46\Microsoft.VisualStudio.Text.Internal.dll" />
<PackageReference Include="xunit" Version="$(xunitVersion)" />
<PackageReference Include="xunit.analyzers" Version="$(xunitanalyzersVersion)" />
<PackageReference Include="xunit.runner.console" Version="$(xunitrunnerconsoleVersion)" />
......@@ -60,9 +64,7 @@
<PackageReference Include="StreamJsonRpc" Version="$(StreamJsonRpcVersion)" />
<PackageReference Include="Microsoft.ServiceHub.Client" Version="$(MicrosoftServiceHubClientVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor" Version="$(MicrosoftVisualStudioPlatformVSEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor.Interop" Version="$(MicrosoftVisualStudioPlatformVSEditorInteropVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="$(MicrosoftVisualStudioCompositionVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.CallHierarchy" Version="$(MicrosoftVisualStudioLanguageCallHierarchyVersion)" />
......
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Editor.Shared.Utilities;
using Microsoft.VisualStudio.Threading;
namespace Microsoft.CodeAnalysis.Editor.UnitTests
{
// In 15.3 the editor took a dependency on JoinableTaskContext.
// JTC appears in the VS MEF composition but does not itself
// contain an ExportAttribute. The Editor's own unit tests
// export it from a field and we need to do the same in order
// to be able to compose in any part of the Editor.
internal class TestExportJoinableTaskContext : ForegroundThreadAffinitizedObject
// Starting with 15.3 the editor took a dependency on JoinableTaskContext
// in Text.Logic and Intellisense layers as an editor host provided service.
internal class TestExportJoinableTaskContext
{
[ThreadStatic]
private static JoinableTaskContext s_jtcThreadStatic;
[Export]
private JoinableTaskContext _joinableTaskContext = new JoinableTaskContext(
mainThread: ForegroundThreadAffinitizedObject.CurrentForegroundThreadData.Thread);
private JoinableTaskContext JoinableTaskContext
{
get
{
// Make sure each import gets JTC set up with the calling thread as the "main" thread
return s_jtcThreadStatic ?? (s_jtcThreadStatic = new JoinableTaskContext());
}
}
}
}
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text.Editor;
namespace Microsoft.CodeAnalysis.Editor.UnitTests
{
// In 15.6 the editor (QuickInfo in particular) took a dependency on
// IObscuringTipManager, which is only exported in VS editor layer.
// This is tracked by the editor bug https://devdiv.visualstudio.com/DevDiv/_workitems?id=544569.
// Meantime a workaround is to export dummy IObscuringTipManager.
[Export(typeof(IObscuringTipManager))]
internal class TestObscuringTipManager : IObscuringTipManager
{
public void PushTip(ITextView view, IObscuringTip tip)
{
}
public void RemoveTip(ITextView view, IObscuringTip tip)
{
}
}
}
......@@ -44,11 +44,9 @@
<Reference Include="WindowsBase" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="$(MicrosoftVisualStudioCompositionVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor" Version="$(MicrosoftVisualStudioPlatformVSEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor.Interop" Version="$(MicrosoftVisualStudioPlatformVSEditorInteropVersion)" />
<PackageReference Include="Microsoft.VisualStudio.InteractiveWindow" Version="$(MicrosoftVisualStudioInteractiveWindowVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Editor" Version="$(MicrosoftVisualStudioEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.CallHierarchy" Version="$(MicrosoftVisualStudioLanguageCallHierarchyVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Imaging" Version="$(MicrosoftVisualStudioImagingVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime" Version="$(MicrosoftVisualStudioImagingInterop140DesignTimeVersion)" />
......
......@@ -11,11 +11,11 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.AutomaticEndConstructCorrect
''' <summary>
''' Tracks user's interaction with editor
''' </summary>
<Export(GetType(IWpfTextViewConnectionListener))>
<Export(GetType(ITextViewConnectionListener))>
<ContentType(ContentTypeNames.VisualBasicContentType)>
<TextViewRole(PredefinedTextViewRoles.Interactive)>
Friend Class ViewCreationListener
Implements IWpfTextViewConnectionListener
Implements ITextViewConnectionListener
Private ReadOnly _waitIndicator As IWaitIndicator
......@@ -25,9 +25,9 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.AutomaticEndConstructCorrect
End Sub
Public Sub SubjectBuffersConnected(
textView As IWpfTextView,
textView As ITextView,
reason As ConnectionReason,
subjectBuffers As Collection(Of ITextBuffer)) Implements IWpfTextViewConnectionListener.SubjectBuffersConnected
subjectBuffers As IReadOnlyCollection(Of ITextBuffer)) Implements ITextViewConnectionListener.SubjectBuffersConnected
If Not subjectBuffers(0).GetFeatureOnOffOption(FeatureOnOffOptions.EndConstruct) Then
Return
......@@ -37,7 +37,7 @@ Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.AutomaticEndConstructCorrect
AddConstructPairTo(vbBuffers)
End Sub
Public Sub SubjectBuffersDisconnected(textView As IWpfTextView, reason As ConnectionReason, subjectBuffers As Collection(Of ITextBuffer)) Implements IWpfTextViewConnectionListener.SubjectBuffersDisconnected
Public Sub SubjectBuffersDisconnected(textView As ITextView, reason As ConnectionReason, subjectBuffers As IReadOnlyCollection(Of ITextBuffer)) Implements ITextViewConnectionListener.SubjectBuffersDisconnected
Dim vbBuffers = subjectBuffers.Where(Function(b) b.ContentType.IsOfType(ContentTypeNames.VisualBasicContentType))
RemoveConstructPairFrom(vbBuffers)
End Sub
......
......@@ -58,13 +58,15 @@
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
<!-- Force a reference to Microsoft.VisualStudio.Text.Internal. This NuGet package includes an empty ref folder so nobody accidentally uses APIs from it,
but includes the lib folder so it's copied as a dependency of Microsoft.VisualStudio.Platform.VSEditor. Unfortunately we still have test code that
does depend on internal APIs, so we need to a force a reference here. -->
<Reference Include="$(NuGetPackageRoot)\microsoft.visualstudio.text.internal\$(MicrosoftVisualStudioTextInternalVersion)\lib\net46\Microsoft.VisualStudio.Text.Internal.dll" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="$(MicrosoftVisualStudioCompositionVersion)" />
<PackageReference Include="BasicUndo" Version="$(BasicUndoVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor" Version="$(MicrosoftVisualStudioPlatformVSEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor.Interop" Version="$(MicrosoftVisualStudioPlatformVSEditorInteropVersion)" />
<PackageReference Include="Microsoft.VisualStudio.InteractiveWindow" Version="$(MicrosoftVisualStudioInteractiveWindowVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.CallHierarchy" Version="$(MicrosoftVisualStudioLanguageCallHierarchyVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.NavigateTo.Interfaces" Version="$(MicrosoftVisualStudioLanguageNavigateToInterfacesVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
......
......@@ -6,6 +6,7 @@ Imports Microsoft.VisualStudio.Composition
Imports Microsoft.VisualStudio.Language.Intellisense
Imports Microsoft.VisualStudio.Language.NavigateTo.Interfaces
#Disable Warning BC40000 ' MatchKind is obsolete
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.NavigateTo
Public Class NavigateToTests
Inherits AbstractNavigateToTests
......@@ -758,3 +759,4 @@ End Class
End Function
End Class
End Namespace
#Enable Warning BC40000 ' MatchKind is obsolete
......@@ -82,7 +82,7 @@ private ImmutableArray<ImmutableArray<string>> GetBaseNames(SemanticModel semant
return default;
}
var (type, plural) = UnwrapType(nameInfo.Type, semanticModel.Compilation, wasPlural: false);
var (type, plural) = UnwrapType(nameInfo.Type, semanticModel.Compilation, wasPlural: false, seenTypes: new HashSet<ITypeSymbol>());
var baseNames = NameGenerator.GetBaseNames(type, plural);
return baseNames;
......@@ -158,11 +158,20 @@ private Glyph GetGlyph(SymbolKind kind, Accessibility declaredAccessibility)
return publicIcon;
}
private (ITypeSymbol, bool plural) UnwrapType(ITypeSymbol type, Compilation compilation, bool wasPlural)
private (ITypeSymbol, bool plural) UnwrapType(ITypeSymbol type, Compilation compilation, bool wasPlural, HashSet<ITypeSymbol> seenTypes)
{
// Consider C : Task<C>
// Visiting the C in Task<C> will stackoverflow
if (seenTypes.Contains(type))
{
return (type, wasPlural);
}
seenTypes.AddRange(type.GetBaseTypesAndThis());
if (type is IArrayTypeSymbol arrayType)
{
return UnwrapType(arrayType.ElementType, compilation, wasPlural: true);
return UnwrapType(arrayType.ElementType, compilation, wasPlural: true, seenTypes: seenTypes);
}
if (type is INamedTypeSymbol namedType && namedType.OriginalDefinition != null)
......@@ -174,7 +183,15 @@ private Glyph GetGlyph(SymbolKind kind, Accessibility declaredAccessibility)
if (ienumerableOfT != null)
{
return UnwrapType(ienumerableOfT.TypeArguments[0], compilation, wasPlural: true);
// Consider: Container : IEnumerable<Container>
// Container |
// We don't want to suggest the plural version of a type that can be used singularly
if (seenTypes.Contains(ienumerableOfT.TypeArguments[0]))
{
return (type, wasPlural);
}
return UnwrapType(ienumerableOfT.TypeArguments[0], compilation, wasPlural: true, seenTypes: seenTypes);
}
var taskOfTType = compilation.TaskOfTType();
......@@ -184,7 +201,7 @@ private Glyph GetGlyph(SymbolKind kind, Accessibility declaredAccessibility)
originalDefinition == valueTaskType ||
originalDefinition.SpecialType == SpecialType.System_Nullable_T)
{
return UnwrapType(namedType.TypeArguments[0], compilation, wasPlural: wasPlural);
return UnwrapType(namedType.TypeArguments[0], compilation, wasPlural: wasPlural, seenTypes: seenTypes);
}
}
......
......@@ -48,7 +48,7 @@ function Publish-NuGet([string]$packageDir, [string]$uploadUrl) {
}
if (-not $test) {
Exec-Console $dotnet "nuget push $nupkg --source $uploadUrl --apiKey $apiKey -v q"
Exec-Console $dotnet "nuget push $nupkg --source $uploadUrl --api-key $apiKey"
}
}
}
......
......@@ -33,6 +33,7 @@ public void HACK_OnQuickInfoSessionDismissed(ITextView textView)
HACK_SetShimQuickInfoSessionWorker(textView, null);
}
#pragma warning disable CS0618 // IQuickInfo* is obsolete
private void HACK_SetShimQuickInfoSessionWorker(ITextView textView, IQuickInfoSession quickInfoSession)
{
var properties = textView.Properties.PropertyList;
......@@ -53,7 +54,7 @@ private class HACK_QuickInfoSession : IQuickInfoSession
public event EventHandler ApplicableToSpanChanged;
public event EventHandler PresenterChanged;
#pragma warning restore 67
#pragma warning restore CS0618 // IQuickInfo* is obsolete
public PropertyCollection Properties
{
get
......
......@@ -50,7 +50,9 @@ internal partial class EventHookupCommandHandler : ForegroundThreadAffinitizedOb
public EventHookupCommandHandler(
IInlineRenameService inlineRenameService,
Microsoft.CodeAnalysis.Editor.Host.IWaitIndicator waitIndicator,
#pragma warning disable CS0618 // IQuickInfo* is obsolete
IQuickInfoBroker quickInfoBroker,
#pragma warning restore CS0618 // IQuickInfo* is obsolete
[Import(AllowDefault = true)] IHACK_EventHookupDismissalOnBufferChangePreventerService prematureDismissalPreventer,
IAsynchronousOperationListenerProvider listenerProvider)
{
......
......@@ -12,6 +12,7 @@
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Classification;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
namespace Microsoft.CodeAnalysis.Editor.CSharp.EventHookup
{
internal sealed class EventHookupQuickInfoSource : IQuickInfoSource
......@@ -101,3 +102,4 @@ public void Dispose()
}
}
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
......@@ -7,6 +7,7 @@
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.Utilities;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
namespace Microsoft.CodeAnalysis.Editor.CSharp.EventHookup
{
/// <summary>
......@@ -38,3 +39,4 @@ public IQuickInfoSource TryCreateQuickInfoSource(ITextBuffer textBuffer)
}
}
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
......@@ -17,6 +17,7 @@ namespace Microsoft.CodeAnalysis.Editor.CSharp.EventHookup
internal sealed partial class EventHookupSessionManager : ForegroundThreadAffinitizedObject
{
private readonly IHACK_EventHookupDismissalOnBufferChangePreventerService _prematureDismissalPreventer;
#pragma warning disable CS0618 // IQuickInfo* is obsolete
private readonly IQuickInfoBroker _quickInfoBroker;
internal EventHookupSession CurrentSession { get; set; }
......@@ -30,6 +31,7 @@ internal EventHookupSessionManager(IHACK_EventHookupDismissalOnBufferChangePreve
_prematureDismissalPreventer = prematureDismissalPreventer;
_quickInfoBroker = quickInfoBroker;
}
#pragma warning restore CS0618 // IQuickInfo* is obsolete
internal void EventHookupFoundInSession(EventHookupSession analyzedSession)
{
......
......@@ -66,6 +66,10 @@
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
<!-- Force a reference to Microsoft.VisualStudio.Text.Internal. This NuGet package includes an empty ref folder so nobody accidentally uses APIs from it,
but includes the lib folder so it's copied as a dependency of Microsoft.VisualStudio.Platform.VSEditor. Unfortunately we still have test code that
does depend on internal APIs, so we need to a force a reference here. -->
<Reference Include="$(NuGetPackageRoot)\microsoft.visualstudio.text.internal\$(MicrosoftVisualStudioTextInternalVersion)\lib\net46\Microsoft.VisualStudio.Text.Internal.dll" />
<PackageReference Include="BasicUndo" Version="$(BasicUndoVersion)" />
<PackageReference Include="EnvDTE" Version="$(EnvDTEVersion)" />
<PackageReference Include="EnvDTE80" Version="$(EnvDTE80Version)" />
......@@ -73,7 +77,6 @@
<PackageReference Include="Microsoft.VisualStudio.Text.UI" Version="$(MicrosoftVisualStudioTextUIVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.UI.Wpf" Version="$(MicrosoftVisualStudioTextUIWpfVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Validation" Version="$(MicrosoftVisualStudioValidationVersion)" />
</ItemGroup>
<ItemGroup>
......
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.ComponentModel.Composition.Hosting;
using System.Linq;
using Microsoft.VisualStudio.Utilities;
using Microsoft.VisualStudio.InteractiveWindow;
using Microsoft.CodeAnalysis.Editor.UnitTests.Utilities;
using Microsoft.CodeAnalysis.Editor.UnitTests;
using Microsoft.VisualStudio.Composition;
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Interactive
{
......@@ -14,19 +15,18 @@ public sealed class InteractiveWindowTestHost : IDisposable
internal readonly IInteractiveWindow Window;
internal readonly TestInteractiveEvaluator Evaluator;
private readonly CompositionContainer _exportProvider;
private readonly System.ComponentModel.Composition.Hosting.ExportProvider _exportProvider;
private static readonly Lazy<AggregateCatalog> s_lazyCatalog = new Lazy<AggregateCatalog>(() =>
private static readonly Lazy<ComposableCatalog> s_lazyCatalog = new Lazy<ComposableCatalog>(() =>
{
var types = new[] { typeof(TestWaitIndicator), typeof(TestInteractiveEvaluator), typeof(IInteractiveWindow) }.Concat(GetVisualStudioTypes());
return new AggregateCatalog(types.Select(t => new AssemblyCatalog(t.Assembly)));
var assemblies = new[] { typeof(TestWaitIndicator).Assembly, typeof(TestInteractiveEvaluator).Assembly, typeof(IInteractiveWindow).Assembly }
.Concat(MinimalTestExportProvider.GetVisualStudioAssemblies());
return MinimalTestExportProvider.CreateAssemblyCatalog(assemblies);
});
internal InteractiveWindowTestHost()
{
_exportProvider = new CompositionContainer(
s_lazyCatalog.Value,
CompositionOptions.DisableSilentRejection | CompositionOptions.IsThreadSafe);
_exportProvider = MinimalTestExportProvider.CreateExportProvider(s_lazyCatalog.Value).AsExportProvider();
var contentTypeRegistryService = _exportProvider.GetExport<IContentTypeRegistryService>().Value;
Evaluator = new TestInteractiveEvaluator();
......@@ -34,39 +34,6 @@ internal InteractiveWindowTestHost()
Window.InitializeAsync().Wait();
}
private static Type[] GetVisualStudioTypes()
{
var types = new[]
{
// EDITOR
// Microsoft.VisualStudio.Platform.VSEditor.dll:
typeof(VisualStudio.Platform.VSEditor.EventArgsHelper),
// Microsoft.VisualStudio.Text.Logic.dll:
// Must include this because several editor options are actually stored as exported information
// on this DLL. Including most importantly, the tab size information.
typeof(VisualStudio.Text.Editor.DefaultOptions),
// Microsoft.VisualStudio.Text.UI.dll:
// Include this DLL to get several more EditorOptions including WordWrapStyle.
typeof(VisualStudio.Text.Editor.WordWrapStyle),
// Microsoft.VisualStudio.Text.UI.Wpf.dll:
// Include this DLL to get more EditorOptions values.
typeof(VisualStudio.Text.Editor.HighlightCurrentLineOption),
// BasicUndo.dll:
// Include this DLL to satisfy ITextUndoHistoryRegistry
typeof(BasicUndo.IBasicUndoHistory),
// Microsoft.VisualStudio.Language.StandardClassification.dll:
typeof(VisualStudio.Language.StandardClassification.PredefinedClassificationTypeNames)
};
return types;
}
public void Dispose()
{
if (Window != null)
......
......@@ -176,7 +176,6 @@
<PackageReference Include="Microsoft.VisualStudio.Editor" Version="$(MicrosoftVisualStudioEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.Internal.VisualStudio.Shell.Interop.14.0.DesignTime" Version="$(MicrosoftInternalVisualStudioShellInterop140DesignTimeVersion)" />
<PackageReference Include="Microsoft.Internal.Performance.CodeMarkers.DesignTime" Version="$(MicrosoftInternalPerformanceCodeMarkersDesignTimeVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Progression.CodeSchema" Version="$(MicrosoftVisualStudioProgressionCodeSchemaVersion)" />
......
......@@ -60,7 +60,6 @@
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
<PackageReference Include="Microsoft.Tpl.Dataflow" Version="$(MicrosoftTplDataflowVersion)" />
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
<PackageReference Include="Moq" Version="$(MoqVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="$(MicrosoftVisualStudioCompositionVersion)" />
......@@ -79,14 +78,13 @@
<PackageReference Include="Microsoft.VisualStudio.Language.NavigateTo.Interfaces" Version="$(MicrosoftVisualStudioLanguageNavigateToInterfacesVersion)" />
<PackageReference Include="BasicUndo" Version="$(BasicUndoVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.StandardClassification" Version="$(MicrosoftVisualStudioLanguageStandardClassificationVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor" Version="$(MicrosoftVisualStudioPlatformVSEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor.Interop" Version="$(MicrosoftVisualStudioPlatformVSEditorInteropVersion)" />
<PackageReference Include="Microsoft.VisualStudio.InteractiveWindow" Version="$(MicrosoftVisualStudioInteractiveWindowVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Diagnostics.PerformanceProvider" Version="$(MicrosoftVisualStudioDiagnosticsPerformanceProviderVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Validation" Version="$(MicrosoftVisualStudioValidationVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Threading" Version="$(MicrosoftVisualStudioThreadingVersion)" />
<PackageReference Include="StreamJsonRpc" Version="$(StreamJsonRpcVersion)" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="$(SystemThreadingTasksDataflowVersion)" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
......
......@@ -79,7 +79,6 @@
<PackageReference Include="Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime" Version="$(MicrosoftVisualStudioShellInterop140DesignTimeVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Editor" Version="$(MicrosoftVisualStudioEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.Internal.VisualStudio.Shell.Interop.14.0.DesignTime" Version="$(MicrosoftInternalVisualStudioShellInterop140DesignTimeVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Progression.CodeSchema" Version="$(MicrosoftVisualStudioProgressionCodeSchemaVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Progression.Common" Version="$(MicrosoftVisualStudioProgressionCommonVersion)" />
......
......@@ -64,5 +64,12 @@
<PackageReference Include="xunit" Version="$(xunitVersion)" />
<PackageReference Include="xunit.analyzers" Version="$(xunitanalyzersVersion)" />
<PackageReference Include="xunit.runner.console" Version="$(xunitrunnerconsoleVersion)" />
<!--
Required to avoid double write of System.Threading.Tasks.Dataflow.dll caused by both
Microsoft.VisualStudio.ProjectSystem and Microsoft.VisualStudio.Composition containing it.
This is tracked by CPS issue https://devdiv.visualstudio.com/DevDiv/_workitems/edit/547065.
Remove this reference once it's fixed.
-->
<PackageReference Include="Microsoft.Tpl.Dataflow" Version="$(MicrosoftTplDataflowVersion)" ExcludeAssets="all"/>
</ItemGroup>
</Project>
......@@ -50,6 +50,13 @@
<Reference Include="System.Design" />
<Reference Include="System.Runtime.Remoting" />
<PackageReference Include="Microsoft.Diagnostics.Runtime" Version="$(MicrosoftDiagnosticsRuntimeVersion)" />
<!--
Required to avoid double write of System.Threading.Tasks.Dataflow.dll caused by both
Microsoft.VisualStudio.ProjectSystem and Microsoft.VisualStudio.Composition containing it.
This is tracked by CPS issue https://devdiv.visualstudio.com/DevDiv/_workitems/edit/547065.
Remove this reference once it's fixed.
-->
<PackageReference Include="Microsoft.Tpl.Dataflow" Version="$(MicrosoftTplDataflowVersion)" ExcludeAssets="all"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Test\Diagnostics\Diagnostics.csproj">
......
......@@ -252,16 +252,12 @@ public Signature GetCurrentSignature()
public bool IsCaretOnScreen()
=> ExecuteOnActiveView(view =>
{
var editorPrimitivesFactoryService = GetComponentModelService<IEditorPrimitivesFactoryService>();
var viewPrimitivies = editorPrimitivesFactoryService.GetViewPrimitives(view);
var caret = view.Caret;
var advancedView = viewPrimitivies.View.AdvancedTextView;
var caret = advancedView.Caret;
return caret.Left >= advancedView.ViewportLeft
&& caret.Right <= advancedView.ViewportRight
&& caret.Top >= advancedView.ViewportTop
&& caret.Bottom <= advancedView.ViewportBottom;
return caret.Left >= view.ViewportLeft
&& caret.Right <= view.ViewportRight
&& caret.Top >= view.ViewportTop
&& caret.Bottom <= view.ViewportBottom;
});
public ClassifiedToken[] GetLightbulbPreviewClassifications(string menuText)
......@@ -270,13 +266,11 @@ public ClassifiedToken[] GetLightbulbPreviewClassifications(string menuText)
{
var broker = GetComponentModel().GetService<ILightBulbBroker>();
var classifierAggregatorService = GetComponentModelService<IViewClassifierAggregatorService>();
var primitives = GetComponentModelService<IEditorPrimitivesFactoryService>();
return GetLightbulbPreviewClassifications(
menuText,
broker,
view,
classifierAggregatorService,
primitives);
classifierAggregatorService);
});
}
......@@ -284,8 +278,7 @@ public ClassifiedToken[] GetLightbulbPreviewClassifications(string menuText)
string menuText,
ILightBulbBroker broker,
IWpfTextView view,
IViewClassifierAggregatorService viewClassifierAggregator,
IEditorPrimitivesFactoryService editorPrimitives)
IViewClassifierAggregatorService viewClassifierAggregator)
{
LightBulbHelper.WaitForLightBulbSession(broker, view);
......
......@@ -209,7 +209,9 @@ protected Action GetExecuteOnActionViewCallback(Action<IWpfTextView> action)
public string GetQuickInfo()
=> ExecuteOnActiveView(view =>
{
#pragma warning disable CS0618 // IQuickInfo* is obsolete
var broker = GetComponentModelService<IQuickInfoBroker>();
#pragma warning restore CS0618 // IQuickInfo* is obsolete
var sessions = broker.GetSessions(view);
if (sessions.Count != 1)
......
......@@ -55,8 +55,14 @@
<PackageReference Include="Microsoft.VisualStudio.TextManager.Interop" Version="$(MicrosoftVisualStudioTextManagerInteropVersion)" />
<PackageReference Include="Microsoft.VisualStudio.VsInteractiveWindow" Version="$(MicrosoftVisualStudioVsInteractiveWindowVersion)" />
<PackageReference Include="Microsoft.VisualStudio.ComponentModelHost" Version="$(MicrosoftVisualStudioComponentModelHostVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="System.Collections.Immutable" Version="$(SystemCollectionsImmutableVersion)" />
<!--
Required to avoid double write of System.Threading.Tasks.Dataflow.dll caused by both
Microsoft.VisualStudio.ProjectSystem and Microsoft.VisualStudio.Composition containing it.
This is tracked by CPS issue https://devdiv.visualstudio.com/DevDiv/_workitems/edit/547065.
Remove this reference once it's fixed.
-->
<PackageReference Include="Microsoft.Tpl.Dataflow" Version="$(MicrosoftTplDataflowVersion)" ExcludeAssets="all"/>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Compilers\Core\Portable\CodeAnalysis.csproj" />
......
......@@ -67,17 +67,19 @@
<Reference Include="System.XML" />
<Reference Include="System.Xml.Linq" />
<Reference Include="WindowsBase" />
<!-- Force a reference to Microsoft.VisualStudio.Text.Internal. This NuGet package includes an empty ref folder so nobody accidentally uses APIs from it,
but includes the lib folder so it's copied as a dependency of Microsoft.VisualStudio.Platform.VSEditor. Unfortunately we still have test code that
does depend on internal APIs, so we need to a force a reference here. -->
<Reference Include="$(NuGetPackageRoot)\microsoft.visualstudio.text.internal\$(MicrosoftVisualStudioTextInternalVersion)\lib\net46\Microsoft.VisualStudio.Text.Internal.dll" />
<PackageReference Include="EnvDTE" Version="$(EnvDTEVersion)" />
<PackageReference Include="EnvDTE80" Version="$(EnvDTE80Version)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor" Version="$(MicrosoftVisualStudioPlatformVSEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Platform.VSEditor.Interop" Version="$(MicrosoftVisualStudioPlatformVSEditorInteropVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Composition" Version="$(MicrosoftVisualStudioCompositionVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Shell.15.0" Version="$(MicrosoftVisualStudioShell150Version)" />
<PackageReference Include="Microsoft.VisualStudio.Editor" Version="$(MicrosoftVisualStudioEditorVersion)" />
<PackageReference Include="Microsoft.VisualStudio.RemoteControl" Version="$(MicrosoftVisualStudioRemoteControlVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Shell.Interop.14.0.DesignTime" Version="$(MicrosoftVisualStudioShellInterop140DesignTimeVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Language.Intellisense" Version="$(MicrosoftVisualStudioLanguageIntellisenseVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Text.Internal" Version="$(MicrosoftVisualStudioTextInternalVersion)" />
<PackageReference Include="Microsoft.Internal.VisualStudio.Shell.Interop.14.0.DesignTime" Version="$(MicrosoftInternalVisualStudioShellInterop140DesignTimeVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Progression.CodeSchema" Version="$(MicrosoftVisualStudioProgressionCodeSchemaVersion)" />
<PackageReference Include="Microsoft.VisualStudio.Progression.Common" Version="$(MicrosoftVisualStudioProgressionCommonVersion)" />
......
......@@ -40,8 +40,8 @@
<PackageReference Include="xunit" Version="$(xunitVersion)" />
<PackageReference Include="xunit.analyzers" Version="$(xunitanalyzersVersion)" />
<PackageReference Include="xunit.runner.console" Version="$(xunitrunnerconsoleVersion)" />
<PackageReference Include="Microsoft.Tpl.Dataflow" Version="$(MicrosoftTplDataflowVersion)" />
<PackageReference Include="Microsoft.Build.Runtime" Version="$(MicrosoftBuildRuntimeVersion)" />
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="$(SystemThreadingTasksDataflowVersion)" />
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册