File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -162,21 +162,21 @@ Target "Pack" (fun _ ->
162
162
Target " TestTemplatesNuGet" ( fun _ ->
163
163
164
164
// Globally install the templates from the template nuget package we just built
165
- DotNetCli.RunCommand id ( " new -i " + outputPath + " /FSharp.TypeProviders.Templates." + release.NugetVersion + " .nupkg" )
165
+ DotNetCli.RunCommand ( fun p -> { p with ToolPath = getSdkPath () }) ( " new -i " + outputPath + " /FSharp.TypeProviders.Templates." + release.NugetVersion + " .nupkg" )
166
166
167
167
// Instantiate the template into a randomly generated name
168
168
let testAppName = " tp2" + string ( abs ( hash System.DateTime.Now.Ticks) % 100 )
169
169
CleanDir testAppName
170
- DotNetCli.RunCommand id ( sprintf " new typeprovider -n %s -lang F#" testAppName)
170
+ DotNetCli.RunCommand ( fun p -> { p with ToolPath = getSdkPath () }) ( sprintf " new typeprovider -n %s -lang F#" testAppName)
171
171
172
172
let pkgs = Path.GetFullPath( outputPath)
173
173
174
174
// NOTE: when restoring this won't use the local version of TPSDK but the one in github. Perhaps we can use
175
175
// this local repo as a source for the paket update, or remove the use of paket in the template
176
176
execIn testAppName " .paket/paket.exe" " update"
177
177
178
- DotNetCli.RunCommand ( fun p -> { p with WorkingDir= testAppName }) ( sprintf " build -c debug" )
179
- DotNetCli.RunCommand ( fun p -> { p with WorkingDir= testAppName }) ( sprintf " test -c debug" )
178
+ DotNetCli.RunCommand ( fun p -> { p with ToolPath = getSdkPath (); WorkingDir= testAppName }) ( sprintf " build -c debug" )
179
+ DotNetCli.RunCommand ( fun p -> { p with ToolPath = getSdkPath (); WorkingDir= testAppName }) ( sprintf " test -c debug" )
180
180
181
181
(* Manual steps without building nupkg
182
182
dotnet pack src\FSharp.TypeProviders.SDK.fsproj /p:PackageVersion=0.0.0.99 --output bin -c release
You can’t perform that action at this time.
0 commit comments