|
| 1 | +<Project Sdk="Microsoft.NET.Sdk"> |
| 2 | + |
| 3 | + <PropertyGroup> |
| 4 | + <TargetFramework>netstandard2.0</TargetFramework> |
| 5 | + <Description>Azure Functions SDK for dotnet-isolated workers.</Description> |
| 6 | + <PackageTags>Azure Functions Dotnet Dotnet-Isolated</PackageTags> |
| 7 | + <PackageType>MSBuildSdk</PackageType> |
| 8 | + <BuildOutputTargetFolder>tools</BuildOutputTargetFolder> |
| 9 | + <DevelopmentDependency>true</DevelopmentDependency> |
| 10 | + <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> |
| 11 | + <VersionPrefix>0.1.0</VersionPrefix> |
| 12 | + </PropertyGroup> |
| 13 | + |
| 14 | + <ItemGroup> |
| 15 | + <PackageReference Include="Microsoft.Build.Utilities.Core" Version="17.11.4" ExcludeAssets="Runtime" /> |
| 16 | + </ItemGroup> |
| 17 | + |
| 18 | + <ItemGroup> |
| 19 | + <None Include="**/*.props;**/*.targets" Pack="true" CamelCasePath="true" /> |
| 20 | + </ItemGroup> |
| 21 | + |
| 22 | + <Target Name="_AddPackagePath" BeforeTargets="_GetPackageFiles"> |
| 23 | + <ItemGroup> |
| 24 | + <!-- Convert these file paths to camel case, which is the nuget package convention. --> |
| 25 | + <!-- This way we can keep our folders pascal case on disk for consistency. --> |
| 26 | + <None Update="@(None)" |
| 27 | + PackagePath="$([System.String]::new('%(RecursiveDir)').Substring(0, 1).ToLowerInvariant())$([System.String]::new('%(RecursiveDir)').Substring(1))%(Filename)%(Extension)" |
| 28 | + Condition="'%(None.CamelCasePath)' == 'true'" /> |
| 29 | + </ItemGroup> |
| 30 | + </Target> |
| 31 | + |
| 32 | + <Target Name="IncludeReferenceCopyLocalPathsInBuildOutputInPackage" |
| 33 | + BeforeTargets="_GetBuildOutputFilesWithTfm" |
| 34 | + DependsOnTargets="ResolveReferences;ResolvePackageDependenciesForBuild"> |
| 35 | + <ItemGroup> |
| 36 | + <BuildOutputInPackage Include="@(RuntimeCopyLocalItems->WithMetadataValue('AssetType', 'runtime'))" |
| 37 | + TargetPath="%(RuntimeCopyLocalItems.DestinationSubDirectory)%(Filename)%(Extension)" /> |
| 38 | + <BuildOutputInPackage Include="@(RuntimeCopyLocalItems->WithMetadataValue('CopyLocal', 'true'))" |
| 39 | + TargetPath="%(RuntimeCopyLocalItems.DestinationSubDirectory)%(Filename)%(Extension)" /> |
| 40 | + </ItemGroup> |
| 41 | + </Target> |
| 42 | + |
| 43 | +</Project> |
0 commit comments