Skip to content

Commit 68a3687

Browse files
Added blog entry about .NET playgrounds.
1 parent 51dc719 commit 68a3687

8 files changed

+61
-33
lines changed

docs/Gemfile.lock

Lines changed: 13 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ GEM
1414
execjs
1515
coffee-script-source (1.11.1)
1616
colorator (1.1.0)
17-
commonmarker (0.23.4)
17+
commonmarker (0.23.5)
1818
concurrent-ruby (1.1.10)
1919
dnsruby (1.61.9)
2020
simpleidn (~> 0.1)
@@ -25,29 +25,10 @@ GEM
2525
ffi (>= 1.15.0)
2626
eventmachine (1.2.7)
2727
execjs (2.8.1)
28-
faraday (1.10.0)
29-
faraday-em_http (~> 1.0)
30-
faraday-em_synchrony (~> 1.0)
31-
faraday-excon (~> 1.1)
32-
faraday-httpclient (~> 1.0)
33-
faraday-multipart (~> 1.0)
34-
faraday-net_http (~> 1.0)
35-
faraday-net_http_persistent (~> 1.0)
36-
faraday-patron (~> 1.0)
37-
faraday-rack (~> 1.0)
38-
faraday-retry (~> 1.0)
28+
faraday (2.3.0)
29+
faraday-net_http (~> 2.0)
3930
ruby2_keywords (>= 0.0.4)
40-
faraday-em_http (1.0.0)
41-
faraday-em_synchrony (1.0.0)
42-
faraday-excon (1.1.0)
43-
faraday-httpclient (1.0.1)
44-
faraday-multipart (1.0.3)
45-
multipart-post (>= 1.2, < 3)
46-
faraday-net_http (1.0.1)
47-
faraday-net_http_persistent (1.2.0)
48-
faraday-patron (1.0.0)
49-
faraday-rack (1.0.0)
50-
faraday-retry (1.0.3)
31+
faraday-net_http (2.0.3)
5132
ffi (1.15.5)
5233
forwardable-extended (2.6.0)
5334
gemoji (3.0.1)
@@ -102,7 +83,7 @@ GEM
10283
octokit (~> 4.0)
10384
public_suffix (>= 3.0, < 5.0)
10485
typhoeus (~> 1.3)
105-
html-pipeline (2.14.1)
86+
html-pipeline (2.14.2)
10687
activesupport (>= 2)
10788
nokogiri (>= 1.4)
10889
http_parser.rb (0.8.0)
@@ -229,13 +210,12 @@ GEM
229210
jekyll (>= 3.5, < 5.0)
230211
jekyll-feed (~> 0.9)
231212
jekyll-seo-tag (~> 2.1)
232-
minitest (5.15.0)
233-
multipart-post (2.1.1)
213+
minitest (5.16.0)
234214
nokogiri (1.13.6-x86_64-linux)
235215
racc (~> 1.4)
236-
octokit (4.22.0)
237-
faraday (>= 0.9)
238-
sawyer (~> 0.8.0, >= 0.5.3)
216+
octokit (4.24.0)
217+
faraday (>= 1, < 3)
218+
sawyer (~> 0.9)
239219
pathutil (0.16.2)
240220
forwardable-extended (~> 2.6)
241221
public_suffix (4.0.7)
@@ -253,9 +233,9 @@ GEM
253233
sass-listen (4.0.0)
254234
rb-fsevent (~> 0.9, >= 0.9.4)
255235
rb-inotify (~> 0.9, >= 0.9.7)
256-
sawyer (0.8.2)
236+
sawyer (0.9.2)
257237
addressable (>= 2.3.5)
258-
faraday (> 0.8, < 2.0)
238+
faraday (>= 0.17.3, < 3)
259239
simpleidn (0.2.1)
260240
unf (~> 0.1.4)
261241
terminal-table (1.8.0)
@@ -267,9 +247,9 @@ GEM
267247
thread_safe (~> 0.1)
268248
unf (0.1.4)
269249
unf_ext
270-
unf_ext (0.0.8.1)
250+
unf_ext (0.0.8.2)
271251
unicode-display_width (1.8.0)
272-
zeitwerk (2.5.4)
252+
zeitwerk (2.6.0)
273253

