Skip to content

Commit 4e919d7

Browse files
committed
Fix dotnet new on Windows, and update version
1 parent 7a386bc commit 4e919d7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Azure.Functions.Cli/Azure.Functions.Cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netcoreapp2.1</TargetFramework>
55
<AssemblyName>func</AssemblyName>
66
<RuntimeIdentifiers>win-x64;win-x86;linux-x64;osx-x64</RuntimeIdentifiers>
7-
<Version>2.0.1.30-beta</Version>
7+
<Version>2.0.1.31-beta</Version>
88
<Company>Microsoft</Company>
99
<Authors>Microsoft</Authors>
1010
<Title>Azure Functions Cli</Title>

src/Azure.Functions.Cli/Helpers/DotnetHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public async static Task DeployDotnetProject(string Name, bool force)
2727
await TemplateOperation(async () =>
2828
{
2929
var connectionString = RuntimeInformation.IsOSPlatform(OSPlatform.Windows)
30-
? "--StorageConnectionStringValue \"UseDevelopmentStorage=true\""
30+
? "--StorageConnectionStringValue \"UseDevelopmentStorage=true\" --AzureFunctionsVersion V2"
3131
: string.Empty;
3232
var exe = new Executable("dotnet", $"new azureFunctionsProjectTemplates --name {Name} {connectionString} {(force ? "--force" : string.Empty)}");
3333
var exitCode = await exe.RunAsync(o => ColoredConsole.WriteLine(o), e => ColoredConsole.Error.WriteLine(ErrorColor(e)));
@@ -136,7 +136,7 @@ private static async Task DotnetTemplatesAction(string action)
136136
foreach (var nupkg in FileSystemHelpers.GetFiles(templatesLocation, null, null, "*.nupkg"))
137137
{
138138
var exe = new Executable("dotnet", $"new --{action} {nupkg}");
139-
await exe.RunAsync();
139+
await exe.RunAsync(_ => { }, _ => { });
140140
}
141141
}
142142
}

src/Azure.Functions.Cli/npm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-functions-core-tools",
3-
"version": "2.0.1-beta.30",
3+
"version": "2.0.1-beta.31",
44
"description": "Azure Functions Core Tools",
55
"scripts": {
66
"postinstall": "node lib/install.js"

0 commit comments

Comments
 (0)