-
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
.cshtml view not found #1252
Comments
@thienedits could you provide your project.json seems like you need this part in it if you do not already
|
Cool I added it and now it works. Thanks. |
Hello I don't this is working. I thought it worked before because I readded a .cshtml file with the same that was deleted. When i create a new .cshtml its still the same error. project.json
|
@thienedits this isn't a problem with the C# extension, and I don't know how many people here are experts on ASP.NET so you may have more luck asking your question in another repo. That said, here are the differences that you might see when launching your app from VS Code vs. the command line:
|
Closing as project.json is no longer supported. Please open a new issue if running into Razor issues. |
Environment data
dotnet --info
output:VS Code version: 1.9.1
C# Extension version: 1.7.0
Steps to reproduce
In the root folder I have a Controllers and Views folders. I am creating a simple view,
CategoriesController.cs:
Views/Categories folder contains Cat.cshtml
Expected behavior
hitting http://localhost:58927/Categories/Cat should return the html file
Actual behavior
Getting a 404 error, page can't be found. If I create the code in Visual Studio and then open in vscode, the page renders. However anything I create in vscode does not return the html.
The text was updated successfully, but these errors were encountered: