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.

Implement completion for package references in csproj files

See original GitHub issue

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-rc4-004706)

Product Information:
 Version:            1.0.0-rc4-004706
 Commit SHA-1 hash:  e38bc4950c

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.11
 OS Platform: Darwin
 RID:         osx.10.11-x64
 Base Path:   /usr/local/share/dotnet/sdk/1.0.0-rc4-004706

VS Code version: 1.8.1 ee428b0eead68bf0fb99ab5fdc4439be227b6281 C# Extension version: 1.6.2

Steps to reproduce

Edit a netcore csproj

Expected behavior

Intellisense when trying to get nuget package names and versions. This is currently possible in project.json. Editing this file manually without intellisense is a bit painful.

Actual behavior

No behaviour its just editing a text file

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:44
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
tintoycommented, Aug 14, 2017

Hi.

It’s not part of OmniSharp, but I finally bit the bullet and wrote an extension to provide basic completion for PackageReference elements (package Ids and versions). I’m planning to eventually build out a full MSBuild language service behind it but it’s probably good enough now for the most common use-case (packages from nuget.org - custom package sources from NuGet.config will be added in a later release). The NuGet v3 API is a little slow (but not infuriatingly so). Hopefully they’ll improve it over time.

BTW, I’m happy to contribute this functionality back to OmniSharp if it makes sense to do so.

5reactions
andrewiocommented, Feb 22, 2020

Hi, do you have any progress? Fixing Date?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing Dependencies in .NET: .csproj, .packages.config ...
Get an overview of the artifacts involved in .NET dependency management, how they interact, and how to use them.
Read more >
PackageReference in project files - NuGet - Microsoft Learn
With PackageReference, you can also use MSBuild conditions to choose package references per target framework, or other groupings. It also allows ...
Read more >
Different ways how to deal with package reference in csproj
Till now, I was always using attributes to control asset dependency for PackageReference (first example). Recently, after using NuGet package ...
Read more >
Language Server Extension Guide - Visual Studio Code
With Language Servers, you can implement autocomplete, error-checking ... the /client/package.json file is that it references the vscode extension host API ...
Read more >
Moving to SDK-Style projects and package references in ...
The use of the name 'csproj' for the project system is a bit unfortunate. It gets easily mixed up with the project file...
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