Skip to content

Commit 7ddb82c

Browse files
committed
Use Worker sdk internally
1 parent aaa1869 commit 7ddb82c

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Azure.Functions.Sdk/Targets/Azure.Functions.Sdk.props

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
1212
<Project>
1313

1414
<PropertyGroup>
15-
<OutputType>Exe</OutputType>
1615
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
17-
<DefaultExcludesInProjectFolder>$(DefaultExcludesInProjectFolder);host.json;local.settings.json</DefaultExcludesInProjectFolder>
1816
<MSBuildFunctionsTargetsPath>$(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed.Functions\</MSBuildFunctionsTargetsPath>
1917
</PropertyGroup>
2018

21-
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.props" />
19+
<Import Sdk="Microsoft.NET.Sdk.Worker" Project="Sdk.props" />
2220

2321
<!-- Enable Azure Functions project capability to enable tools -->
2422
<ItemGroup>
@@ -30,8 +28,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
3028
</ItemGroup>
3129

3230
<ItemGroup>
33-
<None Include="host.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" Condition="Exists('host.json')" />
34-
<None Include="local.settings.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="Never" Condition="Exists('local.settings.json')" />
31+
<Content Update="local.settings.json" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="Never" Condition="Exists('local.settings.json')" />
3532
</ItemGroup>
3633

3734
</Project>

src/Azure.Functions.Sdk/Targets/Azure.Functions.Sdk.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
1111

1212
<Project>
1313

14-
<Import Sdk="Microsoft.NET.Sdk" Project="Sdk.targets" />
14+
<Import Sdk="Microsoft.NET.Sdk.Worker" Project="Sdk.targets" />
1515

1616
<PropertyGroup>
1717
<_AzureFunctionsVersionStandardized>$(AzureFunctionsVersion.ToLowerInvariant().Split('-')[0])</_AzureFunctionsVersionStandardized>

0 commit comments

Comments
 (0)