簡體   English   中英

如何在 Visual Studio 中創建和部署 Mono ASP.NET web 項目?

[英]How to create and Deploy a Mono ASP.NET web project in Visual Studio?

So the web server i am using right now is a Apache web server which runs ASP.Net on mono but i can't seem to get a project up and running on the mono ASP.Net server as it all ways just lists the directories within文件夾

我嘗試創建一個 ASP.Net 項目上傳它沒有工作我嘗試創建一個 MVC 項目並上傳它,也沒有工作我嘗試在 .net 框架 4 上創建一個項目並上傳它但仍然沒有運氣

我已經沒有想法如何讓它工作了,我應該以特殊的方式編譯項目嗎? 還是我應該使用 .net 的特定版本,因為 mono ASP.NET 版本說 4

Mono 是基於 linux 的運行時,例如 .NET 框架是基於 Z0F4137ED1502B5045D6083AA258B5 的運行時。 You don't have "mono ASP.NET web projects" - you have "ASP.NET web projects" that run on .net framework in windows or mono (maybe) in linux.

如果這是一個新項目,我實際上建議您創建一個 .net 核心站點; microsoft provide core for windows and linux so it should be easier to get started developing something that compiles and runs on windows, and then is either transported compiled to linux or recompiled there.

請注意,您的 apache(如果您不喜歡使用它)可能需要配置為代理,以便它將請求轉發到托管您的應用程序的 Kestrel。 Apache 本身不理解 .NET 任何東西,只會將 .NET 應用程序視為一堆文件夾和文件

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM