dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.96k stars 4.03k forks source link

[MacOS] Can't build CSharp.EditorFeatures.UnitTests.csproj due to the Core.Wpf dependency #30861

Open ddizh opened 5 years ago

ddizh commented 5 years ago

Version Used: latest master

Steps to Reproduce:

  1. cd ~/roslyn/src/EditorFeatures/CSharpTest/
  2. dotnet build --no-restore

Expected Behavior: Build succeeded

Actual Behavior:

Build failed with following errors:

Microsoft (R) Build Engine version 15.8.166+gd4e8d81a88 for .NET CoreCopyright (C) Microsoft Corporation. All rights reserved.
  Microsoft.CodeAnalysis -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis/Microsoft.CodeAnalysis.dll  Microsoft.CodeAnalysis.Compiler.Test.Resources -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.Compiler.Test.Resources/Microsoft.CodeAnalysis.Compiler.Test.Resources.dll  Microsoft.CodeAnalysis.Scripting -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.Scripting/Microsoft.CodeAnalysis.Script
ing.dll
  Microsoft.CodeAnalysis.VisualBasic -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.VisualBasic/Microsoft.CodeAnalysis.Vi
sualBasic.dll
  Microsoft.CodeAnalysis.CSharp -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.CSharp/Microsoft.CodeAnalysis.CSharp.dll
  Microsoft.CodeAnalysis.Workspaces -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.Workspaces/Microsoft.CodeAnalysis.Work
