【问题标题】:Using ASP.NET in GitHub Pages在 GitHub 页面中使用 ASP.NET
【发布时间】:2015-08-07 06:42:31
【问题描述】:

我正在尝试使用 Visual Studio 2013 中的 ASP.NET Web 表单模板在 GitHub Pages 上创建个人网站。(我正在尝试学习 ASP.NET/C#)

但看起来 GitHub 页面只会加载一个名为“index.html”的文件作为主页。

我将 index.html 文件重定向到我的 Default.aspx 文件,但这只会导致我的浏览器下载该文件。这是我目前的 index.html 文件:

<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 的正确存储库中。从上面的代码 sn-p 可以看出,该项目的文件夹名为“JoeWebsite”。

是否可以在 GitHub 中拥有 ASP.NET 网站?怎么样?

如果没有,是否有替代的免费托管服务?

【问题讨论】:

    标签: c# html asp.net git github-pages


    【解决方案1】:

    据我所知,Github 不支持 ASP.NET,但您可以使用免费的 Azure 帐户。看看:

    http://www.asp.net/hosting

    【讨论】:

      猜你喜欢
      • 2022-09-23
      • 1970-01-01
      • 2020-04-28
      • 1970-01-01
      • 1970-01-01
      • 2013-06-26
      • 2019-01-13
      • 1970-01-01
      • 2013-10-20
      相关资源
      最近更新 更多