отсутствует presentationframework
Установил Framework 3.0, 3.5 и 3.5 SP1. Этого файла так и не появилось. Подскажите пожалуйста, как установить себе эту библиотеку.
Visual Studio 2005
form1.h(166) : error C3624: 'System::Windows::UIElement': use of this type requires a reference to assembly 'PresentationCore'
1> This diagnostic occurred while importing type 'System::Windows::FrameworkElement ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Shape ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Ellipse ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1>d:\programs\ep_graph\form1.h(166) : error C3624: 'System::Windows::RoutedEventArgs': use of this type requires a reference to assembly 'PresentationCore'
1> This diagnostic occurred while importing type 'System::Windows::Data::DataTransferEventArgs ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::FrameworkElement ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Shape ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Ellipse ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1>d:\programs\ep_graph\form1.h(166) : error C2860: 'void' cannot be an argument type, except for '(void)'
1> This diagnostic occurred while importing type 'System::Windows::FrameworkElement ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Shape ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Ellipse ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1>d:\programs\ep_graph\form1.h(169) : error C3624: 'System::Windows::Media::Brush': use of this type requires a reference to assembly 'PresentationCore'
1>d:\programs\ep_graph\form1.h(169) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>ep_graph.cpp
1>d:\programs\ep_graph\Form1.h(166) : error C3624: 'System::Windows::UIElement': use of this type requires a reference to assembly 'PresentationCore'
1> This diagnostic occurred while importing type 'System::Windows::FrameworkElement ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Shape ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Ellipse ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1>d:\programs\ep_graph\Form1.h(166) : error C3624: 'System::Windows::RoutedEventArgs': use of this type requires a reference to assembly 'PresentationCore'
1> This diagnostic occurred while importing type 'System::Windows::Data::DataTransferEventArgs ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::FrameworkElement ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Shape ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Ellipse ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1>d:\programs\ep_graph\Form1.h(166) : error C2860: 'void' cannot be an argument type, except for '(void)'
1> This diagnostic occurred while importing type 'System::Windows::FrameworkElement ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Shape ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1> This diagnostic occurred while importing type 'System::Windows::Shapes::Ellipse ' from assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
1>d:\programs\ep_graph\Form1.h(169) : error C3624: 'System::Windows::Media::Brush': use of this type requires a reference to assembly 'PresentationCore'
1>d:\programs\ep_graph\Form1.h(169) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>AssemblyInfo.cpp
1>Generating Code...
1>Build log was saved at "file://d:\programs\ep_graph\Debug\BuildLog.htm"
1>ep_graph - 10 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Цитата: Akula
В программе необходимо использовать System::Windows::Shapes для рисования фигур.
Это WPF, а для него нужен дотнет, как минимум, 3.0, как вы уже сами поняли. А референсы чего не подцепили? Вам компилятор об этом и говорит.
Правда не совсем ясно, зачем вы для обращения к нему пользуетесь Managed C++ и VS2005. C++ пользоваться неудобно, а в VS2005 нет необходимых инструментов.