Skip to content

Commit 3488f37

Browse files
committed
Initial Commit
1 parent 1f30678 commit 3488f37

File tree

447 files changed

+107563
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

447 files changed

+107563
-0
lines changed

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.gitignore

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
4+
# User-specific files
5+
*.suo
6+
*.user
7+
*.userosscache
8+
*.sln.docstates
9+
10+
# User-specific files (MonoDevelop/Xamarin Studio)
11+
*.userprefs
12+
13+
# Build results
14+
[Dd]ebug/
15+
[Dd]ebugPublic/
16+
[Rr]elease/
17+
[Rr]eleases/
18+
x64/
19+
x86/
20+
build/
21+
bld/
22+
[Bb]in/
23+
[Oo]bj/
24+
25+
# Visual Studio 2015 cache/options directory
26+
.vs/
27+
28+
# MSTest test Results
29+
[Tt]est[Rr]esult*/
30+
[Bb]uild[Ll]og.*
31+
32+
# NUNIT
33+
*.VisualState.xml
34+
TestResult.xml
35+
36+
# Build Results of an ATL Project
37+
[Dd]ebugPS/
38+
[Rr]eleasePS/
39+
dlldata.c
40+
41+
# DNX
42+
project.lock.json
43+
artifacts/
44+
45+
*_i.c
46+
*_p.c
47+
*_i.h
48+
*.ilk
49+
*.obj
50+
*.pch
51+
*.pdb
52+
*.pgc
53+
*.pgd
54+
*.rsp
55+
*.sbr
56+
*.tlb
57+
*.tli
58+
*.tlh
59+
*.tmp
60+
*.tmp_proj
61+
*.log
62+
*.vspscc
63+
*.vssscc
64+
.builds
65+
*.pidb
66+
*.svclog
67+
*.scc
68+
69+
# Chutzpah Test files
70+
_Chutzpah*
71+
72+
# Visual C++ cache files
73+
ipch/
74+
*.aps
75+
*.ncb
76+
*.opensdf
77+
*.sdf
78+
*.cachefile
79+
80+
# Visual Studio profiler
81+
*.psess
82+
*.vsp
83+
*.vspx
84+
85+
# TFS 2012 Local Workspace
86+
$tf/
87+
88+
# Guidance Automation Toolkit
89+
*.gpState
90+
91+
# ReSharper is a .NET coding add-in
92+
_ReSharper*/
93+
*.[Rr]e[Ss]harper
94+
*.DotSettings.user
95+
96+
# JustCode is a .NET coding add-in
97+
.JustCode
98+
99+
# TeamCity is a build add-in
100+
_TeamCity*
101+
102+
# DotCover is a Code Coverage Tool
103+
*.dotCover
104+
105+
# NCrunch
106+
_NCrunch_*
107+
.*crunch*.local.xml
108+
109+
# MightyMoose
110+
*.mm.*
111+
AutoTest.Net/
112+
113+
# Web workbench (sass)
114+
.sass-cache/
115+
116+
# Installshield output folder
117+
[Ee]xpress/
118+
119+
# DocProject is a documentation generator add-in
120+
DocProject/buildhelp/
121+
DocProject/Help/*.HxT
122+
DocProject/Help/*.HxC
123+
DocProject/Help/*.hhc
124+
DocProject/Help/*.hhk
125+
DocProject/Help/*.hhp
126+
DocProject/Help/Html2
127+
DocProject/Help/html
128+
129+
# Click-Once directory
130+
publish/
131+
132+
# Publish Web Output
133+
*.[Pp]ublish.xml
134+
*.azurePubxml
135+
## TODO: Comment the next line if you want to checkin your
136+
## web deploy settings but do note that will include unencrypted
137+
## passwords
138+
#*.pubxml
139+
140+
*.publishproj
141+
142+
# NuGet Packages
143+
*.nupkg
144+
# The packages folder can be ignored because of Package Restore
145+
**/packages/*
146+
# except build/, which is used as an MSBuild target.
147+
!**/packages/build/
148+
# Uncomment if necessary however generally it will be regenerated when needed
149+
#!**/packages/repositories.config
150+
151+
# Windows Azure Build Output
152+
csx/
153+
*.build.csdef
154+
155+
# Windows Store app package directory
156+
AppPackages/
157+
158+
# Visual Studio cache files
159+
# files ending in .cache can be ignored
160+
*.[Cc]ache
161+
# but keep track of directories ending in .cache
162+
!*.[Cc]ache/
163+
164+
# Others
165+
ClientBin/
166+
[Ss]tyle[Cc]op.*
167+
~$*
168+
*~
169+
*.dbmdl
170+
*.dbproj.schemaview
171+
*.pfx
172+
*.publishsettings
173+
node_modules/
174+
orleans.codegen.cs
175+
.fake
176+
177+
# RIA/Silverlight projects
178+
Generated_Code/
179+
180+
# Backup & report files from converting an old project file
181+
# to a newer Visual Studio version. Backup files are not needed,
182+
# because we have git ;-)
183+
_UpgradeReport_Files/
184+
Backup*/
185+
UpgradeLog*.XML
186+
UpgradeLog*.htm
187+
188+
# SQL Server files
189+
*.mdf
190+
*.ldf
191+
192+
# Business Intelligence projects
193+
*.rdl.data
194+
*.bim.layout
195+
*.bim_*.settings
196+
197+
# Microsoft Fakes
198+
FakesAssemblies/
199+
200+
# Node.js Tools for Visual Studio
201+
.ntvs_analysis.dat
202+
203+
# Visual Studio 6 build log
204+
*.plg
205+
206+
# Visual Studio 6 workspace options file
207+
*.opt
208+
209+
# LightSwitch generated files
210+
GeneratedArtifacts/
211+
_Pvt_Extensions/
212+
ModelManifest.xml

