Шаблон компонента времени выполнения C++ Winrt без сборки в VS Enterprise

Шаблон компонента времени выполнения Нет сборки в VS Enterprise, хорошо строится в проекте сообщества.

Это шаблон без изменений.

Работает в Community версии 15.7.4 Не работает в Enterprise версии 15.8.2

Выход

:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2185): error C3861: 'from_abi': identifier not found
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2185): note: This diagnostic occurred in the compiler generated function 'conditional<_Test,T,_Ty2>::type winrt::impl::as(From *)'
1>        with
1>        [
1>            _Ty2=winrt::com_ptr<T>
1>        ]
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2209): error C3861: 'from_abi': identifier not found
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2209): note: This diagnostic occurred in the compiler generated function 'conditional<_Test,T,_Ty2>::type winrt::impl::try_as(From *) noexcept'
1>        with
1>        [
1>            _Ty2=winrt::com_ptr<T>
1>        ]
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(3850): error C3861: 'from_abi': identifier not found
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(3873): note: see reference to class template instantiation 'winrt::weak_ref<T>' being compiled
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(2984): note: see reference to class template instantiation 'winrt::com_ptr<ILanguageExceptionErrorInfo2>' being compiled
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(3054): note: see reference to class template instantiation 'winrt::com_ptr<IRestrictedErrorInfo>' being compiled
1>c:\program files (x86)\microsoft visual studio 2017 enterprise\vc\tools\msvc\14.15.26726\include\type_traits(616): note: see reference to class template instantiation 'std::basic_string_view<wchar_t,std::char_traits<wchar_t>>' being compiled
1>c:\program files (x86)\microsoft visual studio 2017 enterprise\vc\tools\msvc\14.15.26726\include\xstring(2124): note: see reference to class template instantiation 'std::is_convertible<const _StringViewIsh &,std::basic_string_view<wchar_t,std::char_traits<wchar_t>>>' being compiled
1>        with
1>        [
1>            _StringViewIsh=const wchar_t *
1>        ]
1>c:\program files (x86)\microsoft visual studio 2017 enterprise\vc\tools\msvc\14.15.26726\include\xstring(2122): note: see reference to variable template 'const bool conjunction_v<std::is_convertible<wchar_t const * const &,std::basic_string_view<wchar_t,std::char_traits<wchar_t> > >,std::negation<std::is_convertible<wchar_t const * const &,wchar_t const *> > >' being compiled
1>c:\program files (x86)\microsoft visual studio 2017 enterprise\vc\tools\msvc\14.15.26726\include\xstring(2281): note: see reference to alias template instantiation '_Is_string_view_ish<const wchar_t*>' being compiled
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(6308): error C3861: 'to_abi': identifier not found
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(7189): error C7510: 'get_weak': use of dependent template name must be prefixed with 'template'
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(7259): note: see reference to class template instantiation 'winrt::implements<D,I...>' being compiled
1>c:\program files (x86)\windows kits\10\include\10.0.17134.0\cppwinrt\winrt\base.h(4404): note: see reference to class template instantiation 'winrt::com_ptr<IMarshal>' being compiled
1>Done building project "RuntimeComponent1.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

person IkoLogs    schedule 03.09.2018    source источник
comment
Пожалуйста, покажите код! stackoverflow.com/help/mcve   -  person orhtej2    schedule 03.09.2018
comment
@orhtej2 orhtej2 Извините, что не добавил код, потому что ошибка сборки возникает в C++ Winrt Runtime Comp Template как есть, без каких-либо изменений кода, создать новый шаблон и без сборки. Как упоминалось ранее, эта проблема возникает только с последней версией VS Enterprise v15.8.x.   -  person IkoLogs    schedule 04.09.2018
comment
@Inspectable Не уверен, понимаю ли я ваш комментарий, но у меня был предварительный просмотр, установленный один раз, а затем удаленный с помощью Vs Installer. Я устанавливаю Winrt через Nugget, и единственное, что загружается, это VSIX. Вы говорите, что это проблема установки или связана с ура 15.8.x   -  person IkoLogs    schedule 04.09.2018
comment
Проблема в том, что компилятор (15.8.x) и SDK (10.0.17134.0) не согласны с двухэтапным поиском имен. Вам нужно изменить способ работы компилятора с помощью флагов, перечисленных в связанном ответе, или дождаться обновленного SDK. Вам также не нужно использовать пакет NuGet C++/WinRT: он является частью SDK, и вы используете SDK, как видно из выходных данных компилятора.   -  person IInspectable    schedule 04.09.2018
comment
Та же проблема, попробуйте решение, это дубликат Еще раз спасибо   -  person IkoLogs    schedule 04.09.2018
comment
Проблема устранена в SDK версии 10.0.17763.0. Этот ответ уже обновлен.   -  person IInspectable    schedule 04.10.2018