Quellcode durchsuchen

Initial windows project setup

Ryan Linton vor 7 Jahren
Ursprung
Commit
4f7b2303b1

+ 281
- 0
windows/.gitignore Datei anzeigen

@@ -0,0 +1,281 @@
1
+## Ignore Visual Studio temporary files, build results, and
2
+## files generated by popular Visual Studio add-ons.
3
+##
4
+## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5
+
6
+# User-specific files
7
+*.suo
8
+*.user
9
+*.userosscache
10
+*.sln.docstates
11
+
12
+# User-specific files (MonoDevelop/Xamarin Studio)
13
+*.userprefs
14
+
15
+# Build results
16
+[Dd]ebug/
17
+[Dd]ebugPublic/
18
+[Rr]elease/
19
+[Rr]eleases/
20
+x64/
21
+x86/
22
+bld/
23
+[Bb]in/
24
+[Oo]bj/
25
+[Ll]og/
26
+
27
+# Visual Studio 2015 cache/options directory
28
+.vs/
29
+# Uncomment if you have tasks that create the project's static files in wwwroot
30
+#wwwroot/
31
+
32
+# MSTest test Results
33
+[Tt]est[Rr]esult*/
34
+[Bb]uild[Ll]og.*
35
+
36
+# NUNIT
37
+*.VisualState.xml
38
+TestResult.xml
39
+
40
+# Build Results of an ATL Project
41
+[Dd]ebugPS/
42
+[Rr]eleasePS/
43
+dlldata.c
44
+
45
+# .NET Core
46
+project.lock.json
47
+project.fragment.lock.json
48
+artifacts/
49
+**/Properties/launchSettings.json
50
+
51
+*_i.c
52
+*_p.c
53
+*_i.h
54
+*.ilk
55
+*.meta
56
+*.obj
57
+*.pch
58
+*.pdb
59
+*.pgc
60
+*.pgd
61
+*.rsp
62
+*.sbr
63
+*.tlb
64
+*.tli
65
+*.tlh
66
+*.tmp
67
+*.tmp_proj
68
+*.log
69
+*.vspscc
70
+*.vssscc
71
+.builds
72
+*.pidb
73
+*.svclog
74
+*.scc
75
+
76
+# Chutzpah Test files
77
+_Chutzpah*
78
+
79
+# Visual C++ cache files
80
+ipch/
81
+*.aps
82
+*.ncb
83
+*.opendb
84
+*.opensdf
85
+*.sdf
86
+*.cachefile
87
+*.VC.db
88
+*.VC.VC.opendb
89
+
90
+# Visual Studio profiler
91
+*.psess
92
+*.vsp
93
+*.vspx
94
+*.sap
95
+
96
+# TFS 2012 Local Workspace
97
+$tf/
98
+
99
+# Guidance Automation Toolkit
100
+*.gpState
101
+
102
+# ReSharper is a .NET coding add-in
103
+_ReSharper*/
104
+*.[Rr]e[Ss]harper
105
+*.DotSettings.user
106
+
107
+# JustCode is a .NET coding add-in
108
+.JustCode
109
+
110
+# TeamCity is a build add-in
111
+_TeamCity*
112
+
113
+# DotCover is a Code Coverage Tool
114
+*.dotCover
115
+
116
+# Visual Studio code coverage results
117
+*.coverage
118
+*.coveragexml
119
+
120
+# NCrunch
121
+_NCrunch_*
122
+.*crunch*.local.xml
123
+nCrunchTemp_*
124
+
125
+# MightyMoose
126
+*.mm.*
127
+AutoTest.Net/
128
+
129
+# Web workbench (sass)
130
+.sass-cache/
131
+
132
+# Installshield output folder
133
+[Ee]xpress/
134
+
135
+# DocProject is a documentation generator add-in
136
+DocProject/buildhelp/
137
+DocProject/Help/*.HxT
138
+DocProject/Help/*.HxC
139
+DocProject/Help/*.hhc
140
+DocProject/Help/*.hhk
141
+DocProject/Help/*.hhp
142
+DocProject/Help/Html2
143
+DocProject/Help/html
144
+
145
+# Click-Once directory
146
+publish/
147
+
148
+# Publish Web Output
149
+*.[Pp]ublish.xml
150
+*.azurePubxml
151
+# TODO: Comment the next line if you want to checkin your web deploy settings
152
+# but database connection strings (with potential passwords) will be unencrypted
153
+*.pubxml
154
+*.publishproj
155
+
156
+# Microsoft Azure Web App publish settings. Comment the next line if you want to
157
+# checkin your Azure Web App publish settings, but sensitive information contained
158
+# in these scripts will be unencrypted
159
+PublishScripts/
160
+
161
+# NuGet Packages
162
+*.nupkg
163
+# The packages folder can be ignored because of Package Restore
164
+**/packages/*
165
+# except build/, which is used as an MSBuild target.
166
+!**/packages/build/
167
+# Uncomment if necessary however generally it will be regenerated when needed
168
+#!**/packages/repositories.config
169
+# NuGet v3's project.json files produces more ignorable files
170
+*.nuget.props
171
+*.nuget.targets
172
+
173
+# Microsoft Azure Build Output
174
+csx/
175
+*.build.csdef
176
+
177
+# Microsoft Azure Emulator
178
+ecf/
179
+rcf/
180
+
181
+# Windows Store app package directories and files
182
+AppPackages/
183
+BundleArtifacts/
184
+Package.StoreAssociation.xml
185
+_pkginfo.txt
186
+
187
+# Visual Studio cache files
188
+# files ending in .cache can be ignored
189
+*.[Cc]ache
190
+# but keep track of directories ending in .cache
191
+!*.[Cc]ache/
192
+
193
+# Others
194
+ClientBin/
195
+~$*
196
+*~
197
+*.dbmdl
198
+*.dbproj.schemaview
199
+*.jfm
200
+*.pfx
201
+*.publishsettings
202
+orleans.codegen.cs
203
+
204
+# Since there are multiple workflows, uncomment next line to ignore bower_components
205
+# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
206
+#bower_components/
207
+
208
+# RIA/Silverlight projects
209
+Generated_Code/
210
+
211
+# Backup & report files from converting an old project file
212
+# to a newer Visual Studio version. Backup files are not needed,
213
+# because we have git ;-)
214
+_UpgradeReport_Files/
215
+Backup*/
216
+UpgradeLog*.XML
217
+UpgradeLog*.htm
218
+
219
+# SQL Server files
220
+*.mdf
221
+*.ldf
222
+
223
+# Business Intelligence projects
224
+*.rdl.data
225
+*.bim.layout
226
+*.bim_*.settings
227
+
228
+# Microsoft Fakes
229
+FakesAssemblies/
230
+
231
+# GhostDoc plugin setting file
232
+*.GhostDoc.xml
233
+
234
+# Node.js Tools for Visual Studio
235
+.ntvs_analysis.dat
236
+node_modules/
237
+
238
+# Typescript v1 declaration files
239
+typings/
240
+
241
+# Visual Studio 6 build log
242
+*.plg
243
+
244
+# Visual Studio 6 workspace options file
245
+*.opt
246
+
247
+# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
248
+*.vbw
249
+
250
+# Visual Studio LightSwitch build output
251
+**/*.HTMLClient/GeneratedArtifacts
252
+**/*.DesktopClient/GeneratedArtifacts
253
+**/*.DesktopClient/ModelManifest.xml
254
+**/*.Server/GeneratedArtifacts
255
+**/*.Server/ModelManifest.xml
256
+_Pvt_Extensions
257
+
258
+# Paket dependency manager
259
+.paket/paket.exe
260
+paket-files/
261
+
262
+# FAKE - F# Make
263
+.fake/
264
+
265
+# JetBrains Rider
266
+.idea/
267
+*.sln.iml
268
+
269
+# CodeRush
270
+.cr/
271
+
272
+# Python Tools for Visual Studio (PTVS)
273
+__pycache__/
274
+*.pyc
275
+
276
+# Cake - Uncomment if you are using it
277
+# tools/**
278
+# !tools/packages.config
279
+
280
+# Telerik's JustMock configuration file
281
+*.jmconfig

+ 102
- 0
windows/RNViewShot.sln Datei anzeigen

@@ -0,0 +1,102 @@
1
+Microsoft Visual Studio Solution File, Format Version 12.00
2
+# Visual Studio 14
3
+VisualStudioVersion = 14.0.25420.1
4
+MinimumVisualStudioVersion = 10.0.40219.1
5
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RNViewShot", "RNViewShot\RNViewShot.csproj", "{391A35D0-FEBA-11E6-9171-BD5177E581B7}"
6
+EndProject
7
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}"
8
+EndProject
9
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ChakraBridge", "..\node_modules\react-native-windows\ReactWindows\ChakraBridge\ChakraBridge.vcxproj", "{4B72C796-16D5-4E3A-81C0-3E36F531E578}"
10
+EndProject
11
+Global
12
+	GlobalSection(SharedMSBuildProjectFiles) = preSolution
13
+		..\node_modules\react-native-windows\ReactWindows\ReactNative.Shared\ReactNative.Shared.projitems*{c7673ad5-e3aa-468c-a5fd-fa38154e205c}*SharedItemsImports = 4
14
+	EndGlobalSection
15
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
16
+		Debug|Any CPU = Debug|Any CPU
17
+		Debug|ARM = Debug|ARM
18
+		Debug|x64 = Debug|x64
19
+		Debug|x86 = Debug|x86
20
+		Development|Any CPU = Development|Any CPU
21
+		Development|ARM = Development|ARM
22
+		Development|x64 = Development|x64
23
+		Development|x86 = Development|x86
24
+		Release|Any CPU = Release|Any CPU
25
+		Release|ARM = Release|ARM
26
+		Release|x64 = Release|x64
27
+		Release|x86 = Release|x86
28
+	EndGlobalSection
29
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
30
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
31
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Debug|Any CPU.Build.0 = Debug|Any CPU
32
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Debug|ARM.ActiveCfg = Debug|ARM
33
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Debug|ARM.Build.0 = Debug|ARM
34
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Debug|x64.ActiveCfg = Debug|x64
35
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Debug|x64.Build.0 = Debug|x64
36
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Debug|x86.ActiveCfg = Debug|x86
37
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Debug|x86.Build.0 = Debug|x86
38
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Development|Any CPU.ActiveCfg = Development|Any CPU
39
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Development|Any CPU.Build.0 = Development|Any CPU
40
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Development|ARM.ActiveCfg = Development|ARM
41
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Development|ARM.Build.0 = Development|ARM
42
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Development|x64.ActiveCfg = Development|x64
43
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Development|x64.Build.0 = Development|x64
44
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Development|x86.ActiveCfg = Development|x86
45
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Development|x86.Build.0 = Development|x86
46
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Release|Any CPU.ActiveCfg = Release|Any CPU
47
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Release|Any CPU.Build.0 = Release|Any CPU
48
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Release|ARM.ActiveCfg = Release|ARM
49
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Release|ARM.Build.0 = Release|ARM
50
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Release|x64.ActiveCfg = Release|x64
51
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Release|x64.Build.0 = Release|x64
52
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Release|x86.ActiveCfg = Release|x86
53
+		{391A35D0-FEBA-11E6-9171-BD5177E581B7}.Release|x86.Build.0 = Release|x86
54
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|Any CPU.ActiveCfg = Debug|x86
55
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.ActiveCfg = Debug|ARM
56
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.Build.0 = Debug|ARM
57
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.ActiveCfg = Debug|x64
58
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.Build.0 = Debug|x64
59
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.ActiveCfg = Debug|x86
60
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.Build.0 = Debug|x86
61
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.ActiveCfg = Release|x86
62
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|Any CPU.Build.0 = Release|x86
63
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.ActiveCfg = Debug|ARM
64
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|ARM.Build.0 = Debug|ARM
65
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.ActiveCfg = Debug|x64
66
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x64.Build.0 = Debug|x64
67
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.ActiveCfg = Debug|x86
68
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Development|x86.Build.0 = Debug|x86
69
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|Any CPU.ActiveCfg = Release|x86
70
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.ActiveCfg = Release|ARM
71
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.Build.0 = Release|ARM
72
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.ActiveCfg = Release|x64
73
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.Build.0 = Release|x64
74
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.ActiveCfg = Release|x86
75
+		{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.Build.0 = Release|x86
76
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|Any CPU.ActiveCfg = Debug|Win32
77
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|ARM.ActiveCfg = Debug|ARM
78
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|ARM.Build.0 = Debug|ARM
79
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x64.ActiveCfg = Debug|x64
80
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x64.Build.0 = Debug|x64
81
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x86.ActiveCfg = Debug|Win32
82
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x86.Build.0 = Debug|Win32
83
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|Any CPU.ActiveCfg = Release|x64
84
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|Any CPU.Build.0 = Release|x64
85
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|ARM.ActiveCfg = Debug|ARM
86
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|ARM.Build.0 = Debug|ARM
87
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|x64.ActiveCfg = Debug|x64
88
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|x64.Build.0 = Debug|x64
89
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|x86.ActiveCfg = Debug|Win32
90
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Development|x86.Build.0 = Debug|Win32
91
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|Any CPU.ActiveCfg = Release|Win32
92
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|ARM.ActiveCfg = Release|ARM
93
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|ARM.Build.0 = Release|ARM
94
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x64.ActiveCfg = Release|x64
95
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x64.Build.0 = Release|x64
96
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x86.ActiveCfg = Release|Win32
97
+		{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x86.Build.0 = Release|Win32
98
+	EndGlobalSection
99
+	GlobalSection(SolutionProperties) = preSolution
100
+		HideSolutionNode = FALSE
101
+	EndGlobalSection
102
+EndGlobal

+ 30
- 0
windows/RNViewShot/Properties/AssemblyInfo.cs Datei anzeigen

@@ -0,0 +1,30 @@
1
+using System.Reflection;
2
+using System.Runtime.CompilerServices;
3
+using System.Runtime.InteropServices;
4
+
5
+// General Information about an assembly is controlled through the following
6
+// set of attributes. Change these attribute values to modify the information
7
+// associated with an assembly.
8
+[assembly: AssemblyTitle("RNViewShot")]
9
+[assembly: AssemblyDescription("")]
10
+[assembly: AssemblyConfiguration("")]
11
+[assembly: AssemblyCompany("")]
12
+[assembly: AssemblyProduct("RNViewShot")]
13
+[assembly: AssemblyCopyright("Copyright ©  2016")]
14
+[assembly: AssemblyTrademark("")]
15
+[assembly: AssemblyCulture("")]
16
+
17
+// Version information for an assembly consists of the following four values:
18
+//
19
+//      Major Version
20
+//      Minor Version
21
+//      Build Number
22
+//      Revision
23
+//
24
+// You can specify all the values or you can default the Build and Revision Numbers
25
+// by using the '*' as shown below:
26
+// [assembly: AssemblyVersion("1.0.*")]
27
+[assembly: AssemblyVersion("1.0.0.0")]
28
+[assembly: AssemblyFileVersion("1.0.0.0")]
29
+[assembly: ComVisible(false)]
30
+  

+ 28
- 0
windows/RNViewShot/Properties/RNViewShot.rd.xml Datei anzeigen

@@ -0,0 +1,28 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<!--
3
+    This file contains Runtime Directives, specifications about types your application accesses
4
+    through reflection and other dynamic code patterns. Runtime Directives are used to control the
5
+    .NET Native optimizer and ensure that it does not remove code accessed by your library. If your
6
+    library does not do any reflection, then you generally do not need to edit this file. However,
7
+    if your library reflects over types, especially types passed to it or derived from its types,
8
+    then you should write Runtime Directives.
9
+    The most common use of reflection in libraries is to discover information about types passed
10
+    to the library. Runtime Directives have three ways to express requirements on types passed to
11
+    your library.
12
+    1.  Parameter, GenericParameter, TypeParameter, TypeEnumerableParameter
13
+        Use these directives to reflect over types passed as a parameter.
14
+    2.  SubTypes
15
+        Use a SubTypes directive to reflect over types derived from another type.
16
+    3.  AttributeImplies
17
+        Use an AttributeImplies directive to indicate that your library needs to reflect over
18
+        types or methods decorated with an attribute.
19
+    For more information on writing Runtime Directives for libraries, please visit
20
+    http://go.microsoft.com/fwlink/?LinkID=391919
21
+-->
22
+<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
23
+  <Library Name="RNViewShot">
24
+
25
+  	<!-- add directives for your library here -->
26
+
27
+  </Library>
28
+</Directives>

+ 183
- 0
windows/RNViewShot/RNViewShot.csproj Datei anzeigen

@@ -0,0 +1,183 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
+  <PropertyGroup>
5
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
+    <ProjectGuid>{391A35D0-FEBA-11E6-9171-BD5177E581B7}</ProjectGuid>
8
+    <OutputType>Library</OutputType>
9
+    <AppDesignerFolder>Properties</AppDesignerFolder>
10
+    <RootNamespace>RNViewShot</RootNamespace>
11
+    <AssemblyName>RNViewShot</AssemblyName>
12
+    <DefaultLanguage>en-US</DefaultLanguage>
13
+    <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
14
+    <TargetPlatformVersion>10.0.10586.0</TargetPlatformVersion>
15
+    <TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
16
+    <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
17
+    <FileAlignment>512</FileAlignment>
18
+    <ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
19
+    <ReactWindowsRoot>..\..\node_modules</ReactWindowsRoot>
20
+  </PropertyGroup>
21
+  <PropertyGroup Condition=" '$(Configuration)' != 'Development'">
22
+    <ReactWindowsRoot>..\..</ReactWindowsRoot>
23
+  </PropertyGroup>
24
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
25
+    <PlatformTarget>AnyCPU</PlatformTarget>
26
+    <DebugSymbols>true</DebugSymbols>
27
+    <DebugType>full</DebugType>
28
+    <Optimize>false</Optimize>
29
+    <OutputPath>bin\Debug\</OutputPath>
30
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
31
+    <ErrorReport>prompt</ErrorReport>
32
+    <WarningLevel>4</WarningLevel>
33
+  </PropertyGroup>
34
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
35
+    <PlatformTarget>AnyCPU</PlatformTarget>
36
+    <DebugType>pdbonly</DebugType>
37
+    <Optimize>true</Optimize>
38
+    <OutputPath>bin\Release\</OutputPath>
39
+    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
40
+    <ErrorReport>prompt</ErrorReport>
41
+    <WarningLevel>4</WarningLevel>
42
+  </PropertyGroup>
43
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
44
+    <PlatformTarget>x86</PlatformTarget>
45
+    <DebugSymbols>true</DebugSymbols>
46
+    <OutputPath>bin\x86\Debug\</OutputPath>
47
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
48
+    <NoWarn>;2008</NoWarn>
49
+    <DebugType>full</DebugType>
50
+    <PlatformTarget>x86</PlatformTarget>
51
+    <UseVSHostingProcess>false</UseVSHostingProcess>
52
+    <ErrorReport>prompt</ErrorReport>
53
+  </PropertyGroup>
54
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
55
+    <PlatformTarget>x86</PlatformTarget>
56
+    <OutputPath>bin\x86\Release\</OutputPath>
57
+    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
58
+    <Optimize>true</Optimize>
59
+    <NoWarn>;2008</NoWarn>
60
+    <DebugType>pdbonly</DebugType>
61
+    <PlatformTarget>x86</PlatformTarget>
62
+    <UseVSHostingProcess>false</UseVSHostingProcess>
63
+    <ErrorReport>prompt</ErrorReport>
64
+  </PropertyGroup>
65
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
66
+    <PlatformTarget>ARM</PlatformTarget>
67
+    <DebugSymbols>true</DebugSymbols>
68
+    <OutputPath>bin\ARM\Debug\</OutputPath>
69
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
70
+    <NoWarn>;2008</NoWarn>
71
+    <DebugType>full</DebugType>
72
+    <PlatformTarget>ARM</PlatformTarget>
73
+    <UseVSHostingProcess>false</UseVSHostingProcess>
74
+    <ErrorReport>prompt</ErrorReport>
75
+  </PropertyGroup>
76
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
77
+    <PlatformTarget>ARM</PlatformTarget>
78
+    <OutputPath>bin\ARM\Release\</OutputPath>
79
+    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
80
+    <Optimize>true</Optimize>
81
+    <NoWarn>;2008</NoWarn>
82
+    <DebugType>pdbonly</DebugType>
83
+    <PlatformTarget>ARM</PlatformTarget>
84
+    <UseVSHostingProcess>false</UseVSHostingProcess>
85
+    <ErrorReport>prompt</ErrorReport>
86
+  </PropertyGroup>
87
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
88
+    <PlatformTarget>x64</PlatformTarget>
89
+    <DebugSymbols>true</DebugSymbols>
90
+    <OutputPath>bin\x64\Debug\</OutputPath>
91
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
92
+    <NoWarn>;2008</NoWarn>
93
+    <DebugType>full</DebugType>
94
+    <PlatformTarget>x64</PlatformTarget>
95
+    <UseVSHostingProcess>false</UseVSHostingProcess>
96
+    <ErrorReport>prompt</ErrorReport>
97
+  </PropertyGroup>
98
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
99
+    <PlatformTarget>x64</PlatformTarget>
100
+    <OutputPath>bin\x64\Release\</OutputPath>
101
+    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
102
+    <Optimize>true</Optimize>
103
+    <NoWarn>;2008</NoWarn>
104
+    <DebugType>pdbonly</DebugType>
105
+    <PlatformTarget>x64</PlatformTarget>
106
+    <UseVSHostingProcess>false</UseVSHostingProcess>
107
+    <ErrorReport>prompt</ErrorReport>
108
+  </PropertyGroup>
109
+  <ItemGroup>
110
+    <!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
111
+    <None Include="project.json" />
112
+  </ItemGroup>
113
+  <ItemGroup>
114
+    <Compile Include="Properties\AssemblyInfo.cs" />
115
+    <Compile Include="RNViewShotModule.cs" />
116
+    <Compile Include="RNViewShotPackage.cs" />
117
+    <EmbeddedResource Include="Properties\RNViewShot.rd.xml" />
118
+  </ItemGroup>
119
+  <ItemGroup>
120
+    <ProjectReference Include="..\..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj">
121
+      <Project>{c7673ad5-e3aa-468c-a5fd-fa38154e205c}</Project>
122
+      <Name>ReactNative</Name>
123
+    </ProjectReference>
124
+  </ItemGroup>
125
+  <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
126
+    <VisualStudioVersion>14.0</VisualStudioVersion>
127
+  </PropertyGroup>
128
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|AnyCPU'">
129
+    <DebugSymbols>true</DebugSymbols>
130
+    <OutputPath>bin\Development\</OutputPath>
131
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
132
+    <NoStdLib>true</NoStdLib>
133
+    <DebugType>full</DebugType>
134
+    <PlatformTarget>AnyCPU</PlatformTarget>
135
+    <UseVSHostingProcess>false</UseVSHostingProcess>
136
+    <ErrorReport>prompt</ErrorReport>
137
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
138
+  </PropertyGroup>
139
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x86'">
140
+    <DebugSymbols>true</DebugSymbols>
141
+    <OutputPath>bin\x86\Development\</OutputPath>
142
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
143
+    <NoWarn>;2008</NoWarn>
144
+    <NoStdLib>true</NoStdLib>
145
+    <DebugType>full</DebugType>
146
+    <PlatformTarget>x86</PlatformTarget>
147
+    <UseVSHostingProcess>false</UseVSHostingProcess>
148
+    <ErrorReport>prompt</ErrorReport>
149
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
150
+  </PropertyGroup>
151
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|ARM'">
152
+    <DebugSymbols>true</DebugSymbols>
153
+    <OutputPath>bin\ARM\Development\</OutputPath>
154
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
155
+    <NoWarn>;2008</NoWarn>
156
+    <NoStdLib>true</NoStdLib>
157
+    <DebugType>full</DebugType>
158
+    <PlatformTarget>ARM</PlatformTarget>
159
+    <UseVSHostingProcess>false</UseVSHostingProcess>
160
+    <ErrorReport>prompt</ErrorReport>
161
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
162
+  </PropertyGroup>
163
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Development|x64'">
164
+    <DebugSymbols>true</DebugSymbols>
165
+    <OutputPath>bin\x64\Development\</OutputPath>
166
+    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
167
+    <NoWarn>;2008</NoWarn>
168
+    <NoStdLib>true</NoStdLib>
169
+    <DebugType>full</DebugType>
170
+    <PlatformTarget>x64</PlatformTarget>
171
+    <UseVSHostingProcess>false</UseVSHostingProcess>
172
+    <ErrorReport>prompt</ErrorReport>
173
+    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
174
+  </PropertyGroup>
175
+  <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
176
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
177
+       Other similar extension points exist, see Microsoft.Common.targets.
178
+  <Target Name="BeforeBuild">
179
+  </Target>
180
+  <Target Name="AfterBuild">
181
+  </Target>
182
+  -->
183
+</Project>

+ 37
- 0
windows/RNViewShot/RNViewShotModule.cs Datei anzeigen

@@ -0,0 +1,37 @@
1
+using Newtonsoft.Json.Linq;
2
+using ReactNative.Bridge;
3
+using System;
4
+using System.Collections.Generic;
5
+using Windows.ApplicationModel.Core;
6
+using Windows.UI.Core;
7
+
8
+namespace Com.Reactlibrary.RNViewShot
9
+{
10
+    /// <summary>
11
+    /// A module that allows JS to share data.
12
+    /// </summary>
13
+    class RNViewShotModule : NativeModuleBase
14
+    {
15
+        /// <summary>
16
+        /// Instantiates the <see cref="RNViewShotModule"/>.
17
+        /// </summary>
18
+        internal RNViewShotModule()
19
+        {
20
+
21
+        }
22
+
23
+        /// <summary>
24
+        /// The name of the native module.
25
+        /// </summary>
26
+        public override string Name
27
+        {
28
+            get
29
+            {
30
+                return "RNViewShot";
31
+            }
32
+        }
33
+
34
+        [ReactMethod]
35
+        public void takeSnapshot(int tag, JObject options, IPromise promise) {}
36
+    }
37
+}

+ 53
- 0
windows/RNViewShot/RNViewShotPackage.cs Datei anzeigen

@@ -0,0 +1,53 @@
1
+using ReactNative.Bridge;
2
+using ReactNative.Modules.Core;
3
+using ReactNative.UIManager;
4
+using System;
5
+using System.Collections.Generic;
6
+
7
+namespace Com.Reactlibrary.RNViewShot
8
+{
9
+    /// <summary>
10
+    /// Package defining core framework modules (e.g., <see cref="UIManagerModule"/>).
11
+    /// It should be used for modules that require special integration with
12
+    /// other framework parts (e.g., with the list of packages to load view
13
+    /// managers from).
14
+    /// </summary>
15
+    public class RNViewShotPackage : IReactPackage
16
+    {
17
+        /// <summary>
18
+        /// Creates the list of native modules to register with the react
19
+        /// instance.
20
+        /// </summary>
21
+        /// <param name="reactContext">The react application context.</param>
22
+        /// <returns>The list of native modules.</returns>
23
+        public IReadOnlyList<INativeModule> CreateNativeModules(ReactContext reactContext)
24
+        {
25
+            return new List<INativeModule>
26
+            {
27
+                new RNViewShotModule(),
28
+            };
29
+        }
30
+
31
+        /// <summary>
32
+        /// Creates the list of JavaScript modules to register with the
33
+        /// react instance.
34
+        /// </summary>
35
+        /// <returns>The list of JavaScript modules.</returns>
36
+        public IReadOnlyList<Type> CreateJavaScriptModulesConfig()
37
+        {
38
+            return new List<Type>(0);
39
+        }
40
+
41
+        /// <summary>
42
+        /// Creates the list of view managers that should be registered with
43
+        /// the <see cref="UIManagerModule"/>.
44
+        /// </summary>
45
+        /// <param name="reactContext">The react application context.</param>
46
+        /// <returns>The list of view managers.</returns>
47
+        public IReadOnlyList<IViewManager> CreateViewManagers(
48
+            ReactContext reactContext)
49
+        {
50
+            return new List<IViewManager>(0);
51
+        }
52
+    }
53
+}

+ 16
- 0
windows/RNViewShot/project.json Datei anzeigen

@@ -0,0 +1,16 @@
1
+{
2
+  "dependencies": {
3
+    "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2"
4
+  },
5
+  "frameworks": {
6
+    "uap10.0": {}
7
+  },
8
+  "runtimes": {
9
+    "win10-arm": {},
10
+    "win10-arm-aot": {},
11
+    "win10-x86": {},
12
+    "win10-x86-aot": {},
13
+    "win10-x64": {},
14
+    "win10-x64-aot": {}
15
+  }
16
+}