Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Общие вопросы по .NET и C# > [VC#] Как задать версия .NET по умолчанию


Автор: MuForum 3.10.2007, 22:27
Привет!
Столкнулся с такой проблемой, что при компиляции проекта на Visual C# выдает Warning's.

Работаю на Microsoft Visual Studio 2008 Beta2

Код

Warning    1    Could not resolve assembly System.Core. The target framework required by this assembly (3.5) is higher than the project target framework. If this reference is required by your code, you may get compilation errors.    WindowsFormsApplication1

Warning    2    Could not resolve assembly System.Xml.Linq. The target framework required by this assembly (3.5) is higher than the project target framework. If this reference is required by your code, you may get compilation errors.    WindowsFormsApplication1

Warning    3    Could not resolve assembly System.Data.DataSetExtensions. The target framework required by this assembly (3.5) is higher than the project target framework. If this reference is required by your code, you may get compilation errors.    WindowsFormsApplication1

Warning    4    The referenced component 'System.Core' could not be found.    

Warning    5    The referenced component 'System.Xml.Linq' could not be found.    

Warning    6    The referenced component 'System.Data.DataSetExtensions' could not be found.    


P.S. -> Хотя я использую компоненты под .NET 2.0

Вопрос: Как избавится от такого гемора и как задать версию .NET по default?

Автор: Alek86 3.10.2007, 22:41
попробуй в настройках проекта поменяй версию

Автор: MuForum 3.10.2007, 22:56
#2, Alek86 - Ну я при создание указал другую версию и теперь всё нормально.

P.S. -> Теперь возник другой вопрос, а как в C# сделать отступ с лева?

В C++ это выглядело так:
Код

  char T[255];
  sprintf(T, "3%d - 10%d", index, exp);


- А как такое в C# будет выглядеть?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)