File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,19 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
106106 <Error Condition =" '$(_ToolingSuffix)' == ''" Text =" Invalid combination of TargetFramework and AzureFunctionsVersion is set." />
107107 </Target >
108108
109- <!-- This target is used to set up the run arguments for the function app, supporting `dotnet run` -->
110109 <Target Name =" _FunctionsComputeRunArguments" BeforeTargets =" ComputeRunArguments" DependsOnTargets =" _FunctionsCheckForCoreTools" >
111- <PropertyGroup Condition =" '$(FuncExists)' == 'true'" >
112- <RunCommand >func</RunCommand >
113- <RunArguments >host start $(RunArguments)</RunArguments >
114- <RunWorkingDirectory >$(OutDir)</RunWorkingDirectory >
110+ <!-- Windows Configuration -->
111+ <PropertyGroup Condition =" '$(OS)' == 'Windows_NT'" >
112+ <RunCommand >cmd</RunCommand >
113+ <RunArguments >/C func start $(RunArguments)</RunArguments >
114+ <RunWorkingDirectory >$(OutDir)</RunWorkingDirectory >
115+ </PropertyGroup >
116+
117+ <!-- Unix/Linux/macOS Configuration -->
118+ <PropertyGroup Condition =" '$(OS)' != 'Windows_NT'" >
119+ <RunCommand >func</RunCommand >
120+ <RunArguments >start $(RunArguments)</RunArguments >
121+ <RunWorkingDirectory >$(OutDir)</RunWorkingDirectory >
115122 </PropertyGroup >
116123 </Target >
117124
Original file line number Diff line number Diff line change 77### Microsoft.Azure.Functions.Worker.Sdk <version >
88
99- Build no longer generates ` functions.metadata ` if source-generated metadata provider is enabled. (#2974 )
10+ - Fixing ` dotnet run ` to work on Windows when core tools is installed from NPM (#3127 )
1011
1112### Microsoft.Azure.Functions.Worker.Sdk.Generators <version >
1213
You can’t perform that action at this time.
0 commit comments