Upgrades NativeModuleSample to .68 (#676)
* upgrade nativemodulesample cppwinrt * upgrades nativemodulesample csharp
This commit is contained in:
Родитель
ad9c3cc651
Коммит
24234c1338
|
@ -11,7 +11,7 @@
|
|||
|
||||
These samples showcase building Native Modules for React Native for Windows. It includes implementations in [C#](./csharp/) and [C++/WinRT](./cppwinrt/).
|
||||
|
||||
Both implementations target React Native Windows 0.67.
|
||||
Both implementations target React Native Windows 0.68.
|
||||
|
||||
The official documentation can be found here:
|
||||
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
"react-native-windows": "^0.63.0-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"metro-config": "^0.66.2",
|
||||
"react": "17.0.2",
|
||||
"react-native": "0.67.2",
|
||||
"react-native-windows": "0.67.0",
|
||||
"metro-config": "^0.66.2"
|
||||
"react-native": "0.68.0",
|
||||
"react-native-windows": "0.68.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,35 @@
|
|||
<!--
|
||||
Application projects contain a file with this name to specify some important settings
|
||||
that will apply globally for the app and *all* native modules the app consumes. These
|
||||
values are set by the app developer.
|
||||
values are set by the app developer. However you can also set them here to test building
|
||||
the library solution without an app.
|
||||
-->
|
||||
|
||||
<PropertyGroup Label="Microsoft.ReactNative Experimental Features">
|
||||
<!--
|
||||
Enables default usage of Hermes.
|
||||
|
||||
See https://microsoft.github.io/react-native-windows/docs/hermes
|
||||
-->
|
||||
<UseHermes>false</UseHermes>
|
||||
|
||||
<!--
|
||||
Changes compilation to assume use of WinUI 3 instead of System XAML.
|
||||
Requires creation of new project.
|
||||
|
||||
See https://microsoft.github.io/react-native-windows/docs/winui3
|
||||
-->
|
||||
<UseWinUI3>false</UseWinUI3>
|
||||
|
||||
<!--
|
||||
Changes compilation to assume use of Microsoft.ReactNative NuGet packages
|
||||
instead of building the framework from source.
|
||||
Requires creation of new project.
|
||||
|
||||
See https://microsoft.github.io/react-native-windows/docs/nuget
|
||||
-->
|
||||
<UseExperimentalNuget>false</UseExperimentalNuget>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29215.179
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NativeModuleSample", "NativeModuleSample\NativeModuleSample.vcxproj", "{52DEC593-EA00-4989-BE3E-6A785731DB77}"
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "NativeModuleSample", "NativeModuleSample\NativeModuleSample.vcxproj", "{2B249C77-08F0-4020-8BAD-D54737E5B021}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{F7D32BD0-2749-483E-9A0D-1635EF7E3136} = {F7D32BD0-2749-483E-9A0D-1635EF7E3136}
|
||||
EndProjectSection
|
||||
|
@ -12,6 +12,11 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Folly", "..\node_modules\re
|
|||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "fmt", "..\node_modules\react-native-windows\fmt\fmt.vcxproj", "{14B93DC8-FD93-4A6D-81CB-8BC96644501C}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactCommon", "..\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj", "{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D} = {A990658C-CE31-4BCC-976F-0FC6B1AF693D}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Chakra", "..\node_modules\react-native-windows\Chakra\Chakra.vcxitems", "{C38970C0-5FBF-4D69-90D8-CBAC225AE895}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Microsoft.ReactNative", "..\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj", "{F7D32BD0-2749-483E-9A0D-1635EF7E3136}"
|
||||
|
@ -28,8 +33,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Mso", "..\node_modules\reac
|
|||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Include", "..\node_modules\react-native-windows\include\Include.vcxitems", "{EF074BA1-2D54-4D49-A28E-5E040B47CD2E}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReactCommon", "..\node_modules\react-native-windows\ReactCommon\ReactCommon.vcxproj", "{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SharedMSBuildProjectFiles) = preSolution
|
||||
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{2049dbe9-8d13-42c9-ae4b-413ae38fffd0}*SharedItemsImports = 9
|
||||
|
@ -43,32 +46,32 @@ Global
|
|||
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|ARM64 = Debug|ARM64
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|ARM64 = Release|ARM64
|
||||
Debug|ARM64 = Debug|ARM64
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Release|ARM64 = Release|ARM64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|x64.Build.0 = Debug|x64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|x64.Deploy.0 = Debug|x64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|x86.Build.0 = Debug|Win32
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Debug|x86.Deploy.0 = Debug|Win32
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|ARM64.Build.0 = Release|ARM64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|ARM64.Deploy.0 = Release|ARM64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|x64.ActiveCfg = Release|x64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|x64.Build.0 = Release|x64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|x64.Deploy.0 = Release|x64
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|x86.ActiveCfg = Release|Win32
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|x86.Build.0 = Release|Win32
|
||||
{52DEC593-EA00-4989-BE3E-6A785731DB77}.Release|x86.Deploy.0 = Release|Win32
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|x64.Build.0 = Debug|x64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|x64.Deploy.0 = Debug|x64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|x86.Build.0 = Debug|Win32
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Debug|x86.Deploy.0 = Debug|Win32
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|ARM64.Build.0 = Release|ARM64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|ARM64.Deploy.0 = Release|ARM64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|x64.ActiveCfg = Release|x64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|x64.Build.0 = Release|x64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|x64.Deploy.0 = Release|x64
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|x86.ActiveCfg = Release|Win32
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|x86.Build.0 = Release|Win32
|
||||
{2B249C77-08F0-4020-8BAD-D54737E5B021}.Release|x86.Deploy.0 = Release|Win32
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|x64.ActiveCfg = Debug|x64
|
||||
|
@ -81,20 +84,18 @@ Global
|
|||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x64.Build.0 = Release|x64
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x86.ActiveCfg = Release|Win32
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Release|x86.Build.0 = Release|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.Build.0 = Debug|x64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Build.0 = Debug|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Deploy.0 = Debug|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.Build.0 = Release|ARM64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.ActiveCfg = Release|x64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.Build.0 = Release|x64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.ActiveCfg = Release|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Build.0 = Release|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Deploy.0 = Release|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x64.Build.0 = Debug|x64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x86.Build.0 = Debug|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|ARM64.Build.0 = Release|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x64.ActiveCfg = Release|x64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x64.Build.0 = Release|x64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x86.ActiveCfg = Release|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x86.Build.0 = Release|Win32
|
||||
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{F7D32BD0-2749-483E-9A0D-1635EF7E3136}.Debug|x64.ActiveCfg = Debug|x64
|
||||
|
@ -119,29 +120,27 @@ Global
|
|||
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x64.Build.0 = Release|x64
|
||||
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x86.ActiveCfg = Release|Win32
|
||||
{FCA38F3C-7C73-4C47-BE4E-32F77FA8538D}.Release|x86.Build.0 = Release|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x64.Build.0 = Debug|x64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x86.Build.0 = Debug|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Debug|x86.Deploy.0 = Debug|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|ARM64.Build.0 = Release|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|ARM64.Deploy.0 = Release|ARM64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x64.ActiveCfg = Release|x64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x64.Build.0 = Release|x64
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x86.ActiveCfg = Release|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x86.Build.0 = Release|Win32
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD}.Release|x86.Deploy.0 = Release|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x64.Build.0 = Debug|x64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Build.0 = Debug|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Debug|x86.Deploy.0 = Debug|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|ARM64.Build.0 = Release|ARM64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.ActiveCfg = Release|x64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x64.Build.0 = Release|x64
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.ActiveCfg = Release|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Build.0 = Release|Win32
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C}.Release|x86.Deploy.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{C38970C0-5FBF-4D69-90D8-CBAC225AE895} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{F7D32BD0-2749-483E-9A0D-1635EF7E3136} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{DA8B35B3-DA00-4B02-BDE6-6A397B3FD46B} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
|
@ -149,7 +148,7 @@ Global
|
|||
{2049DBE9-8D13-42C9-AE4B-413AE38FFFD0} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{84E05BFA-CBAF-4F0D-BFB6-4CE85742A57E} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{EF074BA1-2D54-4D49-A28E-5E040B47CD2E} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{A9D95A91-4DB7-4F72-BEB6-FE8A5C89BFBD} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
{14B93DC8-FD93-4A6D-81CB-8BC96644501C} = {5EA20F54-880A-49F3-99FA-4B3FE54E8AB1}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {D43FAD39-F619-437D-BB40-04A3982ACB6A}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This project was created with react-native-windows 0.68.0 -->
|
||||
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
|
||||
<Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props')" />
|
||||
<PropertyGroup Label="Globals">
|
||||
<CppWinRTOptimized>true</CppWinRTOptimized>
|
||||
<CppWinRTRootNamespaceAutoMerge>true</CppWinRTRootNamespaceAutoMerge>
|
||||
<MinimalCoreWin>true</MinimalCoreWin>
|
||||
<ProjectGuid>{52dec593-ea00-4989-be3e-6a785731db77}</ProjectGuid>
|
||||
<ProjectGuid>{2b249c77-08f0-4020-8bad-d54737e5b021}</ProjectGuid>
|
||||
<ProjectName>NativeModuleSample</ProjectName>
|
||||
<RootNamespace>NativeModuleSample</RootNamespace>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
|
@ -15,6 +15,9 @@
|
|||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="NuGet">
|
||||
<ResolveNuGetPackages>false</ResolveNuGetPackages>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="ReactNativeWindowsProps">
|
||||
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\</ReactNativeWindowsDir>
|
||||
</PropertyGroup>
|
||||
|
@ -74,9 +77,7 @@
|
|||
</ImportGroup>
|
||||
<ImportGroup Label="ReactNativeWindowsPropertySheets">
|
||||
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\external\Microsoft.ReactNative.Uwp.CppLib.props" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" />
|
||||
<Import Project="$(SolutionDir)\packages\$(WinUIPackageProps)" Condition="'$(WinUIPackageProps)'!='' And Exists('$(SolutionDir)\packages\$(WinUIPackageProps)')" />
|
||||
</ImportGroup>
|
||||
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
|
@ -131,9 +132,11 @@
|
|||
<Midl Include="ReactPackageProvider.idl" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
<None Include="PropertySheet.props" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Windows.CppWinRT" Version="2.0.211028.7" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ReactNativeWindowsTargets">
|
||||
<Import Project="$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets" Condition="Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" />
|
||||
|
@ -145,18 +148,4 @@
|
|||
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.props'))" />
|
||||
<Error Condition="!Exists('$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(ReactNativeWindowsDir)\PropertySheets\External\Microsoft.ReactNative.Uwp.CppLib.targets'))" />
|
||||
</Target>
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
<Import Project="$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets" Condition="Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets')" />
|
||||
<Import Project="$(SolutionDir)\packages\ReactNative.Hermes.Windows.0.10.0-ms.1\build\native\ReactNative.Hermes.Windows.targets" Condition="Exists('$(SolutionDir)\packages\ReactNative.Hermes.Windows.0.10.0-ms.1\build\native\ReactNative.Hermes.Windows.targets')" />
|
||||
<Import Project="$(SolutionDir)\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets" Condition="Exists('$(SolutionDir)\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets')" />
|
||||
</ImportGroup>
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.props'))" />
|
||||
<Error Condition="!Exists('$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\Microsoft.Windows.CppWinRT.2.0.210312.4\build\native\Microsoft.Windows.CppWinRT.targets'))" />
|
||||
<Error Condition="!Exists('$(SolutionDir)\packages\ReactNative.Hermes.Windows.0.10.0-ms.1\build\native\ReactNative.Hermes.Windows.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\ReactNative.Hermes.Windows.0.10.0-ms.1\build\native\ReactNative.Hermes.Windows.targets'))" />
|
||||
<Error Condition="!Exists('$(SolutionDir)\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\packages\$(WinUIPackageName).$(WinUIPackageVersion)\build\native\$(WinUIPackageName).targets'))" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
@ -15,6 +15,5 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="PropertySheet.props" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Microsoft.Windows.CppWinRT" version="2.0.210312.4" targetFramework="native" />
|
||||
<package id="ReactNative.Hermes.Windows" version="0.10.0-ms.1" targetFramework="native" />
|
||||
<package id="Microsoft.UI.Xaml" version="2.7.0" targetFramework="native" />
|
||||
</packages>
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -12,9 +12,9 @@
|
|||
"react-native-windows": "^0.63.0-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"metro-config": "^0.66.2",
|
||||
"react": "17.0.2",
|
||||
"react-native": "0.67.1",
|
||||
"react-native-windows": "0.67.0",
|
||||
"metro-config": "^0.66.2"
|
||||
"react-native": "0.68.0",
|
||||
"react-native-windows": "0.68.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,35 @@
|
|||
<!--
|
||||
Application projects contain a file with this name to specify some important settings
|
||||
that will apply globally for the app and *all* native modules the app consumes. These
|
||||
values are set by the app developer.
|
||||
values are set by the app developer. However you can also set them here to test building
|
||||
the library solution without an app.
|
||||
-->
|
||||
|
||||
<PropertyGroup Label="Microsoft.ReactNative Experimental Features">
|
||||
<!--
|
||||
Enables default usage of Hermes.
|
||||
|
||||
See https://microsoft.github.io/react-native-windows/docs/hermes
|
||||
-->
|
||||
<UseHermes>false</UseHermes>
|
||||
|
||||
<!--
|
||||
Changes compilation to assume use of WinUI 3 instead of System XAML.
|
||||
Requires creation of new project.
|
||||
|
||||
See https://microsoft.github.io/react-native-windows/docs/winui3
|
||||
-->
|
||||
<UseWinUI3>false</UseWinUI3>
|
||||
|
||||
<!--
|
||||
Changes compilation to assume use of Microsoft.ReactNative NuGet packages
|
||||
instead of building the framework from source.
|
||||
Requires creation of new project.
|
||||
|
||||
See https://microsoft.github.io/react-native-windows/docs/nuget
|
||||
-->
|
||||
<UseExperimentalNuget>false</UseExperimentalNuget>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29215.179
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NativeModuleSample", "NativeModuleSample\NativeModuleSample.csproj", "{2E90B726-ED7F-46D2-9B70-3929A2E51A05}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NativeModuleSample", "NativeModuleSample\NativeModuleSample.csproj", "{77A32286-34BE-4371-B8C6-8364A6413768}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Folly", "..\node_modules\react-native-windows\Folly\Folly.vcxproj", "{A990658C-CE31-4BCC-976F-0FC6B1AF693D}"
|
||||
EndProject
|
||||
|
@ -47,32 +47,32 @@ Global
|
|||
..\node_modules\react-native-windows\Shared\Shared.vcxitems*{f7d32bd0-2749-483e-9a0d-1635ef7e3136}*SharedItemsImports = 4
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|ARM64 = Debug|ARM64
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|ARM64 = Release|ARM64
|
||||
Debug|ARM64 = Debug|ARM64
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
Release|ARM64 = Release|ARM64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|x64.Build.0 = Debug|x64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|x64.Deploy.0 = Debug|x64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|x86.Build.0 = Debug|x86
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|ARM64.Build.0 = Release|ARM64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|ARM64.Deploy.0 = Release|ARM64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|x64.ActiveCfg = Release|x64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|x64.Build.0 = Release|x64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|x64.Deploy.0 = Release|x64
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|x86.ActiveCfg = Release|x86
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|x86.Build.0 = Release|x86
|
||||
{2E90B726-ED7F-46D2-9B70-3929A2E51A05}.Release|x86.Deploy.0 = Release|x86
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|ARM64.Deploy.0 = Debug|ARM64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|x64.Build.0 = Debug|x64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|x64.Deploy.0 = Debug|x64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|x86.Build.0 = Debug|x86
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|ARM64.ActiveCfg = Release|ARM64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|ARM64.Build.0 = Release|ARM64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|ARM64.Deploy.0 = Release|ARM64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|x64.ActiveCfg = Release|x64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|x64.Build.0 = Release|x64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|x64.Deploy.0 = Release|x64
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|x86.ActiveCfg = Release|x86
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|x86.Build.0 = Release|x86
|
||||
{77A32286-34BE-4371-B8C6-8364A6413768}.Release|x86.Deploy.0 = Release|x86
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.ActiveCfg = Debug|ARM64
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|ARM64.Build.0 = Debug|ARM64
|
||||
{A990658C-CE31-4BCC-976F-0FC6B1AF693D}.Debug|x64.ActiveCfg = Debug|x64
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This project was created with react-native-windows 0.68.0 -->
|
||||
<Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<Import Project="$(SolutionDir)\ExperimentalFeatures.props" Condition="Exists('$(SolutionDir)\ExperimentalFeatures.props')" />
|
||||
|
@ -8,7 +9,7 @@
|
|||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProjectGuid>{2E90B726-ED7F-46D2-9B70-3929A2E51A05}</ProjectGuid>
|
||||
<ProjectGuid>{77A32286-34BE-4371-B8C6-8364A6413768}</ProjectGuid>
|
||||
<OutputType>winmdobj</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>NativeModuleSample</RootNamespace>
|
||||
|
@ -23,6 +24,9 @@
|
|||
<WindowsXamlEnableOverview>true</WindowsXamlEnableOverview>
|
||||
<LangVersion>7.3</LangVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Label="NuGet">
|
||||
<AssetTargetFallback>$(AssetTargetFallback);native</AssetTargetFallback>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
|
@ -94,6 +98,7 @@
|
|||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
|
||||
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
|
@ -106,9 +111,6 @@
|
|||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||
<Version>6.2.9</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="ReactNative.Hermes.Windows">
|
||||
<Version>0.10.0-ms.1</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '16.0' ">
|
||||
<VisualStudioVersion>16.0</VisualStudioVersion>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
using Microsoft.ReactNative;
|
||||
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче