microsoft / microsoft/react-native-windows

Project Microsoft.ReactNative is not compatible with uap10.0.16299 problem

Open
#10,230 7 comments 4 reactions 1 assignee View on GitHub

@JunielKatarn is already working on this.

Since Jul 11, 2022.

Area: Native Modules bug PackageReference Workstream: Module Support
Dominant language
C++
Stars
17.3k
Forks
1.2k
Avg merge
1d 13h
Merged PRs (30d)
33

Description

Problem Description

Hi, I am trying to build a library that has support for react-native-windows.

The problem is that when I build the library trigger an error build, see below

LOGS

PS D:\Projects\react-native-memoizing\example> npx react-native run-windows --logging
 i Verbose: ON
Looking for vswhere at: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
 √ Found compatible MSBuild at C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin (16.11.32228.343)
 Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 2022-07-01 13:49:34.
Project "D:\Projects\react-native-memoizing\example\windows\example.sln" on node 1 (Restore target(s)).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|x64".
D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\PropertySheets\JSEngine.props(4,3): warning MSB4011: "D:\Projects\react-native-memoizing\exa
mple\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "D:\Projects\react-native-memoizing\example\windows\example\example.csproj 
(5,3)". This is most likely a build authoring error. This subsequent import will be ignored.
D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\PropertySheets\JSEngine.props(4,3): warning MSB4011: "D:\Projects\react-native-memoizing\exa
mple\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativ
eMemoizing.csproj (4,3)". This is most likely a build authoring error. This subsequent import will be ignored.
_GetAllRestoreProjectPathItems:
  Determining projects to restore...
Done Building Project "D:\Projects\react-native-memoizing\example\windows\example.sln" (Restore target(s)).


Build succeeded.

  D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\PropertySheets\JSEngine.props(4,3): warning MSB4011: "D:\Projects\react-native-memoizing\e 
xample\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "D:\Projects\react-native-memoizing\example\windows\example\example.cspro 
j (5,3)". This is most likely a build authoring error. This subsequent import will be ignored.


  D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\PropertySheets\JSEngine.props(4,3): warning MSB4011: "D:\Projects\react-native-memoizing\e 
xample\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNat 
iveMemoizing.csproj (4,3)". This is most likely a build authoring error. This subsequent import will be ignored.

    2 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.80
√ Restoring NuGet packages 
- Auto-linking...
Parsing project...
Found Windows app project, config:
{
  folder: 'D:\\Projects\\react-native-memoizing\\example',
  sourceDir: 'windows',
  solutionFile: 'example.sln',
  project: {
    projectFile: 'example\\example.csproj',
    projectName: 'example',
    projectLang: 'cs',
    projectGuid: '{FFCBB027-BF2D-4449-91E0-BA28F39B14F3}'
  },
  experimentalFeatures: {
    UseHermes: 'false',
    UseWinUI3: 'false',
    UseExperimentalNuget: 'false'
  }
}
Parsing dependencies...
react-native-memoizing has Windows implementation, config:
{
  folder: 'D:\\Projects\\react-native-memoizing',
  projects: [
    {
      projectFile: 'ReactNativeMemoizing\\ReactNativeMemoizing.csproj',
      projectName: 'ReactNativeMemoizing',
      projectLang: 'cs',
      projectGuid: '{2AA1B552-9EE0-467E-89C9-105A3E71C340}',
      directDependency: true,
      cppHeaders: [Array],
      cppPackageProviders: [Array],
      csNamespaces: [Array],
      csPackageProviders: [Array]
    }
  ],
  solutionFile: 'ReactNativeMemoizing.sln',
  nugetPackages: [],
  sourceDir: 'windows'
}
Adding react-native-memoizing.
Calculating AutolinkedNativeModules.g.cs...
Reading AutolinkedNativeModules.g.cs...
 \ Auto-linking...No changes to AutolinkedNativeModules.g.cs.
Calculating AutolinkedNativeModules.g.props...
Reading AutolinkedNativeModules.g.props...
No changes to AutolinkedNativeModules.g.props.
Calculating AutolinkedNativeModules.g.targets...
Reading AutolinkedNativeModules.g.targets...
No changes to AutolinkedNativeModules.g.targets.
Calculating example.sln changes...
Processing ReactNativeMemoizing.csproj...
No changes to example.sln.
Processing Microsoft.ReactNative.Managed.csproj...
No changes to example.sln.
Processing Microsoft.ReactNative.Managed.CodeGen.csproj...
No changes to example.sln.
 √ Auto-linking...
Success: No auto-linking changes necessary. (143ms)
 √ Found Solution: D:\Projects\react-native-memoizing\example\windows\example.sln
 i Build configuration: Debug
 i Build platform: x64
