Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [firebase_auth_desktop] Nuget is not installed #69

Closed
esaesa opened this issue Apr 25, 2022 · 7 comments
Closed

🐛 [firebase_auth_desktop] Nuget is not installed #69

esaesa opened this issue Apr 25, 2022 · 7 comments

Comments

@esaesa
Copy link

esaesa commented Apr 25, 2022

Bug report

Describe the bug
Compiling with firebase_auth_desktop for windows fail with the following

Running "flutter pub get" in commerce...
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Nuget is not installed.
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: The command "setlocal [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\nuget.exe install Microsoft.Windows.ImplementationLibrary -Version 1.0.211019.2 -ExcludeVersion -OutputDirectory C:/src/commerce/build/windows/packages [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\nuget.exe install Microsoft.Web.WebView2 -Version 1.0.1108.44 -ExcludeVersion -OutputDirectory C:/src/commerce/build/windows/packages [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmEnd [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmErrorLevel [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: exit /b %1 [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmDone [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :VCEnd" exited with code 1. [C:\src\commerce\build\windows\plugins\desktop_webview_auth\DEPENDENCIES_DOWNLOAD.vcxproj]
Exception: Build process failed.

Steps to reproduce

Steps to reproduce the behavior:

  1. Use the following versions
  2. add firebase auth desktop
  3. compile

Expected behavior

Compile without error

Sample project

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );

  runApp(App());
}

Additional context

Can compile and run normally with firebase_core_desktop without firebase_auth_desktop and get a windows desktop version running
I tried flutter clean
Nuget is in build\windows after compile try and fail


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.5, on Microsoft Windows [Version 10.0.19042.1586], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.5)
[√] Android Studio (version 2021.1)
[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
[√] Connected device (3 available)
[√] HTTP Host Availability

• No issues found!


Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
Dart SDK 2.16.2
Flutter SDK 2.10.5
commerce 1.0.0+1

dependencies:
- app_settings 4.1.1 [flutter]
- carousel_slider 4.0.0 [flutter]
- connectivity_plus 2.2.1 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows]
- cupertino_icons 1.0.4
- firebase_auth 3.3.11 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_desktop 0.1.1 [desktop_webview_auth firebase_auth firebase_auth_dart firebase_auth_platform_interface firebase_core firebase_core_dart flutter meta]
- firebase_core 1.15.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_desktop 0.1.1 [firebase_core_dart firebase_core_platform_interface flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta typed_data vector_math sky_engine]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path typed_data vector_math]
- flutter_native_splash 2.1.0 [args image js meta path xml yaml universal_io flutter flutter_web_plugins]
- flutter_widget_from_html_core 0.8.5+1 [csslib flutter fwfh_text_style html]
- google_sign_in 5.2.4 [flutter google_sign_in_platform_interface google_sign_in_web]
- http 0.13.4 [async http_parser meta path]
- intl 0.17.0 [clock path]
- localstorage 4.0.0+1 [flutter path_provider]
- photo_view 0.13.0 [flutter]
- provider 6.0.2 [collection flutter nested]
- shared_preferences 2.0.13 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_pr
eferences_web shared_preferences_windows]
- transparent_image 2.0.0

dev dependencies:
- flutter_lints 1.0.4 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_
span stream_channel string_scanner term_glyph typed_data]
- introduction_screen 3.0.0 [flutter dots_indicator collection]

