Skip to content

Commit 37484db

Browse files
authored
Rev Sdk.csproj to 2.0.4, fix design time build (#3070)
* Rev Sdk.csproj to 2.0.4 * Fix design time build * Add comment
1 parent c662743 commit 37484db

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

sdk/Sdk/Sdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<MajorProductVersion>2</MajorProductVersion>
55
<MinorProductVersion>0</MinorProductVersion>
6-
<PatchProductVersion>3</PatchProductVersion>
6+
<PatchProductVersion>4</PatchProductVersion>
77
<TargetFrameworks>netstandard2.0;net472</TargetFrameworks>
88
<PackageId>Microsoft.Azure.Functions.Worker.Sdk</PackageId>
99
<Description>This package provides development time support for the Azure Functions .NET Worker.</Description>

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,13 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
146146
<!-- Invoke restore on WorkerExtension.csproj.
147147
We depend on _GetRestoreSettings, which is a task from nuget targets that will resolve various nuget restore settings.
148148
Namely we want to know what restore sources ($(_OutputSources)) to use. -->
149-
<Target Name="_WorkerExtensionsRestore" DependsOnTargets="_GetRestoreSettings">
149+
<Target Name="_WorkerExtensionsRestore" DependsOnTargets="_FunctionsPreBuild;_GetRestoreSettings">
150150
<MSBuild Projects="$(ExtensionsCsProj)" Targets="Restore" RemoveProperties="$(_FunctionsExtensionRemoveProps)" Properties="IsRestoring=true;RestoreSources=$(_OutputSources);$(_FunctionsExtensionCommonProps)" />
151151
</Target>
152152

153-
<!-- Invoke build on WorkerExtension.csproj -->
154-
<Target Name="_WorkerExtensionsBuild">
153+
<!-- Invoke 'Build' or 'GetTargetPath' (for no-build) on WorkerExtension.csproj -->
154+
<!-- We intentionally do not depend on _WorkerExtensionsRestore because this supports the no-build (and thus no-restore) scenario. -->
155+
<Target Name="_WorkerExtensionsBuild" DependsOnTargets="_FunctionsPreBuild">
155156
<PropertyGroup>
156157
<_WorkerExtensionTarget>Build</_WorkerExtensionTarget>
157158
<_WorkerExtensionTarget Condition="'$(NoBuild)' == 'true'">GetTargetPath</_WorkerExtensionTarget>

0 commit comments

Comments
 (0)