Running MSBuild with args /clp:NoSummary;NoItemAndPropertyList;Verbosity=normal /nologo /p:Configuration=Debug /p:Platform=x64 /p:AppxBundle=Never /bl /flp1:errorsonly;logfile=C:\Users\alen\AppData\Local\Temp\msbuild_21440_build.err /flp2:warningsonly;logfile=C:\Users\alen\AppData\Local\Temp\msbuild_21440_build.wrn /restore /p:RestorePackagesConfig=true /p:RunAutolinkCheck=false
 C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe /nologo /bl /clp:NoSummary;NoItemAndPropertyList;Verbosity=normal /flp1:errorsonly;logfile=C:\Users\alen\AppData\Local\Temp\msbuild_21440_build.err /flp2:warningsonly;logfile=C:\Users\alen\AppData\Local\Temp\msbuild_21440_build.wrn /p:Configuration=Debug /p:Platform=x64 /p:AppxBundle=Never /p:RestorePackagesConfig=true /p:RunAutolinkCheck=false /restore D:\Projects\react-native-memoizing\example\windows\example.sln
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build started 2022-07-01 13:49:36.
Project "D:\Projects\react-native-memoizing\example\windows\example.sln" on node 1 (Restore target(s)).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|x64".
D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\PropertySheets\JSEngine.props(4,3): warning MSB4011: "D:\Projects\react-native-memoizing\exa
mple\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "D:\Projects\react-native-memoizing\example\windows\example\example.csproj 
(5,3)". This is most likely a build authoring error. This subsequent import will be ignored.
D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\PropertySheets\JSEngine.props(4,3): warning MSB4011: "D:\Projects\react-native-memoizing\exa
mple\windows\ExperimentalFeatures.props" cannot be imported again. It was already imported at "D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativ
eMemoizing.csproj (4,3)". This is most likely a build authoring error. This subsequent import will be ignored.
_GetAllRestoreProjectPathItems:
  Determining projects to restore...
Restore:
  Committing restore...
  Committing restore...
  Committing restore...
  Committing restore...
  Committing restore...
  Committing restore...
  Assets file has not changed. Skipping assets file writing. Path: D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\obj 
  \project.assets.json
  Assets file has not changed. Skipping assets file writing. Path: D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Folly\obj\project.assets. 
  json
  Assets file has not changed. Skipping assets file writing. Path: D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Man 
  aged\obj\project.assets.json
  Restored D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed\Microsoft.ReactNative.Managed.csproj (in 60 ms).    
  Assets file has not changed. Skipping assets file writing. Path: D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\ReactCommon\obj\project.a 
  ssets.json
  Restoring packages for D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj...
  Assets file has not changed. Skipping assets file writing. Path: D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Man
  aged.CodeGen\obj\project.assets.json
  Assets file has not changed. Skipping assets file writing. Path: D:\Projects\react-native-memoizing\example\windows\example\obj\project.assets.json
  Restored D:\Projects\react-native-memoizing\example\windows\example\example.csproj (in 60 ms).
  Restored D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj (in 60 ms).
  Restored D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Folly\Folly.vcxproj (in 60 ms).
  Restored D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed.CodeGen\Microsoft.ReactNative.Managed.CodeGen.cspro 
  j (in 62 ms).
  Restored D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj (in 60 ms).
D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0.
16299 (UAP,Version=v10.0.16299). Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows\example.sln]
D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0. 
16299 (UAP,Version=v10.0.16299) / win10-arm. Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows\exa 
mple.sln]
D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0. 
16299 (UAP,Version=v10.0.16299) / win10-arm-aot. Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows 
\example.sln]
D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0. 
16299 (UAP,Version=v10.0.16299) / win10-arm64-aot. Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windo 
ws\example.sln]
D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0. 
16299 (UAP,Version=v10.0.16299) / win10-x64. Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows\exa 
mple.sln]
D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0. 
16299 (UAP,Version=v10.0.16299) / win10-x64-aot. Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows 
\example.sln]
D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0. 
16299 (UAP,Version=v10.0.16299) / win10-x86. Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows\exa 
mple.sln]
D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0. 
16299 (UAP,Version=v10.0.16299) / win10-x86-aot. Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows 
\example.sln]
  Committing restore...
  Assets file has not changed. Skipping assets file writing. Path: D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\obj\project.assets.json
  Failed to restore D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj (in 926 ms).
  
  NuGet Config files used:
      C:\Users\alen\AppData\Roaming\NuGet\NuGet.Config
      C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.FallbackLocation.config
      C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config
      C:\Program Files (x86)\NuGet\Config\Xamarin.Offline.config
      D:\Projects\react-native-memoizing\example\windows\NuGet.Config
      D:\Projects\react-native-memoizing\windows\NuGet.Config

  Feeds used:
      https://api.nuget.org/v3/index.json
      C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\
      https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json
  6 of 7 projects are up-to-date for restore.
