重新编译 ASP.NET Web 项目而不为其提供虚拟目录

发布于 2024-08-02 07:12:12 字数 262 浏览 5 评论 0原文

在我的工作中,我经常从长期被遗忘的存储库中检索非常特定版本的硬壳 ASP.NET Web 应用程序,进行微小的更改,然后重新编译。

此过程中的一个主要烦恼是必须为我需要重新编译的每个 Web 项目创建一个虚拟目录。我对这个过程没有任何问题,但它很乏味,而且在 .NET 1 项目上仍然是一个非常手动的过程。

有没有一种相当简单的方法来重新编译 csproj 的二进制文件而无需设置新的虚拟目录?

编辑:我不介意使用命令行工具或外部解决方案,只要它们相当简单明了。

In my line of work I'm often retrieving very specific versions of crusty ASP.NET web apps from their long-forgotten repositories, making minor changes and then recompiling.

A major annoyance in this process is having to create a virtual directory for every web project that I need to recompile. I don't have any problems with the process, but it's tedious and still a very manual process on .NET 1 projects.

Is there a fairly simple way to recompile the binaries of the csproj without setting up a new virtual directory?

Edit: I don't mind using command line tools, or external solutions, as long as they're fairly simple and straightforward.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

久夏青 2024-08-09 07:12:12

我不确定是否还有其他方法,除非您可以将项目转换为 vs 2005。

I'm not sure there's any other way unless you can convert the project to vs 2005.

再可℃爱ぅ一点好了 2024-08-09 07:12:12

当我处理一个网络项目时,我遇到了类似的问题,我需要管理几个都需要相同虚拟目录的分支。我编写了这个小应用程序,它可以自动为您进行一些虚拟切换。

我已经添加到该应用程序中,以使其功能更强大(一次支持多个项目)......而且我很遗憾地说我从未更新过博客上的代码。这可能只是您管理虚拟目录的一个良好起点。

我将尝试尽快在博客上获取最新代码,届时我将更新这篇文章。

但与此同时请查看源代码此处

附:我知道这个版本的代码需要清理这个版本只是一个概念证明。

I ran into a similar issue when i was dealing with a web project that i needed to manage a few branches that all wanted the same virtual directory. I wrote this small app that does some switching of the virtual for you automagically.

I have added on to the app to make it more functional (supporting more than just one project at once)... and i'm sorry to say i have never update the code on the blog. This might just serve as a good starting place for you to manage your virtual directories.

I will try to get the latest code up on the blog soon and i will update this post when i do.

but in the meantime check out the source here

ps. i know this version of the code needs to be cleaned up this version was just a proof of concept.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文