Adding the Visual Studio Design time targets to the SDK (#860)

This commit is contained in:
Vijay Ramakrishnan 2022-04-21 12:25:21 -07:00 коммит произвёл GitHub
Родитель d4d4e95f04
Коммит fb8c3ddbce
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -30,6 +30,7 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
<_FunctionsExtensionsJsonName>extensions.json</_FunctionsExtensionsJsonName> <_FunctionsExtensionsJsonName>extensions.json</_FunctionsExtensionsJsonName>
<_FunctionsExtensionsFullPublish Condition="$(NoBuild) == '' And $(_FunctionsExtensionsFullPublish) == ''">True</_FunctionsExtensionsFullPublish> <_FunctionsExtensionsFullPublish Condition="$(NoBuild) == '' And $(_FunctionsExtensionsFullPublish) == ''">True</_FunctionsExtensionsFullPublish>
<_FunctionsExtensionsFullPublish Condition="$(_FunctionsExtensionsFullPublish) == ''">!$(NoBuild)</_FunctionsExtensionsFullPublish> <_FunctionsExtensionsFullPublish Condition="$(_FunctionsExtensionsFullPublish) == ''">!$(NoBuild)</_FunctionsExtensionsFullPublish>
<MSBuildFunctionsTargetsPath>$(MSBuildExtensionsPath)\Microsoft\VisualStudio\Managed.Functions\</MSBuildFunctionsTargetsPath>
</PropertyGroup> </PropertyGroup>
<UsingTask TaskName="GenerateFunctionMetadata" <UsingTask TaskName="GenerateFunctionMetadata"
@ -41,6 +42,9 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
<UsingTask TaskName="ZipDeployTask" <UsingTask TaskName="ZipDeployTask"
AssemblyFile="$(_FunctionsTaskAssemblyFullPath)"/> AssemblyFile="$(_FunctionsTaskAssemblyFullPath)"/>
<Import Project="$(MSBuildFunctionsTargetsPath)Microsoft.Azure.Functions.Designtime.targets"
Condition="Exists('$(MSBuildFunctionsTargetsPath)Microsoft.Azure.Functions.Designtime.targets')" />
<Target Name="_FunctionsPreBuild" BeforeTargets="BeforeBuild"> <Target Name="_FunctionsPreBuild" BeforeTargets="BeforeBuild">
<Message Condition="'$(_AzureFunctionsNotSet)' == 'true'" Importance="high" Text="AzureFunctionsVersion not configured in the project. Setting AzureFunctionsVersion to v3"/> <Message Condition="'$(_AzureFunctionsNotSet)' == 'true'" Importance="high" Text="AzureFunctionsVersion not configured in the project. Setting AzureFunctionsVersion to v3"/>
<Error Condition="$(AzureFunctionsVersion.StartsWith('v1',StringComparison.OrdinalIgnoreCase))" Text="AzureFunctionsVersion is set to an incompatible version, Please set it to v4"/> <Error Condition="$(AzureFunctionsVersion.StartsWith('v1',StringComparison.OrdinalIgnoreCase))" Text="AzureFunctionsVersion is set to an incompatible version, Please set it to v4"/>