-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
No any IntelliSense while editing csproj file of .net core project. #2787
Comments
I always add |
@Xiu-Li, again, simply add In any case, the magic of referring the namespace happens in some VS extension, I doubt the MsBuild repository is the correct place to report the problem. Sorry, I cannot suggest where is the right repository for that. What happens for C# projects is the XML editor extension in Visual Studio is hooked up by some other VSIX extension, which supplies the namespace when sees a namespace-less document with the |
@kkm000, thanks very much, after adding |
I have this issue to. But adding |
I had the same issue. Adding the schema worked for me after restarting Visual Studio (v15.8.1). |
I just rechecked, unlike @tom-corwin I really do not get any IntelliSense for my csproj file. Adding the schema does not work, and after restarting Visual Studio it still does not work. After completely reinstalling Visual Studio it still does not work. What is VERY strange however, is that IntelliSense in the |
@couven92 I'm not sure if it will help. But in the |
@tom-corwin nope, does not help, still no IntelliSense. |
I have the same problem with .Net Core Projects. IntelliSense for .csproj files does not work if the project is loaded. (VS2017 Enterprise 15.8.3) dotnet --info:
|
Yes, not repro for F# .Net Core project on VS2017 Enterprise 15.8.3. |
+EnrichoReich
|
@gorangrubic I have reinstalled VS (15.8.4) with no extensions and created a new dotnet core (ASP.NET core) project but that did not help, Intellisense in csproj file does not work. After creading a new project the schema parameter in csproj file properties is empty! It is frustrating! |
Hey, I did some investigations and found out, if you put your project into a solution folder like Intellisense for csproj files does not work properly after reloading the solution. This also happens with .Net-Framework projects. I think it is a VS XML-Editor Problem but I'm not sure. So, this is sad because I like to organize my projects into solution folders. 😞 |
@enricoreich: Looks like it, thanks for nailing it down! Unloading a project before editing (i. e. not the shadow-editing with the project still loaded) does not pick up the IS schema either, even though all the right schemata are checked as "use" in the file properties window. But if you copy the file, give it an extension ".xml" and open, then IS works. As if the schema is forced into the XML editor by some Roslyn VS integration component, when the VS is aware (let's say, way too aware in this case) that the file is actually a project file, not just any run-off-the-mill XML document. If only we find the right team to deal with the issue. I am sure this is not a problem with MSBuild! Let me try to find the folk on GitHub who likely own that part. |
Problem still happening for me too at version VS Community 2017 15.8.6 - even when project is unloaded and with xmlns attribute added to . |
@kkm000, I know there's a repo for ASP.NET Core tooling for VS, but I don't know if there is one just for .NET Core. If there is, that's probably the best place for this issue (i'd assume, anyways) |
I described this problem a few weeks ago at the Visual Studio Developer Community website but apparently there is hardly anyone interested in it. Maybe if it gets some upvotes or comments someone will take care of it. |
@enricoreich I gave it an upvote, hopefully they'll fix it sooner rather than later. |
@tom-corwin @enricoreich I also gave it an upvote. |
@enricoreich I found the project I was looking for dotnet/project-system Here's an issue tracking IntelliSense not working in C# projects: dotnet/project-system#3225 |
Here's another two hits of this: dotnet/project-system#3225 |
Not repro on VS-Val/d15.9/28230.54 (15.9 preview 5.0). For C#/VB/F# .Net Core project, the IntelliSense can work well. |
For my cases: When switching VS to English, IntelliSense works with a simple playground project. When switching to Chinese it does not work. VS 15.8.8 gives my project files(on which IntelliSense not works) indent=4, while some older version gives 2. Edit: the cause for my projects should be Solution Directories. When I move a project into root level of solution, it just suddenly works(without reloading). |
I can repro this in VS-Enterprise 15.8.9 & 15.9preview5. OS: Windows 10 Pro [17763.55, 1809], Language: German If I create a project at solution root (in VS) Intellisense for csproj files works as intended. But if I create or drag&drop a project into a solution folder/directory and reload the solution, it does not work e.g. almost no Intellisense for csproj files. Only code completions for CDATA and comments are shown. |
Same here as @enricoreich describes. I actually use a root
├─ bin
| ├─ Debug
| | ├─ netstandard1.3
| | └─ netstandard2.0
| └─ Release
| ├─ netstandard1.3
| └─ netstandard2.0
├─ obj
| └─ ...
├─ src
| └─ ...
├─ sample
| └─ ...
├─ test
| └─ ...*.Test
├─ .gitignore
├─ .gitattributes
├─ .editorconfig
├─ LICENSE
├─ README.md
├─ AllRules.ruleset
├─ Directory.Build.props
└─ *.sln I use |
Just an FYI, even though I get limited Intellisense in the latest VS 15.9 builds, it still doesn't have any information on |
I don't yet know the underlying cause of the problem, but let me share the experience I just had with a customer reporting the same problem in the VS 2019 Enterprise 16.4.5 XML editor, trying to edit a .csproj. Setting the xmlns made no difference to him. |
It looks like there may be multiple issues reported here. I think the main one was fixed as #2723 for Visual Studio 16.5. I'm going to close this issue, but please don't hesitate to file a new issue if you see problems on 16.5 or higher. Please include details like your OS and Visual Studio versions, language settings, and what you expect to see and actually experience. |
VS 2019: I get no intellisense for the |
Steps to reproduce
Environment data
VS Build: d15.6stg.27207.3002
dotnet --info:
The text was updated successfully, but these errors were encountered: