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.

Can no longer target a directory containing subdirectories with csproj files

See original GitHub issue

In this commit on line 181, the ability to open a directory in which many subdirectories contained csproj files was removed.

https://github.com/OmniSharp/omnisharp-vscode/commit/369a904da6b7cbf4379f64bdc5496032548b4056#diff-c297262b72ad1ea22e80c49f21777b21eeab88e2c535f0286a387c392f85c91cL181

The logic was if ((hasCsProjFiles && !hasSlnFile) || (hasProjectJson && !hasProjectJsonAtRoot)) but now it is gone completely. This is exactly the condition in my project: no sln file anywhere, no project.json anywhere, and the root directory opened in vscode has a bunch of subdirectories, each of which contain csproj files.

What was the reason to remove the (hasCsProjFiles && !hasSlnFile) check to add a directory target?

I re-added the check in https://github.com/wuzzeb/omnisharp-vscode/commit/00894e1c3148eb70aa10b5679b6569caa0adc404 and it works perfectly for me.

Should I submit a pull-request? I am somewhat hesitant to submit a pull request because the check was deliberately deleted. Was there a reason to remove this development mode?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
JoeRobichcommented, Aug 3, 2021
5reactions
lonix1commented, Aug 3, 2021

Hi again @JoeRobich is this bug on the roadmap? It landed just a few days ago, that’s why I’m pushing - whereas a while from now it’ll just be another issue on the backlog.

So my question is, is this on the todo list for the next update / hotfix?

Hate to sound like a broken record but it’s a nasty one. Working on big projects is insanely difficult right now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Including content files in .csproj that are outside the project cone
Open the properties of the file and set "Copy to Output Directory" to "Copy always". BUT You cannot do it for the directory...
Read more >
How to: Select the Files to Build - MSBuild - Microsoft Learn
Learn how to select the files to build in the MSBuild project file by listing each file separately or using wildcards.
Read more >
Overview | slngen - Microsoft Open Source
SlnGen is a Visual Studio solution file generator. Visual Studio solutions generally do not scale well for large project trees. They are scoped...
Read more >
Managing Dependencies in .NET: .csproj, .packages.config ...
config — and do a NuGet restore operation on the target machine. PackageReference. PackageReference is actually not a file, but a section in...
Read more >
Protocol Buffers/gRPC Codegen Integration Into .NET Build
The following example will add all .proto files in a project and all its subdirectories (excluding special directories such as bin and obj...
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