Fix windows version

This commit is contained in:
Mathieu Acthernoene 2017-03-30 01:58:57 +02:00
parent 524456d7ba
commit 96e470bbaf
8 changed files with 174 additions and 71 deletions

View File

@ -1,51 +1,69 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RNI18n", "RNI18n\RNI18n.csproj", "{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RNI18n", "RNI18n\RNI18n.csproj", "{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}"
EndProject
Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
..\..\node_modules\react-native-windows\ReactWindows\ReactNative.Shared\ReactNative.Shared.projitems*{c7673ad5-e3aa-468c-a5fd-fa38154e205c}*SharedItemsImports = 4
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Development|Any CPU = Development|Any CPU
Development|ARM = Development|ARM
Development|x64 = Development|x64
Development|x86 = Development|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Debug|ARM.ActiveCfg = Debug|ARM
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Debug|ARM.Build.0 = Debug|ARM
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Debug|x64.ActiveCfg = Debug|x64
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Debug|x64.Build.0 = Debug|x64
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Debug|x86.ActiveCfg = Debug|x86
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Debug|x86.Build.0 = Debug|x86
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Release|Any CPU.Build.0 = Release|Any CPU
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Release|ARM.ActiveCfg = Release|ARM
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Release|ARM.Build.0 = Release|ARM
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Release|x64.ActiveCfg = Release|x64
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Release|x64.Build.0 = Release|x64
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Release|x86.ActiveCfg = Release|x86
{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}.Release|x86.Build.0 = Release|x86
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.ActiveCfg = Debug|x86
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Debug|ARM.ActiveCfg = Debug|ARM
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Debug|ARM.Build.0 = Debug|ARM
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Debug|x64.ActiveCfg = Debug|x64
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Debug|x64.Build.0 = Debug|x64
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Debug|x86.ActiveCfg = Debug|x86
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Debug|x86.Build.0 = Debug|x86
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Development|Any CPU.ActiveCfg = Development|Any CPU
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Development|Any CPU.Build.0 = Development|Any CPU
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Development|ARM.ActiveCfg = Development|ARM
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Development|ARM.Build.0 = Development|ARM
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Development|x64.ActiveCfg = Development|x64
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Development|x64.Build.0 = Development|x64
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Development|x86.ActiveCfg = Development|x86
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Development|x86.Build.0 = Development|x86
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Release|Any CPU.Build.0 = Release|Any CPU
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Release|ARM.ActiveCfg = Release|ARM
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Release|ARM.Build.0 = Release|ARM
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Release|x64.ActiveCfg = Release|x64
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Release|x64.Build.0 = Release|x64
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Release|x86.ActiveCfg = Release|x86
{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}.Release|x86.Build.0 = Release|x86
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.ActiveCfg = Debug|ARM
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.Build.0 = Debug|ARM
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.ActiveCfg = Debug|x64
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.Build.0 = Debug|x64
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.ActiveCfg = Debug|x86
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.Build.0 = Debug|x86
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.ActiveCfg = Release|x86
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.ActiveCfg = Debug|Any CPU
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.Build.0 = Debug|Any CPU
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.ActiveCfg = Debug|ARM
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.Build.0 = Debug|ARM
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.ActiveCfg = Debug|x64
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.Build.0 = Debug|x64
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.ActiveCfg = Debug|x86
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.Build.0 = Debug|x86
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.Build.0 = Release|Any CPU
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.ActiveCfg = Release|ARM
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.Build.0 = Release|ARM
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.ActiveCfg = Release|x64

View File

@ -1,4 +1,4 @@
using System.Reflection;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

View File

@ -1,21 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{FE1EB2E5-A4F7-4DBD-A3AA-502AE5F11CFE}</ProjectGuid>
<ProjectGuid>{82D8FB90-14D4-11E7-9EBB-3B494F4CAAAD}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RNI18n</RootNamespace>
<AssemblyName>RNI18n</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10586.0</TargetPlatformMinVersion>
<TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ReactWindowsRoot>..\..\node_modules</ReactWindowsRoot>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' != 'Development'">
<ReactWindowsRoot>..\..</ReactWindowsRoot>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -107,12 +111,13 @@
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<Compile Include="ReactNatievI18n.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RNI18nModule.cs" />
<Compile Include="RNI18nPackage.cs" />
<EmbeddedResource Include="Properties\RNI18n.rd.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj">
<ProjectReference Include="$(ReactWindowsRoot)\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj">
<Project>{c7673ad5-e3aa-468c-a5fd-fa38154e205c}</Project>
<Name>ReactNative</Name>
</ProjectReference>
@ -120,6 +125,53 @@
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Development\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoStdLib>true</NoStdLib>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Development\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Development\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Development\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
<NoWarn>;2008</NoWarn>
<NoStdLib>true</NoStdLib>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -0,0 +1,33 @@
using ReactNative.Bridge;
using ReactNative.Collections;
using System;
using System.Collections.Generic;
using System.Globalization;
namespace Com.AlexanderZaytsev.RNI18n
{
class RNI18nModule : ReactContextNativeModuleBase
{
public RNI18nModule(ReactContext reactContext) : base(reactContext)
{
}
public override string Name
{
get
{
return "RNI18n";
}
}
public override IReadOnlyDictionary<string, object> Constants
{
get
{
Dictionary<string, object> constants = new Dictionary<string, object>();
constants["locale"] = System.Globalization.CultureInfo.CurrentCulture.Name;
return constants;
}
}
}
}

View File

@ -0,0 +1,29 @@
using ReactNative.Bridge;
using ReactNative.Modules.Core;
using ReactNative.UIManager;
using System;
using System.Collections.Generic;
namespace Com.AlexanderZaytsev.RNI18n
{
public class RNI18nPackage : IReactPackage
{
public IReadOnlyList<INativeModule> CreateNativeModules(ReactContext reactContext)
{
return new List<INativeModule>
{
new RNI18nModule(reactContext),
};
}
public IReadOnlyList<Type> CreateJavaScriptModulesConfig()
{
return new List<Type>(0);
}
public IReadOnlyList<IViewManager> CreateViewManagers(ReactContext reactContext)
{
return new List<IViewManager>(0);
}
}
}

View File

@ -1,29 +0,0 @@
using ReactNative.Bridge;
using ReactNative.Collections;
using System;
using System.Collections.Generic;
using System.Globalization;
namespace ReactNative.Modules.RNI18n
{
public class ReactNativeI18n : NativeModuleBase
{
public override string Name
{
get
{
return "RNI18n";
}
}
public override IReadOnlyDictionary<String, Object> Constants
{
get
{
Dictionary<String, Object> constants = new Dictionary<string, object>();
constants.Add("locale", System.Globalization.CultureInfo.CurrentCulture.Name);
return constants;
}
}
}
}

View File

@ -1,6 +1,6 @@
{
{
"dependencies": {
"Microsoft.NETCore.UniversalWindowsPlatform": "5.1.0"
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0"
},
"frameworks": {
"uap10.0": {}