Skip to content

Commit 57eb65d

Browse files
committed
Update README.md and create NuGet package
1 parent 423331a commit 57eb65d

6 files changed

Lines changed: 49 additions & 11 deletions

File tree

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,4 +259,8 @@ paket-files/
259259

260260
# Python Tools for Visual Studio (PTVS)
261261
__pycache__/
262-
*.pyc
262+
*.pyc
263+
264+
265+
/Nuget/Package/lib
266+
/Nuget/Package/*.nupkg

CopyLibs.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Copy-Item .\Westwind.Scripting\bin\Release\Westwind.Scripting.dll .\Nuget\Package\lib\net45
2+
Copy-Item .\Westwind.Scripting\bin\Release\Westwind.Scripting.xml .\Nuget\Package\lib\net45
3+
4+
signtool.exe sign /v /n "West Wind Technologies" /sm /s MY /tr "http://timestamp.digicert.com" /td SHA256 /fd SHA256 ".\Nuget\Package\lib\net45\Westwind.Scripting.dll"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd">
3+
<metadata minClientVersion="2.25">
4+
<id>Westwind.Scripting</id>
5+
<version>0.1-alpha</version>
6+
<title>West Wind Scripting</title>
7+
<authors>Rick Strahl,West Wind Technologies</authors>
8+
<licenseUrl>https://github.com/RickStrahl/Westwind.Scripting#license</licenseUrl>
9+
<projectUrl>https://github.com/RickStrahl/Westwind.Scripting</projectUrl>
10+
<iconUrl>http://www.west-wind.com/westwindToolkit/images/WestwindWebToolkit_128x128.png</iconUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>
13+
Small library that allows you to easily compile C# source code and execute it at runtime. You can execute code blocks, evaluate expressions, execute methods, and compile classes directly to live instances using either Roslyn or the classic C# compiler.
14+
</description>
15+
<summary></summary>
16+
<releaseNotes></releaseNotes>
17+
<copyright>Rick Strahl, West Wind Technologies 2019</copyright>
18+
<language>en-US</language>
19+
<tags>c# runtime-compilation scripting roslyn compiler</tags>
20+
<dependencies>
21+
<dependency id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="2.0.1" />
22+
</dependencies>
23+
</metadata>
24+
</package>

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33

44
<small>for .NET 4.52 and later</small>
55

6+
Get it from [Nuget](https://www.nuget.org/packages/Westwind.Scripting/):
7+
8+
```text
9+
Install-Package Westwind.Scripting
10+
```
11+
</small>(currently you need to use the `-IncludePreRelease` flag)</small>
12+
613
The small `CSharpScripting` class provides an easy way to compile and execute C# on the fly from source code at runtime using the .NET compiler services on full Framework .NET. You can use Roslyn compilation for the latest C# features, or classic C# 5 features.
714

815
This class makes is very easy to integrate simple scripting or text merging features into applications with minimal effort.
@@ -245,11 +252,9 @@ Assert.IsTrue(addResult.Contains(" = 30"));
245252
Assert.IsTrue(multiResult.Contains(" = 21"));
246253
```
247254

248-
249255
## Usage Notes
250256

251257

252-
253258
## License
254259
This library is published under **MIT license** terms.
255260

Westwind.Scripting/Properties/AssemblyInfo.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("Westwind.ScriptExecution")]
9-
[assembly: AssemblyDescription("")]
8+
[assembly: AssemblyTitle("Westwind.Scripting")]
9+
[assembly: AssemblyDescription("Small library to dynamically compile and execute C# source code at runtime.")]
1010
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
11+
[assembly: AssemblyCompany("West Wind Technologies")]
1212
[assembly: AssemblyProduct("Westwind.ScriptExecution")]
13-
[assembly: AssemblyCopyright("Copyright © 2019")]
13+
[assembly: AssemblyCopyright("Copyright © West Wind Technologies 2019")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("0.01.0.0")]
36+
[assembly: AssemblyFileVersion("0.01.0")]

Westwind.Scripting/Westwind.Scripting.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<ProjectGuid>{65910294-E2D5-474B-8A65-FFDEDB3946AB}</ProjectGuid>
99
<OutputType>Library</OutputType>
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
11-
<RootNamespace>Westwind.ScriptExecution</RootNamespace>
12-
<AssemblyName>Westwind.ScriptExecution</AssemblyName>
11+
<RootNamespace>Westwind.Scripting</RootNamespace>
12+
<AssemblyName>Westwind.Scripting</AssemblyName>
1313
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<Deterministic>true</Deterministic>
@@ -33,6 +33,7 @@
3333
<DefineConstants>TRACE</DefineConstants>
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
36+
<DocumentationFile>bin\Release\Westwind.Scripting.xml</DocumentationFile>
3637
</PropertyGroup>
3738
<ItemGroup>
3839
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

0 commit comments

Comments
 (0)