Skip to content

Commit 173c08f

Browse files
committed
Prep for 0.2.0 release
1 parent 7557687 commit 173c08f

7 files changed

Lines changed: 18 additions & 8 deletions

File tree

Readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tools to let you use Roslyn-powered C# scripts for code generation. You can thin
44

55
## Quick Start
66

7-
The easiest way to get up and running is to install the `Scripty.MsBuild` NuGet package into an existing project (it's currently pre-release so you'll have to specify to allow pre-release packages). Then just create a script file with a `.csx` extension, add it to your project, and watch the magic happen on your next build.
7+
The easiest way to get up and running is to install the `Scripty.MsBuild` NuGet package into an existing project. Then just create a script file with a `.csx` extension, add it to your project, and watch the magic happen on your next build. Alternativly, you can install the Scripty Visual Studio extension to add custom tool support for code generation outside the build process.
88

99
## Scripts
1010

@@ -102,10 +102,12 @@ By default, all files in the project with the `.csx` extension are evaluated. Yo
102102

103103
Files that get generated using the MsBuild task are included during compilation (as long as their `Compile` flag is set in the script), but not in the project (unless your script modifies the project to include them). If you'd like to have them in the project as well (for example, to enable Intellisense) just include them manually after the first generation. You may want to also commit an empty placeholder file to any shared repository if you do include generated files in the project so that people obtaining the project won't get a missing file prior to their first build.
104104

105-
### Scripty.CustomTool (Planned)
105+
### Scripty.CustomTool
106106

107107
This library provides a single file generator (otherwise known as a custom tool) in Visual Studio that can be used to evaluate Scripty scripts whenever the underlying script file changes. Unlike `Scripty.MsBuild`, generated output from the scripts will get automatically included in the project. This library and `Scripty.MsBuild` can be used together to provide script evaluation on changes *and* on build.
108108

109+
The generator is provided as a Visual Studio extension and you can install it from the gallery (just search for "Scripty"). To use it, set the "Custom Tool" property for any `.csx` file to "ScriptyGenerator". After setting the custom tool. Scripty will automatically run whenever the underlying script is saved or when you right-click the script and select "Run Custom Tool."
110+
109111
### Scripty
110112

111113
A console application that can evaluate Scripty scripts. This can be used to integrate Scripty into alternate build systems. It's also used by Scripty.MsBuild to evaluate scripts outside the process space of the currently running build.

ReleaseNotes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.2.0
2+
3+
- Added a Visual Studio single file generator (a.k.a "custom tool")
4+
15
# 0.1.0
26

37
- Initial public release!

build.cake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
// Publishing workflow:
66
// - Update ReleaseNotes.md
7+
// - Update the version in Scripty.CustomTool/source.extension.vsixmanifest
78
// - Run a normal build with Cake to set SolutionInfo.cs in the repo ("build.cmd")
89
// - Run a Publish build with Cake ("build.cmd --target Publish")
910
// - No need to add a version tag to the repo - added by GitHub on publish
11+
// - Manually upload the .vsix in src\artifacts to the Visual Studio Gallery
1012

1113
#addin "Cake.FileHelpers"
1214
#addin "Octokit"
@@ -31,7 +33,7 @@ var buildNumber = AppVeyor.Environment.Build.Number;
3133
var releaseNotes = ParseReleaseNotes("./ReleaseNotes.md");
3234

3335
var version = releaseNotes.Version.ToString();
34-
var semVersion = version + (isLocal ? "-beta" : string.Concat("-build-", buildNumber));
36+
var semVersion = version + (isLocal ? string.Empty : string.Concat("-build-", buildNumber));
3537

3638
var buildDir = Directory("./src/Scripty/bin") + Directory(configuration);
3739
var buildResultDir = Directory("./build") + Directory(semVersion);
@@ -87,6 +89,7 @@ Task("Build")
8789
MSBuild("./src/Scripty.sln", new MSBuildSettings()
8890
.SetConfiguration(configuration)
8991
.SetVerbosity(Verbosity.Minimal)
92+
.SetMSBuildPlatform(MSBuildPlatform.x86)
9093
);
9194
});
9295

src/Scripty.CustomTool/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
33
<Metadata>
4-
<Identity Id="Scripty.CustomTool" Version="1.0.0.0" Language="en-US" Publisher="Dave Glick" />
4+
<Identity Id="Scripty.CustomTool" Version="0.2.0.0" Language="en-US" Publisher="Dave Glick" />
55
<DisplayName>Scripty</DisplayName>
66
<Description xml:space="preserve">Runs Scripty as a custom tool.</Description>
77
<MoreInfo>https://github.com/daveaglick/Scripty</MoreInfo>

src/SolutionInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
using System.Reflection;
77

88
[assembly: AssemblyProduct("Scripty")]
9-
[assembly: AssemblyVersion("0.1.0")]
10-
[assembly: AssemblyFileVersion("0.1.0")]
11-
[assembly: AssemblyInformationalVersion("0.1.0-beta")]
12-
[assembly: AssemblyCopyright("Copyright © Dave Glick")]
9+
[assembly: AssemblyVersion("0.2.0")]
10+
[assembly: AssemblyFileVersion("0.2.0")]
11+
[assembly: AssemblyInformationalVersion("0.2.0")]
12+
[assembly: AssemblyCopyright("Copyright © Scripty Contributors")]
1313

src/artifacts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.vsix

src/artifacts/Scripty.vsix

-300 KB
Binary file not shown.

0 commit comments

Comments
 (0)