transitive dependencies:
- _discoveryapis_commons 1.0.2 [http http_parser meta]
- archive 3.2.2 [crypto path]
- args 2.3.0
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.2.0
- charcode 1.3.1
- clock 1.1.0
- collection 1.15.0
- connectivity_plus_linux 1.3.0 [flutter connectivity_plus_platform_interface meta nm]
- connectivity_plus_macos 1.2.1 [connectivity_plus_platform_interface flutter]
- connectivity_plus_platform_interface 1.2.0 [flutter meta plugin_platform_interface]
- connectivity_plus_web 1.2.0 [connectivity_plus_platform_interface flutter_web_plugins flutter]
- connectivity_plus_windows 1.2.0 [connectivity_plus_platform_interface flutter]
- crypto 3.0.1 [collection typed_data]
- csslib 0.17.1 [source_span]
- dbus 0.7.1 [args ffi meta xml]
- desktop_webview_auth 0.0.6 [crypto flutter http]
- dots_indicator 2.1.0 [flutter]
- fake_async 1.2.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase_auth_dart 0.1.1 [firebase_core_dart firebaseapis googleapis_auth http meta]
- firebase_auth_platform_interface 6.2.1 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.3.9 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_dart 0.1.1 [collection meta]
- firebase_core_platform_interface 4.2.5 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.6.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebaseapis 0.1.1 [_discoveryapis_commons http]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta typed_data vector_math]
- fwfh_text_style 2.7.3+1 [flutter]
- google_sign_in_platform_interface 2.1.2 [flutter quiver]
- google_sign_in_web 0.10.0+5 [flutter flutter_web_plugins google_sign_in_platform_interface js]
- googleapis_auth 1.3.0 [crypto http http_parser]
- html 0.15.0 [csslib source_span]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- image 3.1.3 [archive meta xml]
- js 0.6.3
- lints 1.0.1
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.3
- meta 1.7.0
- nested 1.0.0 [flutter]
- nm 0.5.0 [dbus]
- path 1.8.0
- path_provider 2.0.9 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- path_provider_android 2.0.12 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.8 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.5 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.5 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.3 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.5 [ffi flutter path path_provider_platform_interface win32]
- petitparser 4.4.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- process 4.2.4 [file path platform]
- quiver 3.0.1+1 [matcher]
- shared_preferences_android 2.0.11 [flutter shared_preferences_platform_interface]
- shared_preferences_ios 2.1.0 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.1.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_macos 2.0.3 [flutter shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.3 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.1.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sky_engine 0.0.99
- source_span 1.8.1 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- term_glyph 1.2.0
- test_api 0.4.8 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- typed_data 1.3.0 [collection]
- universal_io 2.0.4 [collection crypto meta typed_data]
- vector_math 2.1.1
- win32 2.4.1 [ffi]
- xdg_directories 0.2.0+1 [meta path process]
- xml 5.3.1 [collection meta petitparser]
- yaml 3.1.0 [collection source_span string_scanner]


@pr-Mais
Copy link
Contributor

pr-Mais commented Apr 25, 2022

Hello,
Please follow the solution in this SO answer and let me know if you're still having the same problem.

@esaesa
Copy link
Author

esaesa commented Apr 25, 2022

I done it and still the same problem. Also note that it is different problem. And i can compile normally without this specific package

@pr-Mais
Copy link
Contributor

pr-Mais commented Apr 25, 2022

Something else to try is to make sure you check the additional requirements for developing Flutter Windows apps.

@dahef34
Copy link

dahef34 commented May 14, 2022

I had the same issue. I opened visual studio (not code) and installed the updates and the problem went away after restarting the terminal.

@mario-aleo
Copy link

mario-aleo commented May 18, 2022

I'm having the same issue... not the Nuget is not installed, but the erros on desktop_webview_auth_DEPENDENCIES_DOWNLOAD.vcxproj.

I was using the Build Tools instead of having Visual Studio installed, but since I've got this problem I've tried to uninstall the Build Tools and install Visual Studio but it didn't worked to solve the problem.

It just happens when I'm using firebase_auth_desktop, if I remove it from the project it builds.

@mario-aleo
Copy link

Ok, so I just find the problem, for some reason Nuget was installed without any source, so I need to manually add nuget.org to the sources and that was it.

@pr-Mais
Copy link
Contributor

pr-Mais commented May 26, 2022

Thank you everyone for sharing your experience. I'm not so experienced with Windows environment, but It's mostly a local issue related to some cache or missing sources for Nuget, in case it's still persisting, you could try installing Nuget CLI from here, that might solve it as well since this command actually tries to install Nuget locally in the project build if it doesn't find it installed on your machine.

@pr-Mais pr-Mais closed this as completed May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants