Skip to content

Commit 0d86441

Browse files
authored
Include default values in Sdk.props (#2223)
* Include default values in Sdk.props * Update release notes * Fix spelling mistake
1 parent 4f29778 commit 0d86441

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

sdk/Sdk/Targets/Microsoft.Azure.Functions.Worker.Sdk.props

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
1414
<!--Our source generators rely on the FunctionsExecutionModel property.-->
1515
<FunctionsExecutionModel>isolated</FunctionsExecutionModel>
1616
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
17+
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
18+
<DefaultExcludesInProjectFolder>$(DefaultExcludesInProjectFolder);host.json;local.settings.json</DefaultExcludesInProjectFolder>
1719
</PropertyGroup>
1820

1921
<!--Enable Azure Functions project capability to enable tools-->
2022
<ItemGroup>
21-
<ProjectCapability Include="AzureFunctions"/>
23+
<ProjectCapability Include="AzureFunctions"/>
24+
</ItemGroup>
25+
26+
<ItemGroup>
27+
<None Include="host.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
28+
<None Include="local.settings.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="Never" />
2229
</ItemGroup>
2330

2431
<ItemGroup>

sdk/release_notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### Microsoft.Azure.Functions.Worker.Sdk 1.17.0-preview2 (meta package)
88

9+
- Set default values for `host.json`, `local.settings.json`, and `AzureFunctionsVersion` in Sdk.props (https://github.com/Azure/azure-functions-dotnet-worker/pull/2223)
910
- Explicitly error out if inner-builds TFM is altered. (https://github.com/Azure/azure-functions-dotnet-worker/pull/2222)
1011

1112
### Microsoft.Azure.Functions.Worker.Sdk.Generators 1.1.7

0 commit comments

Comments
 (0)