将两个项目合并为一个 - Visual Studio 2008
我有一个项目(Web 应用程序),我一直在 C#/ASP.NET 中开发,我需要将另一个项目合并到我的项目中,这样他们就可以共享会话等。这个项目是用 VB 编写的。 NET,我认为可能是一个“网站” - 它利用了 App_Code 文件夹,而我没有。
我基本上想在我的项目中创建一个文件夹,并将其他项目的所有文件复制到这里,但事实证明这非常困难。当我添加文件夹并使用“添加现有”添加其他项目文件时,这些文件似乎无法构建,因为我收到各种“无法加载类型”错误。
有一定的方法可以做到这一点吗?
I have a project (Web Application) which I have been developing in C#/ASP.NET, and I'm required to take another project and essentially merge it into mine, so they can share sessions etc. This project is coded in VB.NET, and I think may be a 'web site' - it utilizes the App_Code folder, which I don't have.
I basically want to create a folder in my project, and copy all the files of the other project into here, but it's proving very difficult. When I add in the folder and use 'add existing' to add the other project files, the files don't seem to build, as I get all sorts of 'could not load type' errors.
Is there a certain way to go about doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是不可能的。您只能转换其中一个项目以适应另一个项目。您可以将 VB 代码转换为 C# 代码,反之亦然。另一种方法是使用 Visual Studio,这样您就可以根据“csc”进行构建,并且您可能需要编写一个 Nant 脚本来自动化该过程。因为,Visual Studio 项目一次在特定语言运行时被标记。
我希望你觉得这很有用。
I don't think this is possible. You can only convert one of the projects to suit the other. You can convert the VB code to C# code or the other way round. Another way out is to work out of Visual Studio such that, you will make your builds against "csc" and you will likely need to write a Nant script to automate that process. Because, visual studio projects are tagged at a particular language run-time at a time.
I hope you find this useful.