Done Building Project "D:\Projects\react-native-memoizing\example\windows\example.sln" (Restore target(s)) -- FAILED.

Deferred Messages

  Detailed Build Summary
  ======================


  ============================== Build Hierarchy (IDs represent configurations) =====================================================
  Id                  : Exclusive Time   Total Time   Path (Targets)
  -----------------------------------------------------------------------------------------------------------------------------------
  0                   : 1.483s           2.981s       D:\Projects\react-native-memoizing\example\windows\example.sln (Restore)
  | 13                : 0.000s           0.000s       D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj (_GenerateRestoreProjec 
  tPathWalk)
  | 11                : 0.000s           0.000s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed\Microsof 
  t.ReactNative.Managed.csproj (_GenerateRestoreProjectPathWalk)
  | 27                : 0.000s           0.000s       D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj (_GenerateRestoreGraphP 
  rojectEntry)
  | 26                : 0.000s           0.000s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN 
  ative.vcxproj (_GenerateRestoreGraphProjectEntry)
  | 14                : 0.000s           0.000s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Folly\Folly.vcxproj (_GenerateRestoreP 
  rojectPathWalk)
  | 15                : 0.000s           0.000s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\fmt\fmt.vcxproj (_GenerateRestoreProje 
  ctPathWalk)
  | 16                : 0.000s           0.000s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj (_Gene 
  rateRestoreProjectPathWalk)
  | 17                : 0.000s           0.000s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN 
  ative.vcxproj (_GenerateRestoreProjectPathWalk)
  | 38                : 0.000s           0.000s       D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj (_GenerateProjectRestor 
  eGraph)
  | 18                : 0.000s           0.000s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Common\Common.vcxproj (_GenerateRestor 
  eProjectPathWalk)
  | 37                : 0.000s           0.000s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN 
  ative.vcxproj (_GenerateProjectRestoreGraph)
  | 1                 : 0.192s           0.192s       D:\Projects\react-native-memoizing\example\windows\example\example.csproj (_IsProjectRestoreSupported)
  | 2                 : 0.049s           0.049s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed\Microsof 
  t.ReactNative.Managed.csproj (_IsProjectRestoreSupported)
  | 3                 : 0.235s           0.235s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed.CodeGen\ 
  Microsoft.ReactNative.Managed.CodeGen.csproj (_IsProjectRestoreSupported)
  | 4                 : 0.053s           0.053s       D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj (_IsProjectRestoreSuppo 
  rted) 
  | 5                 : 0.195s           0.195s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Folly\Folly.vcxproj (_IsProjectRestore 
  Supported)
  | 6                 : 0.077s           0.077s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\fmt\fmt.vcxproj (_IsProjectRestoreSupp 
  orted)
  | 7                 : 0.061s           0.061s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj (_IsPr 
  ojectRestoreSupported)
  | 8                 : 0.174s           0.174s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN 
  ative.vcxproj (_IsProjectRestoreSupported)
  | 9                 : 0.074s           0.074s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Common\Common.vcxproj (_IsProjectResto 
  reSupported)
  | 10                : 0.009s           0.027s       D:\Projects\react-native-memoizing\example\windows\example\example.csproj (_GenerateRestoreProjectPathWalk)
  | | 17              : 0.005s           0.014s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN 
  ative.vcxproj (_GenerateRestoreProjectPathWalk)
  | | | 18            : 0.001s           0.001s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Common\Common.vcxproj (_GenerateRestor 
  eProjectPathWalk)
  | | | 14            : 0.005s           0.006s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Folly\Folly.vcxproj (_GenerateRestoreP 
  rojectPathWalk)
  | | | . 15          : 0.001s           0.001s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\fmt\fmt.vcxproj (_GenerateRestoreProje 
  ctPathWalk)
  | | . 16            : 0.002s           0.002s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj (_Gene 
  rateRestoreProjectPathWalk)
  | | 11              : 0.002s           0.002s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed\Microsof 
  t.ReactNative.Managed.csproj (_GenerateRestoreProjectPathWalk)
  | . 13              : 0.003s           0.003s       D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj (_GenerateRestoreProjec 
  tPathWalk)
  | 12                : 0.001s           0.001s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed.CodeGen\ 
  Microsoft.ReactNative.Managed.CodeGen.csproj (_GenerateRestoreProjectPathWalk)
  | 19                : 0.092s           0.092s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN 
  ative.vcxproj (_GenerateRestoreGraphProjectEntry)
  | 20                : 0.007s           0.007s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed\Microsof 
  t.ReactNative.Managed.csproj (_GenerateRestoreGraphProjectEntry)
  | 21                : 0.007s           0.007s       D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj (_GenerateRestoreGraphP 
  rojectEntry)
  | 22                : 0.001s           0.001s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Common\Common.vcxproj (_GenerateRestor 
  eGraphProjectEntry)
  | 23                : 0.006s           0.006s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Folly\Folly.vcxproj (_GenerateRestoreG 
  raphProjectEntry)
  | 24                : 0.009s           0.009s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj (_Gene 
  rateRestoreGraphProjectEntry)
  | 25                : 0.001s           0.001s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\fmt\fmt.vcxproj (_GenerateRestoreGraph 
  ProjectEntry)
  | 28                : 0.020s           0.020s       D:\Projects\react-native-memoizing\example\windows\example\example.csproj (_GenerateRestoreGraphProjectEntry)       
  | 29                : 0.181s           0.181s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed.CodeGen\ 
  Microsoft.ReactNative.Managed.CodeGen.csproj (_GenerateRestoreGraphProjectEntry)
  | 30                : 0.017s           0.017s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactN 
  ative.vcxproj (_GenerateProjectRestoreGraph)
  | 31                : 0.003s           0.003s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed\Microsof 
  t.ReactNative.Managed.csproj (_GenerateProjectRestoreGraph)
  | 32                : 0.003s           0.003s       D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj (_GenerateProjectRestor 
  eGraph)
  | 33                : 0.001s           0.001s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Common\Common.vcxproj (_GenerateProjec 
  tRestoreGraph)
  | 34                : 0.003s           0.003s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Folly\Folly.vcxproj (_GenerateProjectR 
  estoreGraph)
  | 35                : 0.002s           0.002s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj (_Gene 
  rateProjectRestoreGraph)
  | 36                : 0.002s           0.002s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\fmt\fmt.vcxproj (_GenerateProjectResto 
  reGraph)
  | 39                : 0.003s           0.003s       D:\Projects\react-native-memoizing\example\windows\example\example.csproj (_GenerateProjectRestoreGraph)
  . 40                : 0.004s           0.004s       D:\Projects\react-native-memoizing\example\node_modules\react-native-windows\Microsoft.ReactNative.Managed.CodeGen\ 
  Microsoft.ReactNative.Managed.CodeGen.csproj (_GenerateProjectRestoreGraph)

  ============================== Node Utilization (IDs represent configurations) ====================================================
  Timestamp:            1        Duration   Cumulative
  -----------------------------------------------------------------------------------------------------------------------------------
  637922729771120589:   0        0,160s     0,160s ...
  637922729772716291:   1        0,192s     0,352s ...
  637922729774637258:   2        0,049s     0,401s
  637922729775127097:   3        0,235s     0,636s ....
  637922729777481756:   4        0,053s     0,689s .
  637922729778009874:   5        0,195s     0,883s ...
  637922729779954990:   6        0,077s     0,960s .
  637922729780724735:   7        0,060s     1,020s .
  637922729781323849:   8        0,175s     1,195s ...
  637922729783069492:   9        0,074s     1,269s .
  637922729783809255:   0        0,014s     1,283s
  637922729783953033:   10       0,008s     1,291s
  637922729784030377:   17       0,002s     1,292s
  637922729784045434:   18       0,001s     1,293s
  637922729784055430:   14       0,002s     1,295s
  637922729784075436:   15       0,001s     1,296s
  637922729784085418:   14       0,003s     1,299s
  637922729784115413:   16       0,002s     1,301s
  637922729784135437:   17       0,003s     1,304s
  637922729784165416:   11       0,002s     1,306s
  637922729784185398:   13       0,003s     1,309s
  637922729784215371:   10       0,001s     1,310s 
  637922729784225378:   12       0,001s     1,311s
  637922729784235374:   0        0,011s     1,322s
  637922729784345343:   19       0,092s     1,414s .
  637922729785265019:   20       0,007s     1,421s
  637922729785334995:   21       0,007s     1,428s
  637922729785404990:   22       0,001s     1,429s
  637922729785414976:   23       0,006s     1,435s
  637922729785474973:   24       0,009s     1,444s
  637922729785564938:   25       0,001s     1,445s
  637922729785574937:   28       0,020s     1,465s
  637922729785770012:   29       0,180s     1,644s ...
  637922729787565224:   0        0,002s     1,646s
  637922729787585220:   30       0,017s     1,663s
  637922729787755143:   31       0,003s     1,666s
  637922729787785132:   32       0,003s     1,669s
  637922729787815122:   33       0,001s     1,670s
  637922729787825125:   34       0,003s     1,673s
  637922729787855109:   35       0,002s     1,675s
  637922729787875106:   36       0,002s     1,677s
  637922729787895101:   39       0,003s     1,680s
  637922729787925085:   40       0,004s     1,684s
  637922729787965072:   0        1,297s     2,981s .........................
  -----------------------------------------------------------------------------------------------------------------------------------
  Utilization:          100,0    Average Utilization: 100,0