spaces.dll
  Microsoft.CodeAnalysis.CSharp.Scripting -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.CSharp.Scripting/Microsoft.CodeAnalysis.CSharp.Scripting.dll
  Microsoft.CodeAnalysis.Features -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.Features/Microsoft.CodeAnalysis.Features.dll
  Microsoft.CodeAnalysis.Workspaces.Desktop -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.Workspaces.Desktop/Microsoft.CodeAnalysis.Workspaces.Desktop.dll
  Microsoft.CodeAnalysis.EditorFeatures.Text -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.EditorFeatures.Text/Microsoft.CodeAnalysis.EditorFeatures.Text.dll
  Microsoft.CodeAnalysis.CSharp.Workspaces -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.CSharp.Workspaces/Microsoft.CodeAnalysis.CSharp.Workspaces.dll
  Roslyn.Test.Utilities -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Roslyn.Test.Utilities/netstandard1.3/Roslyn.Test.Utilities.dll
  Microsoft.CodeAnalysis.VisualBasic.Scripting -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.VisualBasic.Scripting/Microsoft.CodeAnalysis.VisualBasic.Scripting.dll
  Microsoft.CodeAnalysis.VisualBasic.Workspaces -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.VisualBasic.Workspaces/Microsoft.CodeAnalysis.VisualBasic.Workspaces.dll
  Microsoft.CodeAnalysis.InteractiveFeatures -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.InteractiveFeatures/Microsoft.CodeAnalysis.InteractiveFeatures.dll
  Microsoft.CodeAnalysis.VisualBasic.Features -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.VisualBasic.Features/Microsoft.CodeAnalysis.VisualBasic.Features.dll
  Microsoft.CodeAnalysis.EditorFeatures -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.EditorFeatures/Microsoft.CodeAnalysis.EditorFeatures.dll
  Roslyn.Test.PdbUtilities -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Roslyn.Test.PdbUtilities/Roslyn.Test.PdbUtilities.dll
  Microsoft.CodeAnalysis.CSharp.Test.Utilities -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.CSharp.Test.Utilities/Microsoft.CodeAnalysis.CSharp.Test.Utilities.dll
  Microsoft.CodeAnalysis.CSharp.Features -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.CSharp.Features/Microsoft.CodeAnalysis.CSharp.Features.dll
  Microsoft.CodeAnalysis.Remote.Workspaces -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.Remote.Workspaces/Microsoft.CodeAnalysis.Remote.Workspaces.dll
  Microsoft.CodeAnalysis.VisualBasic.EditorFeatures -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.VisualBasic.EditorFeatures/Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.dll
  Microsoft.CodeAnalysis.CSharp.EditorFeatures -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Microsoft.CodeAnalysis.CSharp.EditorFeatures/Microsoft.CodeAnalysis.CSharp.EditorFeatures.dll
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(46,13): error CS0103: The name 'InitializeComponent' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,60): error CS1061: 'Dashboard' does not containa definition for 'OverloadsCheckbox' and no accessible extension method 'OverloadsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,84): error CS1061: 'Dashboard' does not containa definition for 'CommentsCheckbox' and no accessible extension method 'CommentsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,107): error CS1061: 'Dashboard' does not contain a definition for 'StringsCheckbox' and no accessible extension method 'StringsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,129): error CS1061: 'Dashboard' does not contain a definition for 'PreviewChangesCheckbox' and no accessible extension method 'PreviewChangesCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,158): error CS1061: 'Dashboard' does not contain a definition for 'ApplyButton' and no accessible extension method 'ApplyButton' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,176): error CS1061: 'Dashboard' does not contain a definition for 'CloseButton' and no accessible extension method 'CloseButton' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(85,13): error CS0103: The name 'ResolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(86,13): error CS0103: The name 'ResolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(88,13): error CS0103: The name 'UnresolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(89,13): error CS0103: The name 'UnresolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(99,13): error CS0103: The name 'ResolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(100,13): error CS0103: The name 'ResolvableConflictText' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(103,13): error CS0103: The name 'UnresolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(104,13): error CS0103: The name 'UnresolvableConflictText' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(106,13): error CS0103: The name 'ErrorText' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(215,26): error CS1061: 'Dashboard' does not contain a definition for 'OverloadsCheckbox' and no accessible extension method 'OverloadsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(215,62): error CS1061: 'Dashboard' does not contain a definition for 'OverloadsCheckbox' and no accessible extension method 'OverloadsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(219,26): error CS1061: 'Dashboard' does not contain a definition for 'CommentsCheckbox' and no accessible extension method 'CommentsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(219,61): error CS1061: 'Dashboard' does not contain a definition for 'CommentsCheckbox' and no accessible extension method 'CommentsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(223,26): error CS1061: 'Dashboard' does not contain a definition for 'StringsCheckbox' and no accessible extension method 'StringsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(223,60): error CS1061: 'Dashboard' does not contain a definition for 'StringsCheckbox' and no accessible extension method 'StringsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(227,26): error CS1061: 'Dashboard' does not contain a definition for 'PreviewChangesCheckbox' and no accessible extension method 'PreviewChangesCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(227,67): error CS1061: 'Dashboard' does not contain a definition for 'PreviewChangesCheckbox' and no accessible extension method 'PreviewChangesCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
  Roslyn.Test.Utilities -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Roslyn.Test.Utilities/net46/Roslyn.Test.Utilities.dll
  Roslyn.Services.UnitTests.Utilities -> /Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/Binaries/Debug/Dlls/Roslyn.Services.UnitTests.Utilities/Roslyn.Services.UnitTests.Utilities.dll

Build FAILED.