Json.Net.Unity3D.sln

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.23107.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Newtonsoft.Json", "src\Newtonsoft.Json\Newtonsoft.Json.csproj", "{955B96F2-6AFB-4C2F-AAA5-9BFD6DDCB3BD}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Newtonsoft.Json.Tests", "src\Newtonsoft.Json.Tests\Newtonsoft.Json.Tests.csproj", "{DD26402C-A73F-47F8-B8BC-F6D9353AA9E0}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{955B96F2-6AFB-4C2F-AAA5-9BFD6DDCB3BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{955B96F2-6AFB-4C2F-AAA5-9BFD6DDCB3BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{955B96F2-6AFB-4C2F-AAA5-9BFD6DDCB3BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{955B96F2-6AFB-4C2F-AAA5-9BFD6DDCB3BD}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{DD26402C-A73F-47F8-B8BC-F6D9353AA9E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{DD26402C-A73F-47F8-B8BC-F6D9353AA9E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{DD26402C-A73F-47F8-B8BC-F6D9353AA9E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{DD26402C-A73F-47F8-B8BC-F6D9353AA9E0}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
EndGlobal

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Newtonsoft Json.NET for Unity3D

build.cmd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@echo off
2+
3+
pushd %~dp0
4+
5+
tools\nuget\NuGet.exe update -self
6+
tools\nuget\NuGet.exe install FAKE -ConfigFile tools\nuget\Nuget.Config -OutputDirectory packages -ExcludeVersion -Version 4.7.3
7+
tools\nuget\NuGet.exe install nunit.runners -ConfigFile tools\nuget\Nuget.Config -OutputDirectory packages\FAKE -ExcludeVersion -Version 2.6.4
8+
9+
set encoding=utf-8
10+
packages\FAKE\tools\FAKE.exe build.fsx %*
11+
12+
popd

build.fsx

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#I @"packages/FAKE/tools"
2+
#r "FakeLib.dll"
3+
4+
open Fake
5+
open Fake.FileHelper
6+
open System.IO
7+
8+
// ---------------------------------------------------------------------------- Variables
9+
10+
let buildSolutionFile = "./Json.Net.Unity3D.sln"
11+
let buildConfiguration = "Release"
12+
let binDir = "bin"
13+
let testDir = binDir @@ "test"
14+
15+
// ------------------------------------------------------------------------- Unity Helper
16+
17+
let UnityPath =
18+
@"C:\Program Files\Unity\Editor\Unity.exe"
19+
20+
let Unity projectPath args =
21+
let result = Shell.Exec(UnityPath, "-quit -batchmode -logFile -projectPath \"" + projectPath + "\" " + args)
22+
if result < 0 then failwithf "Unity exited with error %d" result
23+
24+
// ------------------------------------------------------------------------------ Targets
25+
26+
Target "Clean" (fun _ ->
27+
CleanDirs [binDir]
28+
)
29+
30+
Target "Build" (fun _ ->
31+
!! buildSolutionFile
32+
|> MSBuild "" "Rebuild" [ "Configuration", buildConfiguration ]
33+
|> Log "Build-Output: "
34+
)
35+
36+
Target "Test" (fun _ ->
37+
ensureDirectory testDir
38+
!! ("./src/**/bin/" + buildConfiguration + "/*.Tests.dll")
39+
|> NUnit (fun p ->
40+
{p with
41+
DisableShadowCopy = true;
42+
OutputFile = testDir @@ "TestResult.xml" })
43+
)
44+
45+
Target "Package" (fun _ ->
46+
Unity (Path.GetFullPath "src/UnityPackage") "-executeMethod PackageBuilder.BuildPackage"
47+
(!! "src/UnityPackage/*.unitypackage") |> Seq.iter (fun p -> MoveFile binDir p)
48+
)
49+
50+
Target "Help" (fun _ ->
51+
List.iter printfn [
52+
"usage:"
53+
"build [target]"
54+
""
55+
" Targets for building:"
56+
" * Build Build"
57+
""]
58+
)
59+
60+
// --------------------------------------------------------------------------- Dependency
61+
62+
// Build order
63+
"Clean"
64+
==> "Build"
65+
==> "Test"
66+
==> "Package"
67+
68+
RunTargetOrDefault "Package"

0 commit comments

Comments
 (0)