× Building Solution
 × Build failed with message D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is 
not compatible with uap10.0.16299 (UAP,Version=v10.0.16299). Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows\example.sln]. Check your build configuration.
 i Gathering MSBuild data for telemetry.
 i Loading properties from msbuildproperties.g.json
Command failed with error MSBuildError: D:\Projects\react-native-memoizing\windows\ReactNativeMemoizing\ReactNativeMemoizing.csproj : error NU1201: Project Microsoft.ReactNative is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299). Project Microsoft.ReactNative supports: native (native,Version=v0.0) [D:\Projects\react-native-memoizing\example\windows\example.sln]
Your telemetry sessionId was c8de1d1094a2e38be56dfb8bed8d3e41
Steps To Reproduce
  1. create a library using create-react-native-library
  2. create an exmaple react-native project and add windows using npx react-native-windows-init --language cs --overwrite
  3. Build the example project using npx react-native run-windows

Here is my Library Package.JSON.

{
  "name": "react-native-memoizing",
  "version": "1.0.0",
  "description": "The idea of this library is to make sure your data gets memorized and reused, instead of make a long calls to your server each times. This Help speed up the data retrivnings operations. The cash mekanism is totally configrurable, so you could specify how long the data should be cashed untill it refreshed.",
  "main": "index.ts",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "windows": "react-native run-windows"
  },
  "keywords": [
    "react-native"
  ],
  "author": "",
  "license": "",
  "dependencies": {
    "@types/react-native-sqlite-storage": "^5.0.2",
    "react": "17.0.2",
    "react-native": "^0.0.0-0 || 0.60 - 0.69 || 1000.0.0",
    "react-native-windows": "*"
  },
  "peerDependencies": {
    "@react-native-async-storage/async-storage": "*",
    "crypto-js": "*",
    "js-base64": "*",
    "react-native": "^0.0.0-0 || 0.60 - 0.69 || 1000.0.0",
    "react-native-sqlite-2": "^3.5.2",
    "react-native-windows": "*"
  },
  "devDependencies": {
    "@types/crypto-js": "^4.1.1",
    "@types/react": "^18.0.14",
    "metro-config": "^0.70.3",
    "react-native-windows": "0.67.0",
    "typescript": "^4.3.5"
  }
}

