-
Notifications
You must be signed in to change notification settings - Fork 676
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
vscode not recognizing .csproj file #1250
Comments
Hi! What version of C# for VS Code do you have installed? |
I have not installed any c# version specifically, i just installed omnisharp plugin. |
Hi, I did the same and got the same error message, although I'm using Linux. Running the --info command provided:
I guess this has to do with the following notice: Hope I could help. If not, I'm sorry. It's my first C# project. |
Note that the .NET Core SDK that you have installed only supports older project.json-based projects. |
@AAndharia: Without more information here, I'm unable to help. Could you take a moment to reply to my most recent response to you? |
.NET Command Line Tools (1.0.0-preview2-1-003177) Product Information: |
Hi, I'm stuck with a similar issue. I have a unity project, generated using Unity VSCode plugin. My .NET core specs are:
When I open the project, OmniSharp complains that can't process .csproj files:
|
@vonbloom: That's likely a different issue since it's a Unity project. Could you file a separate issue? |
@AAndharia: The problem you're experiencing is "by design" but it's because some bits that you're using are the latest and others aren't. The problem is that you have an older .NET Core SDK which only supports project.json .NET Core projects. However, it sounds like the 'yo aspnet' templates have been updated to create the csproj-based .NET Core projects. So, |
@KarimGeiger: I suspect my comment above describes the problem you're experiencing as well. |
Yes, thank you very much. I think you can close this issue (at least from my point of view). |
OK. I'm going to go ahead and close this issue. @AAndharia, please let me know if this doesn't solve the issue you're experiencing. Thanks all! |
@DustinCampbell I had as same as question, now resolved, thanks. |
I'm having this issue on Visual Studio Code while running a Unity project.
|
@DustinCampbell Any help? |
@iluqmansharif : I recommend filing a separate issue rather than reporting a new problem on an issue that's been closed for nine months. Given the amount of time, the problem you're seeing is almost certainly different. |
Steps to Reproduce:
yo aspnet webapi MyFirstASPNetCoreWebAPI
I've followed these links to create web api project template
https://docs.microsoft.com/en-us/aspnet/core/client-side/yeoman?#building-projects-with-yeoman
https://github.com/OmniSharp/generator-aspnet
open the project in vscode
It shows there are unresolved dependancies from .csproj. Please execute the restore command to continue. clicking restore shows this error in "Output"
error: Invalid input 'd:\Projects\vs-code-web\WebAPI1\WebAPI1.csproj'. The file type was not recognized.
Done: 1.
The text was updated successfully, but these errors were encountered: