将 VS 2010 项目转换为 VS 2008

发布于 2024-09-27 07:10:20 字数 63 浏览 0 评论 0原文

我从网上下载了一些示例 ASP .NET 项目。但它们是VS2010格式的。我使用VS 2008。如何更改格式?

I downloaded some sample ASP .NET projects from net. But they are in VS2010 format. I use VS 2008. How can I change the format?

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

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

发布评论

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

评论(2

怎樣才叫好 2024-10-04 07:10:20

您可以尝试创建一个全新的解决方案并从现有源创建新项目(文件 | 新建 | 来自现有代码的项目)。但是,如果他们使用任何 .Net 4.0 功能(或某些 C# 4.0 功能,如动态),那么您就不走运了。

You can try to create a brand new solution and create new projects from the existing source (File | New | Project From Existing Code). However, if they're using any .Net 4.0 features (or certain C# 4.0 features like dynamic) then you'll be out of luck.

酒儿 2024-10-04 07:10:20

如果您将 2008 年的项目迁移到 2010 年,则实际上只有 .csproj、.vbproj、.sln 文件等会发生变化。因此理论上您可以尝试将这些值编辑回 2008 年的值。但是,示例中的实际代码可能针对的 .NET Framework 版本与您所使用的版本不同。

我建议在 VS 2008 中创建一个新的 ASP.NET 项目,然后使用“添加”、“添加现有项目”将示例中的页面、配置文件等添加到您的项目中。然后编辑它们以解决使用您没有的功能时出现的任何问题。

或者更好的是,找到一些您实际使用的 VS 版本和 .NET Framework 版本的示例。

If you take a 2008 project and migrate it to 2010, only the .csproj, .vbproj, .sln files etc will actually change. So in theory you could try to edit these back to 2008 values. However, the actual code in the samples may be aimed at a different version of the .NET Framework than you have.

I would recommend creating a new ASP.NET project in VS 2008, then using Add, Add Existing Item to add the pages, config files etc from the samples into your project. Then edit them to fix any issues with using functionaliy you don't have.

Or better still, go find some samples for the version of VS and the version of the .NET Framework that you are actually using.

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