Skip to content

Commit 844e8b2

Browse files
msohailhussainmikeproeng37
authored andcommitted
support for framework 4.0 using nuget (#11)
* merged testing framework nunit and travis compatability. * test * Create separate class for PrivateObject * replacing condition for framework detection. * Travis Compatible build. (#2) * Adding travis badge to the README. * Change GetExecutingAssembly to GetEntryAssembly for NetStandard1.6 compability. * Created NetStandard 1.6 version of the main Optimizely SDK project. * Fixed accessing Assembly issue for .NetStandard16 * fixed resource name * made new solution file for travis and use that file in travis configuration * nuget spec for multiple platform and PS script for creating package from spec file * added new project for 3.5 assembly and made some changes in existing code to build 3.5 assembly * added 3.5 assembly into nuget package * fixed issues in httpwebrequest * license header change * switched Json.net with Unity version * enable test project on VS Mac * User profile partial stuff. * Integrated with Optimizely class. * existing unit test correction * Cleanup EventTagUtils * adding config files for decision service. * userprofile feature reworked. * checking temporarily. * Optimizely unit test. * partial check-in refactored code. * finalizing user profile. * user profile * Fixed NetStandard1.6 project compilation (missing new files). * Fixing compiler warnings * Refactoring DecisionService * Simplified UserProfile slightly * Formatting * More improvements to DecisionService and UserProfile * Moving Bucketing related logic into Bucketing folder and namespace. Also matches the Java SDK structure. * More DecsisionService cleanup * Undid changes to fix unit tests * user profile reverted code. * correcting test cases. * slight refactoring. * more specific name * more cleanup. * Based on Mike's feedback. Assert in test methods either calling bucket or not. moved constants to Userprofile Removed userprofile validation coz of performance issue. * more feedback from mike. * Please change the version before releasing it to Nuget repo. Issues Fixed. .Net framework 4.0 support using nuget installation. * Just indented and added net 4.0 support.
1 parent 7924ca2 commit 844e8b2

File tree

2 files changed

+39
-33
lines changed

2 files changed

+39
-33
lines changed
Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,42 @@
1-
<?xml version="1.0"?>
2-
<package >
3-
<metadata>
4-
<id>Optimizely.SDK</id>
5-
<version>0.1.0</version>
6-
<title>Optimizely C# SDK</title>
7-
<authors>Optimizely Development Team</authors>
8-
<owners>fullstack.optimizely</owners>
9-
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
10-
<!-->projectUrl></projectUrl-->
11-
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12-
<description>C# SDK for Optimizely X Fullstack</description>
13-
<releaseNotes>This is a Beta Pre-Release.</releaseNotes>
14-
<copyright>Copyright 2017</copyright>
15-
<tags>Optimizely</tags>
16-
<dependencies>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<package>
3+
<metadata>
4+
<id>Optimizely.SDK</id>
5+
<version>0.1.0</version>
6+
<title>Optimizely C# SDK</title>
7+
<authors>Optimizely Development Team</authors>
8+
<owners>fullstack.optimizely</owners>
9+
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
10+
<!-->projectUrl></projectUrl-->
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>C# SDK for Optimizely X Fullstack</description>
13+
<releaseNotes>This is a Beta Pre-Release.</releaseNotes>
14+
<copyright>Copyright 2017</copyright>
15+
<tags>Optimizely</tags>
16+
<dependencies>
1717
<group targetFramework=".NETFramework4.5">
18-
<dependency id="JsonNet.PrivateSettersContractResolvers.Source" version="0.1.0" />
19-
<dependency id="murmurhash" version="1.0.0" />
20-
<dependency id="Newtonsoft.Json" version="9.0.1" />
21-
<dependency id="NJsonSchema" version="8.30.6304.31883" />
22-
</group>
18+
<dependency id="JsonNet.PrivateSettersContractResolvers.Source" version="0.1.0" />
19+
<dependency id="murmurhash" version="1.0.0" />
20+
<dependency id="Newtonsoft.Json" version="9.0.1" />
21+
<dependency id="NJsonSchema" version="8.30.6304.31883" />
22+
</group>
2323
<group targetFramework=".NETFramework3.5">
24-
<dependency id="murmurhash" version="1.0.0" />
25-
<dependency id="Newtonsoft.Json" version="9.0.1" />
26-
</group>
24+
<dependency id="murmurhash" version="1.0.0" />
25+
<dependency id="Newtonsoft.Json" version="9.0.1" />
26+
</group>
27+
<group targetFramework=".NETFramework4.0">
28+
<dependency id="murmurhash" version="1.0.0" />
29+
<dependency id="Newtonsoft.Json" version="9.0.1" />
30+
</group>
2731
<group targetFramework=".NETStandard1.6">
2832
<dependency id="NETStandard.Library" version="1.6.1" />
2933
<dependency id="MurmurHash-net-core" version="1.0.0" />
30-
<dependency id="Newtonsoft.Json" version="9.0.1" />
31-
<dependency id="NJsonSchema" version="8.33.6323.36213" />
34+
<dependency id="Newtonsoft.Json" version="9.0.1" />
35+
<dependency id="NJsonSchema" version="8.33.6323.36213" />
3236
</group>
33-
</dependencies>
34-
</metadata>
35-
<files>
36-
<file src="lib\**" target="lib" />
37-
</files>
38-
</package>
37+
</dependencies>
38+
</metadata>
39+
<files>
40+
<file src="lib\**" target="lib" />
41+
</files>
42+
</package>

OptimizelySDK.Package/pack.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@ Write-Host "Build complete. Copying files..."
1414

1515
Copy-Item -Path "..\OptimizelySDK\bin\Release\OptimizelySDK.dll" -Destination ".\lib\net45" -Recurse -force
1616
Copy-Item -Path "..\OptimizelySDK.Net35\bin\Release\OptimizelySDK.Net35.dll" -Destination ".\lib\net35" -Recurse -force
17+
Copy-Item -Path "..\OptimizelySDK.Net35\bin\Release\OptimizelySDK.Net35.dll" -Destination ".\lib\net40\" -Recurse -force
1718
Copy-Item -Path "..\OptimizelySDK.NetStandard16\bin\Release\netstandard1.6\OptimizelySDK.NetStandard16.dll" -Destination ".\lib\netstandard1.6" -Recurse -force
1819

20+
1921
Write-Host "-"
2022
Write-Host "-"
2123
Write-Host "Creating NuGet package"
2224

23-
.\nuget pack OptimizelySDK.nuspec
25+
nuget pack OptimizelySDK.nuspec

0 commit comments

Comments
 (0)