react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Unable to build the RNW app with version 0.69.6

Open Manjunatha123 opened this issue 1 year ago • 0 comments

Problem Description

Hi, We were getting issue with header button in the navigation not clickable with react-native-windows version 0.68.9. saw that there an open issue which said the issue will be fixed on RNW 0.69.6. Issue link

When I try to run the app with RNW 0.69.6, I am unable to build the app in VS 2019. I get the following error.

Could not write lines to file "build\x64\Debug\Microsoft.ReactNative.Managed.CodeGen\netcoreapp3.1\win-x64\Microsoft.ReactNative.Managed.CodeGen.GeneratedMSBuildEditorConfig.editorconfig". Could not find a part of the path 'C:\Users\user\AppName\WinRebuild\AppName\node_modules\react-native-windows\Microsoft.ReactNative.Managed.CodeGen\build\x64\Debug\Microsoft.ReactNative.Managed.CodeGen\netcoreapp3.1\win-x64\Microsoft.ReactNative.Managed.CodeGen.GeneratedMSBuildEditorConfig.editorconfig'.

Steps To Reproduce

  1. npx react-native init MyApp --template react-native@^0.69.0
  2. cd MyApp
  3. npx react-native-windows-init --overwrite --version 0.69.6 --language cs
  4. npx react-native autolink-windows --sln windows\MyApp.sln.
  5. open the MyApp.sln in VS2019 enterprise and try to build.
  6. We get error mentioned in the description.
  7. To make sure no dev dependencies are missing we ran the below command as well
Set-ExecutionPolicy Unrestricted -Scope Process -Force;
iex (New-Object System.Net.WebClient).DownloadString('https://aka.ms/rnw-deps.ps1')

The output is as follows Checking Free space on C: > 15 GB OK Checking Installed memory >= 16 GB OK Checking Windows version > 10.0.16299.0 OK Checking Developer mode is on OK Checking Long path support is enabled OK Checking git OK Checking Compilers, build tools, SDKs and Visual Studio OK Checking NodeJS LTS OK Checking Chrome OK Checking .net core 3.1 OK

Even though long path is enabled we are unable to build the app.

Expected Results

App builds successfully and we are able to run the app.

CLI version

npx react-native --version

Environment

npx react-native info
Unable to run command
npx react-native info
error: unknown command 'info'
(Did you mean init?)

Target Platform Version

10.0.19041

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2019

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

No response

Manjunatha123 avatar Sep 21 '22 05:09 Manjunatha123