274254
PLATFORMS
275255
x86_64-linux
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Using .NET Playgrounds with ClearScript 7.3
3+
---
4+
ClearScript is now easier to use with LINQPad and .NET Fiddle.
5+
6+
# Background
7+
8+
.NET playgrounds such as [LINQPad](https://www.linqpad.net/) and [.NET Fiddle](https://dotnetfiddle.net/) offer a great way to create small programs and explore the .NET platform.
9+
10+
In the past, ClearScript was difficult to use with these environments due to its reliance on native V8 assemblies and the Windows-only .NET Framework. Now that it supports newer .NET runtimes as well as several popular operating systems and machine architectures, ClearScript is much easier to incorporate into LINQPad and .NET Fiddle.
11+
12+
ClearScript 7.3 includes additional changes that make it almost as easy to use in these environments as a pure .NET library.
13+
14+
# LINQPad
15+
16+
[LINQPad](https://www.linqpad.net/) is a powerful .NET playground for Windows. We've tested ClearScript 7.3 with LINQPad 7 (x86/x64 and arm64) and LINQPad 5 (x86/x64).
17+
18+
Use the LINQPad NuGet Manager to add the appropriate package to your query:
19+
20+
- For LINQPad 7 (x86/x64) and LINQPad 5, use __ClearScript Library for Windows (x86/x64)__ (Package ID: [Microsoft.ClearScript](https://www.nuget.org/packages/Microsoft.ClearScript/)).
21+
![LINQPad 7 NuGet Manager (x86/x64)](/ClearScript/images/LINQPad-7-NuGet-Manager-x86-x64.png)
22+
23+
- For LINQPad 7 (arm64), use __ClearScript Library for Windows (arm64)__ (Package ID: [Microsoft.ClearScript.win-arm64](https://www.nuget.org/packages/Microsoft.ClearScript.win-arm64/)).
24+
![LINQPad 7 NuGet Manager (arm64)](/ClearScript/images/LINQPad-7-NuGet-Manager-arm64.png)
25+
26+
Be sure to select Version 7.3.0 or later. As soon as LINQPad completes the package import procedure, ClearScript is ready to go:
27+
28+
![LINQPad 7 QuickTest](/ClearScript/images/LINQPad-7-QuickTest.png)
29+
30+
# .NET Fiddle
31+
32+
[.NET Fiddle](https://dotnetfiddle.net/) is a convenient online .NET playground that enables easy sharing of code snippets. ClearScript 7.3 works seamlessly with its .NET 6 compiler.
33+
34+
Here's how to enable ClearScript in your fiddle:
35+
36+
1. Select ".NET 6" in the Compiler drop-down menu:
37+
![.NET Fiddle Compiler Dropdown](/ClearScript/images/DotNetFiddle-Compiler-Dropdown.png)
38+
39+
1. Add the NuGet package __ClearScript Library for Linux (x64)__ (Package ID: [Microsoft.ClearScript.linux-x64](https://www.nuget.org/packages/Microsoft.ClearScript.linux-x64/)). Be sure to select Version 7.3.0 or later:
40+
![.NET Fiddle NuGet Packages](/ClearScript/images/DotNetFiddle-NuGet-Packages.png)
41+
42+
You are now ready to use ClearScript:
43+
44+
![.NET Fiddle QuickTest](/ClearScript/images/DotNetFiddle-QuickTest.png)
45+
46+
You can find this fiddle [here](https://dotnetfiddle.net/3daJda). Click [here](https://dotnetfiddle.net/GdGvZ5) to see the full set of [ClearScript examples](https://microsoft.github.io/ClearScript/Examples/Examples.html) in action.
47+
48+
Good luck!
3.8 KB
Loading
9.71 KB
Loading
23.5 KB
Loading
8.09 KB
Loading
7.84 KB
Loading

docs/images/LINQPad-7-QuickTest.png

20.7 KB
Loading

0 commit comments

Comments
 (0)