|
1 | 1 | <Project Sdk="Microsoft.NET.Sdk" InitialTargets="ExcludeWorkersFromReadyToRun">
|
2 | 2 | <PropertyGroup>
|
3 | 3 | <OutputType>Exe</OutputType>
|
4 |
| - <TargetFrameworks>net8.0</TargetFrameworks> |
5 | 4 | <AssemblyName>func</AssemblyName>
|
6 | 5 | <RuntimeIdentifiers>win-x64;win-x86;win-arm64;linux-x64;osx-x64;osx-arm64</RuntimeIdentifiers>
|
7 |
| - <BuildNumber Condition=" '$(BuildNumber)' == '' ">1</BuildNumber> |
8 |
| - <MajorMinorProductVersion>4.0</MajorMinorProductVersion> |
9 |
| - <Version>$(MajorMinorProductVersion).$(BuildNumber)</Version> |
10 |
| - <AssemblyVersion>$(MajorMinorProductVersion).$(BuildNumber)</AssemblyVersion> |
11 |
| - <FileVersion>$(MajorMinorProductVersion).$(BuildNumber)</FileVersion> |
| 6 | + <Nullable>disable</Nullable> |
| 7 | + </PropertyGroup> |
| 8 | + |
| 9 | + <PropertyGroup> |
12 | 10 | <CommitHash Condition="$(CommitHash) == ''">N/A</CommitHash>
|
13 | 11 | <IntegrationBuildNumberInfo Condition="$(IntegrationBuildNumber) != ''">Integration build number: $(IntegrationBuildNumber)</IntegrationBuildNumberInfo>
|
14 | 12 | <InformationalVersion>$(FileVersion) Commit hash: $(CommitHash) $(IntegrationBuildNumberInfo)</InformationalVersion>
|
15 |
| - <Company>Microsoft</Company> |
16 |
| - <Authors>Microsoft</Authors> |
17 |
| - <Title>Azure Functions Cli</Title> |
18 |
| - <Copyright>? .NET Foundation. All rights reserved.</Copyright> |
19 |
| - <PackageLicenseUrl>http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm</PackageLicenseUrl> |
20 |
| - <RepositoryUrl>https://github.com/Azure/azure-functions-cli</RepositoryUrl> |
21 |
| - <RepositoryType>git</RepositoryType> |
22 |
| - <ApplicationIcon>AzureFunctions-CLI.ico</ApplicationIcon> |
23 |
| - <GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute> |
24 |
| - <PackageId>Microsoft.Azure.Functions.CoreTools</PackageId> |
25 |
| - <PackageOutputPath>./nupkg</PackageOutputPath> |
26 | 13 | <DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
|
27 | 14 | <NuspecFile>Azure.Functions.Cli.nuspec</NuspecFile>
|
28 |
| - <NuspecProperties>configuration=$(Configuration);targetFramework=$(TargetFramework);version=$(Version)</NuspecProperties> |
| 15 | + <NuspecProperties>ßconfiguration=$(Configuration);targetFramework=$(TargetFramework);version=$(Version)</NuspecProperties> |
| 16 | + <PackageId>Microsoft.Azure.Functions.CoreTools</PackageId> |
| 17 | + </PropertyGroup> |
| 18 | + |
| 19 | + <PropertyGroup> |
| 20 | + <BuildNumber Condition=" '$(BuildNumber)' == '' ">1</BuildNumber> |
| 21 | + <MajorMinorProductVersion>4.0</MajorMinorProductVersion> |
| 22 | + <Version>$(MajorMinorProductVersion).$(BuildNumber)</Version> |
| 23 | + <AssemblyVersion>$(MajorMinorProductVersion).$(BuildNumber)</AssemblyVersion> |
| 24 | + <FileVersion>$(MajorMinorProductVersion).$(BuildNumber)</FileVersion> |
29 | 25 | </PropertyGroup>
|
| 26 | + |
30 | 27 | <PropertyGroup>
|
31 |
| - <IsPackable>true</IsPackable> |
32 | 28 | <PackAsTool>true</PackAsTool>
|
33 | 29 | <ToolCommandName>func</ToolCommandName>
|
34 | 30 | </PropertyGroup>
|
| 31 | + |
35 | 32 | <PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-x64' OR '$(RuntimeIdentifier)' == 'win-x86'">
|
36 | 33 | <PublishReadyToRun>false</PublishReadyToRun>
|
37 | 34 | <PublishReadyToRunShowWarnings>false</PublishReadyToRunShowWarnings>
|
38 | 35 | </PropertyGroup>
|
| 36 | + |
39 | 37 | <ItemGroup>
|
40 | 38 | <EmbeddedResource Include="StaticResources\stacks.json">
|
41 | 39 | <LogicalName>$(AssemblyName).stacks.json</LogicalName>
|
|
263 | 261 | <LogicalName>$(AssemblyName).getting_started_python_function.md</LogicalName>
|
264 | 262 | </EmbeddedResource>
|
265 | 263 | </ItemGroup>
|
| 264 | + |
266 | 265 | <ItemGroup>
|
267 | 266 | <Content Include="$(RepoRoot)tools\python\packapp\__main__.py">
|
268 | 267 | <Link>tools\python\packapp\__main__.py</Link>
|
269 | 268 | <CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
270 | 269 | </Content>
|
271 | 270 | </ItemGroup>
|
| 271 | + |
272 | 272 | <ItemGroup>
|
273 |
| - <PackageReference Include="Autofac" Version="4.6.2" /> |
274 |
| - <PackageReference Include="Azure.Identity" Version="1.11.4" /> |
275 |
| - <PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.7.0" /> |
276 |
| - <PackageReference Include="Colors.Net" Version="1.1.0" /> |
277 |
| - <PackageReference Include="AccentedCommandLineParser" Version="2.0.0" /> |
278 |
| - <PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" /> |
279 |
| - <PackageReference Include="Microsoft.AspNetCore.DataProtection" Version="2.2.0" /> |
280 |
| - <PackageReference Include="Microsoft.Azure.DurableTask.AzureStorage.Internal" Version="1.4.0" /> |
281 |
| - <PackageReference Include="Microsoft.Azure.WebJobs.Script.WebHost" Version="4.1037.0" /> |
282 |
| - <PackageReference Include="Microsoft.Build" Version="17.0.0" /> |
283 |
| - <PackageReference Include="Microsoft.Identity.Client" Version="4.61.3" /> |
284 |
| - <PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> |
285 |
| - <PackageReference Include="NuGet.Packaging" Version="5.11.6" /> |
286 |
| - <PackageReference Include="System.Formats.Asn1" Version="6.0.1" /> |
287 |
| - <PackageReference Include="WindowsAzure.Storage" Version="9.3.1" /> |
288 |
| - <PackageReference Include="YamlDotNet" Version="6.0.0" /> |
| 273 | + <PackageReference Include="Autofac" /> |
| 274 | + <PackageReference Include="Azure.Identity"/> |
| 275 | + <PackageReference Include="Azure.Security.KeyVault.Secrets" /> |
| 276 | + <PackageReference Include="Colors.Net" /> |
| 277 | + <PackageReference Include="AccentedCommandLineParser" /> |
| 278 | + <PackageReference Include="Microsoft.ApplicationInsights" /> |
| 279 | + <PackageReference Include="Microsoft.AspNetCore.DataProtection" /> |
| 280 | + <PackageReference Include="Microsoft.Azure.DurableTask.AzureStorage.Internal" /> |
| 281 | + <PackageReference Include="Microsoft.Azure.WebJobs.Script.WebHost" /> |
| 282 | + <PackageReference Include="Microsoft.Build" /> |
| 283 | + <PackageReference Include="Microsoft.Identity.Client" /> |
| 284 | + <PackageReference Include="Newtonsoft.Json" /> |
| 285 | + <PackageReference Include="NuGet.Packaging" /> |
| 286 | + <PackageReference Include="System.Formats.Asn1" /> |
| 287 | + <PackageReference Include="WindowsAzure.Storage" /> |
| 288 | + <PackageReference Include="YamlDotNet" /> |
289 | 289 | <!-- Transitive dependency -->
|
290 |
| - <PackageReference Include="System.Text.Json" Version="8.0.5" /> |
| 290 | + <PackageReference Include="System.Text.Json" /> |
291 | 291 | </ItemGroup>
|
| 292 | + |
292 | 293 | <ItemGroup Condition="'$(NoWorkers)' != 'true'">
|
293 |
| - <PackageReference Include="Microsoft.Azure.Functions.JavaWorker" Version="2.17.0" /> |
294 |
| - <PackageReference Include="Microsoft.Azure.Functions.NodeJsWorker" Version="3.10.1" /> |
295 |
| - <PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.0" Version="4.0.3148" /> |
296 |
| - <PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.2" Version="4.0.4025" /> |
297 |
| - <PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.4" Version="4.0.4026" /> |
298 |
| - <PackageReference Include="Microsoft.Azure.Functions.PythonWorker" Version="4.34.0" /> |
| 294 | + <PackageReference Include="Microsoft.Azure.Functions.JavaWorker" /> |
| 295 | + <PackageReference Include="Microsoft.Azure.Functions.NodeJsWorker" /> |
| 296 | + <PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.0" /> |
| 297 | + <PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.2" /> |
| 298 | + <PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.4" /> |
| 299 | + <PackageReference Include="Microsoft.Azure.Functions.PythonWorker" /> |
299 | 300 | </ItemGroup>
|
| 301 | + |
300 | 302 | <Target Name="ExcludeWorkersFromReadyToRun">
|
301 |
| - <CreateItem Include="%(None.Filename)%(None.Extension)" Condition="$([System.String]::new('%(None.TargetPath)').StartsWith('workers'))" PreserveExistingMetadata="false"> |
| 303 | + <CreateItem Include="%(None.Filename)%(None.Extension)" |
| 304 | + Condition="$([System.String]::new('%(None.TargetPath)').StartsWith('workers'))" |
| 305 | + PreserveExistingMetadata="false"> |
302 | 306 | <Output TaskParameter="Include" ItemName="PublishReadyToRunExclude" />
|
303 | 307 | </CreateItem>
|
304 | 308 | </Target>
|
|
0 commit comments