简体   繁体   中英

Can not open HTML file in visual studio 2013

Suddenly faced a problem, I cannot open HTML file in visual studio 2013.

Here is my solution: 在此输入图像描述

When I make double click on HtmlPage.html I get this massage:

在此输入图像描述

I tried to make exclude from project and include to project.But it didn't helped me.

While other files with I can open as usual.

If I close the current solution and open another I still get the same problem.

Any idea why I cant open the html file?

You can click right button and select "Open with" option and after select html-editor. It should help.

Try the following solution:

In your web config you should have the above 3 lines. You should replace the value "2.0.?.?" with "3.0.0.0" and you should be fine.

<appSettings>
    <add key="webpages:Version" value="2.0.?.?" />
  </appSettings>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM