@mnci/cli 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -2089,6 +2089,7 @@ function csharpFunctionAppCsproj() {
2089
2089
  </PropertyGroup>
2090
2090
 
2091
2091
  <ItemGroup>
2092
+ <FrameworkReference Include="Microsoft.AspNetCore.App" />
2092
2093
  <PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.52.0" />
2093
2094
  <PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
2094
2095
  </ItemGroup>
@@ -2140,6 +2141,9 @@ function addCsharpFunctionApp(workspaceRoot, name) {
2140
2141
  writeFileEnsured((0, import_node_path4.join)(absoluteRoot, "Program.cs"), CSHARP_FUNCTION_APP_PROGRAM);
2141
2142
  writeFileEnsured((0, import_node_path4.join)(absoluteRoot, "Hello.cs"), csharpFunctionAppHello(identity));
2142
2143
  writeFileEnsured((0, import_node_path4.join)(absoluteRoot, "host.json"), CSHARP_FUNCTION_APP_HOST_JSON);
2144
+ if (runShell("dotnet", ["restore", projectRoot], workspaceRoot) !== 0) {
2145
+ throw new Error(`dotnet restore failed for ${projectRoot}`);
2146
+ }
2143
2147
  addProjectJsonTargets((0, import_node_path4.join)(absoluteRoot, "project.json"), {
2144
2148
  package: csharpAppPackageTarget("csharp-function-app", projectRoot, name),
2145
2149
  start: csharpFunctionAppStartTarget(projectRoot)