Как преобразовать решение VS 2010 назад 2008

Мы начали использовать VS 2010 и были очень довольны им, таким образом, мы преобразовали наш проект в решение 2010 года (все еще .net 3.5) и продолжили нашу разработку в 2010. Однако мы получаем много ошибок недавно и хотим вернуться к 2008. Файлы решения изменились (новые проекты и файлы, добавленные везде), но все находится все еще в .net 3.5. Я задавался вопросом, существует ли простой способ мигрировать назад на 2008.

17
задан Bomberlt 12 March 2013 в 08:28
поделиться

6 ответов

Depending on if they kept the solution file structure similar between 2008 and 2010, you just need to create an empty solution file in 2008 and look at the top identifier line in it, and copy it into the other solution file.

I however doubt they kept it the same since they were integrating a number of features into solution files.

You would be better off to create a new blank solution in 2008 and use "Add existing project" to reimport them. As long as you dont have any custom "solution" wide references this will work (no solution folders, server setups, etc).

It is probably the fastest and most direct route.

18
ответ дан 30 November 2019 в 11:22
поделиться

Assuming that your solution is under source control and the migration from VS 2008 to VS 2010 was the only change in that checkin, just compare the two version and see what's changed.

Then change the lines affected back to the VS 2008 version and you should be good to go.

There's no automatic process as Microsoft see this as a one way operation.

4
ответ дан 30 November 2019 в 11:22
поделиться

You can manually edit .sln file in text editor. There is field named version, or like that, just change it from 10 to 9.

3
ответ дан 30 November 2019 в 11:22
поделиться

This question

How does one convert a Visual Studio .NET 2008 solution to Visual Studio .NET 2005?

might also be applicable for converting from 2010 back to 2008.

2
ответ дан 30 November 2019 в 11:22
поделиться

Мне удалось успешно поменять первые 2 строки с:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010

на

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
10
ответ дан 30 November 2019 в 11:22
поделиться

Как сообщает Mazzoo, вам нужно заменить эти строки в .SLN, но если вы проверяете, что вы выпускаете панель, у вас может быть предупреждение с использованием ToolsVersion = «4.0» , Вы должны заменить это в .csproj к:

<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
0
ответ дан 30 November 2019 в 11:22
поделиться
Другие вопросы по тегам:

Похожие вопросы: