File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1111 <TargetsRoot >$(EngRoot)build/</TargetsRoot >
1212 </PropertyGroup >
1313
14+ <PropertyGroup Condition =" '$(TF_BUILD)' == 'true'" >
15+ <ContinuousIntegrationBuild >true</ContinuousIntegrationBuild >
16+ </PropertyGroup >
17+
1418</Project >
Original file line number Diff line number Diff line change 11<Project >
2+ <PropertyGroup >
3+ <_ExtensionProjectTemplate >$(MSBuildThisFileDirectory)/extensionValidationProjectTemplate.txt</_ExtensionProjectTemplate >
4+ <_ExtensionValidationLocation >$(IntermediateOutputPath)ExtensionValidation/</_ExtensionValidationLocation >
5+ </PropertyGroup >
6+
27 <Target Name =" AddWebJobsExtensionInformation" BeforeTargets =" GetAssemblyAttributes" Condition =" '@(WebJobsExtension)' != ''" >
38 <ItemGroup >
49 <_ExtensionInformationAttribute Include =" @(WebJobsExtension->'Microsoft.Azure.Functions.Worker.Extensions.Abstractions.ExtensionInformationAttribute')" >
813 <AssemblyAttribute Include =" @(_ExtensionInformationAttribute)" RemoveMetadata =" Version" />
914 </ItemGroup >
1015 </Target >
16+
17+ <Target Name =" GenerateExtensionProject" AfterTargets =" Compile" Condition =" '@(WebJobsExtension)' != '' and '$(ContinuousIntegrationBuild)' == 'true'" >
18+ <MakeDir Directories =" $(_ExtensionValidationLocation)" />
19+ <WriteLinesToFile
20+ File =" $(_ExtensionValidationLocation)ExtensionValidation.csproj"
21+ Lines =" $([System.IO.File]::ReadAllText($(_ExtensionProjectTemplate))
22+ .Replace('$PackageName$', '%(WebJobsExtension.Identity)')
23+ .Replace('$PackageVersion$', '%(WebJobsExtension.Version)'))"
24+ Overwrite =" true" />
25+ </Target >
26+
27+ <Target Name =" RestoreGeneratedExtensionProject" AfterTargets =" GenerateExtensionProject" Condition =" '@(WebJobsExtension)' != '' and '$(ContinuousIntegrationBuild)' == 'true'" >
28+ <MSBuild Projects =" $(_ExtensionValidationLocation)ExtensionValidation.csproj" Targets =" Restore" />
29+ </Target >
1130</Project >
Original file line number Diff line number Diff line change 1+ <Project Sdk="Microsoft.NET.Sdk">
2+ <PropertyGroup>
3+ <TargetFramework>net8.0</TargetFramework>
4+ <OutputType>Library</OutputType>
5+ </PropertyGroup>
6+
7+ <ItemGroup>
8+ <PackageReference Include="$PackageName$" Version="$PackageVersion$" />
9+ </ItemGroup>
10+ </Project>
You can’t perform that action at this time.
0 commit comments