/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(46,13): error CS0103: The name 'InitializeComponent' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,60): error CS1061: 'Dashboard' does not containa definition for 'OverloadsCheckbox' and no accessible extension method 'OverloadsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,84): error CS1061: 'Dashboard' does not containa definition for 'CommentsCheckbox' and no accessible extension method 'CommentsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,107): error CS1061: 'Dashboard' does not contain a definition for 'StringsCheckbox' and no accessible extension method 'StringsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,129): error CS1061: 'Dashboard' does not contain a definition for 'PreviewChangesCheckbox' and no accessible extension method 'PreviewChangesCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,158): error CS1061: 'Dashboard' does not contain a definition for 'ApplyButton' and no accessible extension method 'ApplyButton' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(48,176): error CS1061: 'Dashboard' does not contain a definition for 'CloseButton' and no accessible extension method 'CloseButton' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(85,13): error CS0103: The name 'ResolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(86,13): error CS0103: The name 'ResolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(88,13): error CS0103: The name 'UnresolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(89,13): error CS0103: The name 'UnresolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(99,13): error CS0103: The name 'ResolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(100,13): error CS0103: The name 'ResolvableConflictText' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(103,13): error CS0103: The name 'UnresolvableConflictBorder' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(104,13): error CS0103: The name 'UnresolvableConflictText' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(106,13): error CS0103: The name 'ErrorText' does not exist in the current context [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(215,26): error CS1061: 'Dashboard' does not contain a definition for 'OverloadsCheckbox' and no accessible extension method 'OverloadsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(215,62): error CS1061: 'Dashboard' does not contain a definition for 'OverloadsCheckbox' and no accessible extension method 'OverloadsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(219,26): error CS1061: 'Dashboard' does not contain a definition for 'CommentsCheckbox' and no accessible extension method 'CommentsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(219,61): error CS1061: 'Dashboard' does not contain a definition for 'CommentsCheckbox' and no accessible extension method 'CommentsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(223,26): error CS1061: 'Dashboard' does not contain a definition for 'StringsCheckbox' and no accessible extension method 'StringsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(223,60): error CS1061: 'Dashboard' does not contain a definition for 'StringsCheckbox' and no accessible extension method 'StringsCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(227,26): error CS1061: 'Dashboard' does not contain a definition for 'PreviewChangesCheckbox' and no accessible extension method 'PreviewChangesCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/InlineRename/Dashboard/Dashboard.xaml.cs(227,67): error CS1061: 'Dashboard' does not contain a definition for 'PreviewChangesCheckbox' and no accessible extension method 'PreviewChangesCheckbox' accepting a first argument of type 'Dashboard' could be found (are you missing a using directive or an assembly reference?) [/Users/d.dizhevskiy/Desktop/Projects/GIT/roslyn/roslyn/src/EditorFeatures/Core.Wpf/Microsoft.CodeAnalysis.EditorFeatures.Wpf.csproj]
    0 Warning(s)
    24 Error(s)

Time Elapsed 00:00:07.81

I was trying to investigate and fix https://github.com/dotnet/roslyn/issues/30751 and decided to add more tests for MoveType refactoring. Is it possible to de-couple these tests from WPF?

jaredpar commented 5 years ago

dotnet build --no-restore

Did you run build.sh --restore before this? It wasn't listed in the repro steps.

Note: in general you can't depend on dotnet build working for projects in Roslyn.sln. There are some where it will work but it's not guaranteed as many projects utilize build tasks that depend on the desktop framework. Everything inside Compilers.sln can be built with dotnet though.

Is it possible to de-couple these tests from WPF?

Possibly yes. It's a bit of work though and I'm unsure if its' on the IDE teams' radar at the moment.

ddizh commented 5 years ago

Did you run build.sh --restore before this?

yes I did but does it really matter? AFAIK build.sh only does things with Compilers.sln which doesn't have a reference for Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests.csproj

So I guess the only way right now to test the changes in MoveType refactoring is to build it locally, then build omnisharp with reference to my local Microsoft.CodeAnalysis.CSharp.Features.dll. This makes the development on non-windows environments quite tricky.

jaredpar commented 5 years ago

yes I did but does it really matter?

Restore of the projects must happen in order for build to succeed. Lacking restore you will get all manner of build errors. True build.sh --restore will only restore Compilers.sln. But there was no indication you were running restore during your repro hence it's a plausible source of error here.

This makes the development on non-windows environments quite tricky.

For this particular layer of the stack yes. I'll leave this to the IDE team to comment on their plans for enabling Mac base development of this layer. It should just come naturally as we move to .NET Core 3.0 but that's a ways down the road.

jasonmalinowski commented 5 years ago

This is the first I've heard of somebody actually trying this, so this hasn't been something on our radar yet. That said, splitting those out would be a good thing to do.

The history here is years ago Features/EditorFeatures didn't exist as a distinct set of projects -- it was just EditorFeatures, and so the test projects matched it. When we needed to split the main projects, we never split the tests.

@jaredpar Will .NET Core 3.0 allow building of WPF apps on Mac, even if it can't run them?

jaredpar commented 5 years ago

@nguerrera can better answer that question but my understanding is yes it should.

nguerrera commented 5 years ago

We hope that it will work, but I can't promise that just yet.