Skip to content

Fix design time build when not build yet #3081

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/Sdk/Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<MajorProductVersion>2</MajorProductVersion>
<MinorProductVersion>0</MinorProductVersion>
<PatchProductVersion>4</PatchProductVersion>
<PatchProductVersion>5</PatchProductVersion>
<TargetFrameworks>netstandard2.0;net472</TargetFrameworks>
<PackageId>Microsoft.Azure.Functions.Worker.Sdk</PackageId>
<Description>This package provides development time support for the Azure Functions .NET Worker.</Description>
Expand Down
3 changes: 2 additions & 1 deletion sdk/Sdk/Targets/Microsoft.Azure.Functions.Worker.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,14 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and

<!-- These two targets set up the main sequence of targets we want to run and when we want to run them. -->
<Target Name="_FunctionsBuildExtension"
Condition="'$(_FunctionsBuildEnabled)' == 'true'"
AfterTargets="CoreCompile"
BeforeTargets="GetCopyToOutputDirectoryItems"
Condition="'$(_FunctionsBuildEnabled)' == 'true'"
DependsOnTargets="_FunctionsGenerateMetadata;_FunctionsPostBuild;_FunctionsInnerBuild;_FunctionsExtensionUpdateMetadata;_FunctionsExtensionAssignTargetPaths"/>

<!-- This target builds the generated WorkerExtension.csproj. Does not run for design time builds or if extension project is externally provided. -->
<Target Name="_FunctionsInnerBuild"
Condition="'$(_FunctionsBuildEnabled)' == 'true'"
AfterTargets="CoreCompile"
DependsOnTargets="_WorkerExtensionsRestore;_WorkerExtensionsBuild" />

Expand Down
4 changes: 2 additions & 2 deletions sdk/release_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
- My change description (#PR/#issue)
-->

### Microsoft.Azure.Functions.Worker.Sdk 2.0.4
### Microsoft.Azure.Functions.Worker.Sdk 2.0.5

- Address issue with `dotnet publish --no-build` producing an error. (#3068)
- Address issue with design time build producing an error when project had not yet been built yet. (#3081)

### Microsoft.Azure.Functions.Worker.Sdk.Generators <version>

Expand Down