question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ProjectCompilationFeatureDetector shouldn't expect VisualStudioWorkspace on a Mac

See original GitHub issue

VSMac has a MEF error due to VS Workspace missing:

MEF composition error: Microsoft.AspNetCore.Analyzers.FeatureDetection.ProjectCompilationFeatureDetector.ctor(workspace): expected exactly 1 export matching constraints:
    Contract name: Microsoft.VisualStudio.LanguageServices.VisualStudioWorkspace
    TypeIdentityName: Microsoft.VisualStudio.LanguageServices.VisualStudioWorkspace

https://github.com/dotnet/aspnetcore/blob/801578fe19eb3f831075cb7db0b1522e60c61db1/src/Analyzers/shared/FeatureDetection/ProjectCompilationFeatureDetector.cs#L31

@rynowak I think a simple AllowDefault on the import should fix this. This code runs on Mac now!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rynowakcommented, Feb 6, 2020

@mkArtakMSFT - taking this.

How has this code made its way into VS for mac? We don’t actually ship this, we just maintain it for WTE. So it sounds like they shipped it in VS for mac. I’m happy to fix this, or at least silence the error, but it sounds like ideally it would work in VS for mac as well.

@abpiskunov

0reactions
rynowakcommented, Feb 7, 2020

@KirillOsenkov - it sounds like you don’t need anything from us and this will just be taken care up when you update WTE? Clap back if you need something from me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strange Visual Studio TFS behavior when working on a ...
When you use a server workspace, Visual Studio keeps only one copy of each file. This can significantly reduce disk space usage and...
Read more >
Visual Studio Code Workspace Trust security
The Workspace Trust feature lets you decide whether code in your project folder can be executed by VS Code and extensions without your...
Read more >
Visual Studio for Mac: No SDK found at specified location.
Trying to compile an iOS project on the command line throws this error: Could not find a valid Xcode app bundle at '/Library/Developer/ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found