Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSBuildWorkspaceTests.Test_OpenProjectReferencingPortableProject Test failure #41456

Closed
gafter opened this issue Feb 6, 2020 · 1 comment
Closed
Labels
Area-Compilers Disabled Test Test Test failures in roslyn-CI

Comments

@gafter
Copy link
Member

gafter commented Feb 6, 2020

The following test always fails on my machine:

 Microsoft.CodeAnalysis.MSBuild.UnitTests.MSBuildWorkspaceTests.Test_OpenProjectReferencingPortableProject
\r\nExpected:\r\n\r\nActual:\r\nMsbuild failed when processing the file 'C:\\Users\\ngafter\\AppData\\Local\\Temp\\RoslynTests\\f6f186d6-4561-42ee-bb5b-a24aca92fdee\\CSharpProject\\ReferencesPortableProject.csproj' with message: C:\\Users\\ngafter\\AppData\\Local\\Temp\\RoslynTests\\f6f186d6-4561-42ee-bb5b-a24aca92fdee\\CSharpProject\\PortableProject.csproj: (44, 11): The imported project \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\MSBuild\\Microsoft\\Portable\\v4.5\\Microsoft.Portable.CSharp.targets\" was not found. Also, tried to find \"Microsoft\\Portable\\v4.5\\Microsoft.Portable.CSharp.targets\" in the fallback search path(s) for $(MSBuildExtensionsPath32) - \"C:\\Program Files (x86)\\MSBuild\" . These search paths are defined in \"R:\\roslyn\\artifacts\\bin\\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests\\Debug\\net472\\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests.dll.config\". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.,\r\nMsbuild failed when processing the file 'C:\\Users\\ngafter\\AppData\\Local\\Temp\\RoslynTests\\f6f186d6-4561-42ee-bb5b-a24aca92fdee\\CSharpProject\\PortableProject.csproj' with message: The imported project \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\MSBuild\\Microsoft\\Portable\\v4.5\\Microsoft.Portable.CSharp.targets\" was not found. Also, tried to find \"Microsoft\\Portable\\v4.5\\Microsoft.Portable.CSharp.targets\" in the fallback search path(s) for $(MSBuildExtensionsPath32) - \"C:\\Program Files (x86)\\MSBuild\" . These search paths are defined in \"R:\\roslyn\\artifacts\\bin\\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests\\Debug\\net472\\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests.dll.config\". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.  C:\\Users\\ngafter\\AppData\\Local\\Temp\\RoslynTests\\f6f186d6-4561-42ee-bb5b-a24aca92fdee\\CSharpProject\\PortableProject.csproj\r\nDifferences:\r\n++> Msbuild failed when processing the file 'C:\\Users\\ngafter\\AppData\\Local\\Temp\\RoslynTests\\f6f186d6-4561-42ee-bb5b-a24aca92fdee\\CSharpProject\\ReferencesPortableProject.csproj' with message: C:\\Users\\ngafter\\AppData\\Local\\Temp\\RoslynTests\\f6f186d6-4561-42ee-bb5b-a24aca92fdee\\CSharpProject\\PortableProject.csproj: (44, 11): The imported project \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\MSBuild\\Microsoft\\Portable\\v4.5\\Microsoft.Portable.CSharp.targets\" was not found. Also, tried to find \"Microsoft\\Portable\\v4.5\\Microsoft.Portable.CSharp.targets\" in the fallback search path(s) for $(MSBuildExtensionsPath32) - \"C:\\Program Files (x86)\\MSBuild\" . These search paths are defined in \"R:\\roslyn\\artifacts\\bin\\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests\\Debug\\net472\\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests.dll.config\". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.,\r\n++> Msbuild failed when processing the file 'C:\\Users\\ngafter\\AppData\\Local\\Temp\\RoslynTests\\f6f186d6-4561-42ee-bb5b-a24aca92fdee\\CSharpProject\\PortableProject.csproj' with message: The imported project \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Preview\\MSBuild\\Microsoft\\Portable\\v4.5\\Microsoft.Portable.CSharp.targets\" was not found. Also, tried to find \"Microsoft\\Portable\\v4.5\\Microsoft.Portable.CSharp.targets\" in the fallback search path(s) for $(MSBuildExtensionsPath32) - \"C:\\Program Files (x86)\\MSBuild\" . These search paths are defined in \"R:\\roslyn\\artifacts\\bin\\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests\\Debug\\net472\\Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests.dll.config\". Confirm that the path in the <Import> declaration is correct, and that the file exists on disk in one of the search paths.  C:\\Users\\ngafter\\AppData\\Local\\Temp\\RoslynTests\\f6f186d6-4561-42ee-bb5b-a24aca92fdee\\CSharpProject\\PortableProject.csproj\r\n\r\nExpected: True\r\nActual:   False
   at Roslyn.Test.Utilities.AssertEx.Equal[T](IEnumerable`1 expected, IEnumerable`1 actual, IEqualityComparer`1 comparer, String message, String itemSeparator, Func`2 itemInspector, String expectedValueSourcePath, Int32 expectedValueSourceLine) in R:\roslyn\src\Test\Utilities\Portable\Assert\AssertEx.cs:line 230
   at Microsoft.CodeAnalysis.MSBuild.UnitTests.MSBuildWorkspaceTestBase.AssertFailures(MSBuildWorkspace workspace, String[] expectedFailures) in R:\roslyn\src\Workspaces\MSBuildTest\MSBuildWorkspaceTestBase.cs:line 25
   at Microsoft.CodeAnalysis.MSBuild.UnitTests.MSBuildWorkspaceTests.<Test_OpenProjectReferencingPortableProject>d__3.MoveNext() in R:\roslyn\src\Workspaces\MSBuildTest\MSBuildWorkspaceTests.cs:line 112
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

FYI the directory C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft does not contain a subdirectory v4.5.

gafter pushed a commit to gafter/roslyn that referenced this issue Feb 6, 2020
Relates to dotnet#41456
@gafter gafter added Area-Compilers Disabled Test Test Test failures in roslyn-CI labels Feb 9, 2020
gafter pushed a commit that referenced this issue Feb 24, 2020
gafter pushed a commit to gafter/roslyn that referenced this issue Apr 6, 2020
gafter pushed a commit to gafter/roslyn that referenced this issue Apr 6, 2020
gafter pushed a commit that referenced this issue Apr 7, 2020
gafter pushed a commit to gafter/roslyn that referenced this issue Apr 17, 2020
gafter pushed a commit that referenced this issue Apr 22, 2020
* Implement target-typed conditional expressions.
* Skip broken test (Relates to #41456)
@jmarolf
Copy link
Contributor

jmarolf commented Nov 17, 2021

portable class libraries are no longer supported by default in Visual Studio.

@jmarolf jmarolf closed this as completed Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Disabled Test Test Test failures in roslyn-CI
Projects
None yet
Development

No branches or pull requests

2 participants