[GH-ISSUE #4973] [Bug] Community \ MSBuild \ Microsoft \ VC \ v170 \ Microsoft CppCommon. targets (254,5): error MSB8066 #2215

Closed
opened 2026-03-23 21:20:40 +00:00 by mirror · 7 comments
Owner

Originally created by @puning on GitHub (Mar 23, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4973

Bug Description

I run

Cargo make -- profile production windows x86 appflow

The final compilation failed with the following error

C: \ Program Files \ Microsoft Visual Studio \ 2022 \ Community \ MSBuild \ Microsoft \ VC \ v170 \ Microsoft CppCommon. targets (254,5): error MSB8066: * D: \ wwwroot \ AppFlow \ front end \ appflowy_flutter \ build \ windows \ x64 \ CMakeFiles \ 5a184fcff5748b28bf693499bc85a4a1 \ super-native extensions. dll. rule; D: In the file \ wwwroot \ AppFlow \ front end \ appflowy_flutter \ build \ windows \ x64 \ CMakeFiles \ ea6ee0acb77cdc7cb91cfe44181ec65b \ super_native_extensions_plugin_cargokit.rule Զ ˳ Ϊ 1. [D: \ wwwroot \ AppFlowy \ front end \ appflowy_flutter \ build \ windows \ x64 \ plugins \ supernotative_extensions \ supernotative_extensions_plugin_cargument. vcxproj]

Building Windows application

Build process failed

Compilation has been like this multiple times. May I ask what the problem is and how to solve it? Thank you!

How to Reproduce

cargo make --profile production-windows-x86 appflowy

Expected Behavior

After multiple unsuccessful compilations, the problem cannot be determined. How can we successfully compile

Operating System

windows11

AppFlowy Version(s)

0.5.2

Screenshots

No response

Additional Context

No response

Originally created by @puning on GitHub (Mar 23, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4973 ### Bug Description I run Cargo make -- profile production windows x86 appflow The final compilation failed with the following error C: \ Program Files \ Microsoft Visual Studio \ 2022 \ Community \ MSBuild \ Microsoft \ VC \ v170 \ Microsoft CppCommon. targets (254,5): error MSB8066: * D: \ wwwroot \ AppFlow \ front end \ appflowy_flutter \ build \ windows \ x64 \ CMakeFiles \ 5a184fcff5748b28bf693499bc85a4a1 \ super-native extensions. dll. rule; D: In the file \ wwwroot \ AppFlow \ front end \ appflowy_flutter \ build \ windows \ x64 \ CMakeFiles \ ea6ee0acb77cdc7cb91cfe44181ec65b \ super_native_extensions_plugin_cargokit.rule Զ ˳ Ϊ 1. [D: \ wwwroot \ AppFlowy \ front end \ appflowy_flutter \ build \ windows \ x64 \ plugins \ supernotative_extensions \ supernotative_extensions_plugin_cargument. vcxproj] Building Windows application Build process failed Compilation has been like this multiple times. May I ask what the problem is and how to solve it? Thank you! ### How to Reproduce cargo make --profile production-windows-x86 appflowy ### Expected Behavior After multiple unsuccessful compilations, the problem cannot be determined. How can we successfully compile ### Operating System windows11 ### AppFlowy Version(s) 0.5.2 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@LucasXu0 commented on GitHub (Mar 25, 2024):

@puning It's a cache issue due to the network. There are two options you can try:

solution 1

cd appflowy_flutter
# /Desktop/AppFlowy/frontend/appflowy_flutter
flutter clean

solution 2

# /Desktop/AppFlowy/
git clean -xdf

After that, execute cargo make --profile production-windows-x86 appflowy again.

<!-- gh-comment-id:2017595439 --> @LucasXu0 commented on GitHub (Mar 25, 2024): @puning It's a cache issue due to the network. There are two options you can try: ### solution 1 ```shell cd appflowy_flutter # /Desktop/AppFlowy/frontend/appflowy_flutter flutter clean ``` ### solution 2 ```shell # /Desktop/AppFlowy/ git clean -xdf ``` After that, execute `cargo make --profile production-windows-x86 appflowy` again.
Author
Owner

@puning commented on GitHub (Mar 25, 2024):

@puning It's a cache issue due to the network. There are two options you can try:

solution 1

cd appflowy_flutter
# /Desktop/AppFlowy/frontend/appflowy_flutter
flutter clean

solution 2

# /Desktop/AppFlowy/
git clean -xdf

After that, execute cargo make --profile production-windows-x86 appflowy again.

Okay, thank you. I'll try again and provide feedback here

<!-- gh-comment-id:2018000357 --> @puning commented on GitHub (Mar 25, 2024): > @puning It's a cache issue due to the network. There are two options you can try: > > ### solution 1 > ```shell > cd appflowy_flutter > # /Desktop/AppFlowy/frontend/appflowy_flutter > flutter clean > ``` > > ### solution 2 > ```shell > # /Desktop/AppFlowy/ > git clean -xdf > ``` > > After that, execute `cargo make --profile production-windows-x86 appflowy` again. Okay, thank you. I'll try again and provide feedback here
Author
Owner

@annieappflowy commented on GitHub (Mar 29, 2024):

Did it work?
Closing it as no follow up on the issue

<!-- gh-comment-id:2026934230 --> @annieappflowy commented on GitHub (Mar 29, 2024): Did it work? Closing it as no follow up on the issue
Author
Owner

@puning commented on GitHub (Mar 31, 2024):

@puning这是网络造成的存储问题。您可以尝试以下两个选择:

解决方案1

cd appflowy_flutter
# /Desktop/AppFlowy/frontend/appflowy_flutter
flutter clean

解决方案2

# /Desktop/AppFlowy/
git clean -xdf

之后,cargo make --profile production-windows-x86 appflowy再次执行。

I did not solve the problem with the first solution, based on the same error message.
Every two solutions are not applicable. Tip: fatal: not a git repository (or any of the parent directors):. git

<!-- gh-comment-id:2028790161 --> @puning commented on GitHub (Mar 31, 2024): > @puning这是网络造成的存储问题。您可以尝试以下两个选择: > > ### 解决方案1 > ```shell > cd appflowy_flutter > # /Desktop/AppFlowy/frontend/appflowy_flutter > flutter clean > ``` > > ### 解决方案2 > ```shell > # /Desktop/AppFlowy/ > git clean -xdf > ``` > > 之后,`cargo make --profile production-windows-x86 appflowy`再次执行。 I did not solve the problem with the first solution, based on the same error message. Every two solutions are not applicable. Tip: fatal: not a git repository (or any of the parent directors):. git
Author
Owner

@LucasXu0 commented on GitHub (Apr 1, 2024):

How did you clone this project? There should be a .git file in the project's root directory.

<!-- gh-comment-id:2028999928 --> @LucasXu0 commented on GitHub (Apr 1, 2024): How did you clone this project? There should be a .git file in the project's root directory.
Author
Owner

@puning commented on GitHub (Apr 1, 2024):

How did you clone this project? There should be a .git file in the project's root directory.

I downloaded the 0.5.2 compressed file directly from Releases

<!-- gh-comment-id:2029226022 --> @puning commented on GitHub (Apr 1, 2024): > How did you clone this project? There should be a .git file in the project's root directory. I downloaded the 0.5.2 compressed file directly from Releases
Author
Owner

@puning commented on GitHub (Apr 2, 2024):

How did you clone this project? There should be a .git file in the project's root directory.

I changed the Flutter source and downloaded and installed it through Git, and there was no problem. It should be caused by my use of an image source.
Thank you for your reply and help, thank you very much!

<!-- gh-comment-id:2031171655 --> @puning commented on GitHub (Apr 2, 2024): > How did you clone this project? There should be a .git file in the project's root directory. I changed the Flutter source and downloaded and installed it through Git, and there was no problem. It should be caused by my use of an image source. Thank you for your reply and help, thank you very much!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2215
No description provided.