Implement completion for package references in csproj files
See original GitHub issueEnvironment 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:
- Created 7 years ago
- Reactions:44
- Comments:18 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 fromNuGet.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.
Hi, do you have any progress? Fixing Date?