在 GitHub 页中使用 ASP.NET

Using ASP.NET in GitHub Pages

我正在尝试使用 Visual Studio 2013 年的 ASP.NET Web 表单模板在 GitHub 页面上创建个人网站。(我正在尝试学习 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 中的正确回购中。从上面的代码片段可以明显看出项目的文件夹名为 "JoeWebsite"。

是否可以在 GitHub 中创建一个 ASP.NET 网站?怎么样?

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

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

http://www.asp.net/hosting

我认为现在 Github 可以托管 ASP.NET,但调整有点棘手,也许它只是特定类型。我引用链接供您检查:

https://swimburger.net/blog/dotnet/how-to-deploy-aspnet-blazor-webassembly-to-github-pages