在GitHub Pages中使用ASP.NET [英] Using ASP.NET in GitHub Pages
问题描述
我正在尝试使用Visual Studio 2013中的ASP.NET Web表单模板在GitHub Pages上创建个人网站.(我正在尝试学习ASP.NET/C#)
I am trying to create a personal website on GitHub Pages using the ASP.NET Web Forms template from Visual Studio 2013. (I'm trying to learn ASP.NET/C#)
但是看起来GitHub页面只会加载名为"index.html"的文件作为主页.
But it looks like GitHub pages only will load a file named "index.html" as the home page.
我将index.html文件重定向到Default.aspx文件,但这只会导致我的浏览器下载该文件.这是我当前的index.html文件:
I made my index.html file redirect to my Default.aspx file, but it just causes my browser to download that file. This is my index.html file currently:
<html>
<head>
<title></title>
<meta http-equiv="refresh" content="1;url=/JoeWebsite/Default.aspx">
<meta name="keywords" content="automatic redirection">
</head>
<body>
If your browser doesn't automatically go there within a few seconds,
you may want to go to
<a href="/JoeWebsite/Default.aspx">My Website</a>
manually.
</body>
</html>
ASP.NET项目在github中的正确存储库中.从上面的代码片段可以明显看出,该项目的文件夹名为"JoeWebsite".
The ASP.NET project is in the correct repo in github. The folder for the project is named "JoeWebsite" evident from the code snippet above.
是否可以在GitHub中建立一个ASP.NET网站?怎么样?
Is it possible to have a ASP.NET website in GitHub? How?
如果没有,还有其他免费的托管服务吗?
If not, is there an alternative free hosting service that does?
推荐答案
据我所知,Github不支持ASP.NET,但是您可以使用免费的Azure帐户.看看:
As far as I know Github does not support ASP.NET, but you can use a free Azure account. Take a look at:
这篇关于在GitHub Pages中使用ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!