here my exmaple Project package.json

{
  "name": "example",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint .",
    "windows": "react-native run-windows"
  },
  "dependencies": {
    "react": "18.0.0",
    "react-native": "0.69.1",
    "react-native-memoizing": "file:..",
    "react-native-windows": "0.69.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/plugin-proposal-decorators": "^7.18.6",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "@types/react-native": "^0.69.1",
    "babel-jest": "^26.6.3",
    "eslint": "^7.32.0",
    "jest": "^26.6.3",
    "metro-config": "^0.70.3",
    "metro-react-native-babel-preset": "^0.70.3",
    "react-test-renderer": "18.0.0",
    "typescript": "^4.7.4"
  },
  "jest": {
    "preset": "react-native"
  }
}


Expected Results

should be build and run without any issue

CLI version

8.0.2

Environment
System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
    Memory: 4.71 GB / 11.92 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.10.0 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK:
      AllowDevelopmentWithoutDevLicense: Enabled
      AllowAllTrustedApps: Enabled
      Versions: 10.0.17763.0, 10.0.18362.0, 10.0.19041.0
  IDEs:
    Android Studio: Version     2021.1.0.0 AI-211.7628.21.2111.8193401
    Visual Studio: 16.11.32228.343 (Visual Studio Enterprise 2019)
  Languages:
    Java: 18.0.1.1 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.0.0 => 18.0.0
    react-native: 0.69.1 => 0.69.1
    react-native-windows: 0.69.0 => 0.69.0
  npmGlobalPackages:
    *react-native*: Not Found
Target Platform Version

10.0.16299

Target Device(s)

Desktop

Visual Studio Version

No response

Build Configuration

Debug

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

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.