-
Notifications
You must be signed in to change notification settings - Fork 2.1k
cshtml view returns 404 in vscode #6142
Comments
Upgrade your project to NetCore 1.1 with msbuild and try again |
What are you doing to run your application in vscode? |
@pranavkm I am going to Debug window and clicking .Net Core Launch (web) |
What's the working directory set to in your application? The template assumes your content root is based off the current directory, so an incorrect directory would certainly explain the issue you're seeing here. |
Hi @pranavkm another dev set this up and I am not very familiar with .Net but I think its currently a folder called DiceWeb6. Inside this directory there is a Controllers and Views directory |
here is the vscode launch.json
|
The workspace settings seem right at first glance, but it would be useful to look at what the |
yes seems running |
@thienedits, could you print out what the |
|
I tried setting up a using the preview2 CLI + the launchsetting.json you have (vscode auto generates something pretty identical) and it worked fine for me (this was on Ubuntu 16.04 machine, I don't have access to a OSX machine), and that seemed to work fine for me. At this point, I'd recommend updating to the RTM CLI tooling since |
ok i will take a look thanks. |
Closing because there is not enough information to reproduce this problem. |
I posted in the omnisharp repo but hopefully can get some more guidance here. I have a very simple controller returning a cshtml view. Works when project is opened in Visual Studio Code but not vscode.
dotnet/vscode-csharp#1252
The text was updated successfully, but these errors were encountered: