Skip to content

Commit 7aa42b8

Browse files
committed
Get rid of nuspec and other clean up items
1 parent 095d33b commit 7aa42b8

9 files changed

+24
-48
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
bin
22
obj
33
out
4+
nupkg
45
csx
56
.vs
67
edge
@@ -28,6 +29,7 @@ artifacts/
2829
/src/Azure.Functions.Cli/Properties/launchSettings.json
2930
launchSettings.json
3031
publish-env
32+
*.binlog
3133

3234
# MacOS related
3335
.DS_Store

Directory.Build.props

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<ArtifactsPublishOutputName>pub</ArtifactsPublishOutputName>
1313
<ArtifactsPackageOutputName>pkg</ArtifactsPackageOutputName>
1414
<IsPackable>false</IsPackable>
15-
<PackageOutputPath>$(RepoRoot)nupkg/</PackageOutputPath>
1615
</PropertyGroup>
1716

1817
<Import Project="$(RepoEngRoot)Directory.Build.Common.props" />

build/BuildSteps.cs

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ private static void ExecuteDotnetPublish(string outputPath, string rid, string t
134134
Shell.Run("dotnet", $"publish {Settings.ProjectFile} " +
135135
$"/p:BuildNumber=\"{Settings.BuildNumber}\" " +
136136
$"/p:CommitHash=\"{Settings.CommitId}\" " +
137+
$"/p:ContinuousIntegrationBuild=\"true\" " +
137138
(string.IsNullOrEmpty(Settings.IntegrationBuildNumber) ? string.Empty : $"/p:IntegrationBuildNumber=\"{Settings.IntegrationBuildNumber}\" ") +
138139
$"-o {outputPath} -c Release -f {targetFramework} --self-contained" +
139140
(string.IsNullOrEmpty(rid) ? string.Empty : $" -r {rid}"));

eng/Directory.Build.Common.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
<Authors>Microsoft</Authors>
1212
<Title>Azure Functions CLI</Title>
1313
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
14-
<PackageLicenseUrl>http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm</PackageLicenseUrl>
1514
<RepositoryUrl>https://github.com/Azure/azure-functions-core-tools</RepositoryUrl>
1615
<RepositoryType>git</RepositoryType>
1716
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
@@ -25,7 +24,8 @@
2524
<NoWarn>$(NoWarn);NU1507</NoWarn>
2625
</PropertyGroup>
2726

28-
<!-- enable this in a new PR and fix all warnings-->
27+
<!-- uncomment this in a new PR and fix all errors -->
28+
<!-- https://github.com/Azure/azure-functions-core-tools/issues/4320 -->
2929
<!-- <PropertyGroup>
3030
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3131
</PropertyGroup> -->

eng/Directory.Packages.props

-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
</ItemGroup>
4848

4949
<!-- test projects -->
50-
<!-- <ItemGroup Condition="'$(IsTestProject)' == 'true'">
51-
-->
5250
<ItemGroup>
5351
<PackageVersion Include="Azure.Data.Tables" Version="12.9.0" />
5452
<PackageVersion Include="Azure.Storage.Blobs" Version="12.21.2" />

src/Cli/func/Azure.Functions.Cli.csproj

+17-16
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,29 @@
44
<AssemblyName>func</AssemblyName>
55
<RuntimeIdentifiers>win-x64;win-x86;win-arm64;linux-x64;osx-x64;osx-arm64</RuntimeIdentifiers>
66
<Nullable>disable</Nullable>
7+
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
78
</PropertyGroup>
89

910
<PropertyGroup>
10-
<CommitHash Condition="$(CommitHash) == ''">N/A</CommitHash>
11-
<IntegrationBuildNumberInfo Condition="$(IntegrationBuildNumber) != ''">Integration build number: $(IntegrationBuildNumber)</IntegrationBuildNumberInfo>
12-
<InformationalVersion>$(FileVersion) Commit hash: $(CommitHash) $(IntegrationBuildNumberInfo)</InformationalVersion>
13-
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
14-
<NuspecFile>Azure.Functions.Cli.nuspec</NuspecFile>
15-
<NuspecProperties>ßconfiguration=$(Configuration);targetFramework=$(TargetFramework);version=$(Version)</NuspecProperties>
11+
<PackAsTool>true</PackAsTool>
12+
<ToolCommandName>func</ToolCommandName>
1613
<PackageId>Microsoft.Azure.Functions.CoreTools</PackageId>
1714
</PropertyGroup>
1815

16+
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-x64' OR '$(RuntimeIdentifier)' == 'win-x86'">
17+
<PublishReadyToRun>false</PublishReadyToRun>
18+
<PublishReadyToRunShowWarnings>false</PublishReadyToRunShowWarnings>
19+
</PropertyGroup>
20+
1921
<PropertyGroup>
2022
<BuildNumber Condition=" '$(BuildNumber)' == '' ">1</BuildNumber>
2123
<MajorMinorProductVersion>4.0</MajorMinorProductVersion>
2224
<Version>$(MajorMinorProductVersion).$(BuildNumber)</Version>
2325
<AssemblyVersion>$(MajorMinorProductVersion).$(BuildNumber)</AssemblyVersion>
2426
<FileVersion>$(MajorMinorProductVersion).$(BuildNumber)</FileVersion>
25-
</PropertyGroup>
26-
27-
<PropertyGroup>
28-
<PackAsTool>true</PackAsTool>
29-
<ToolCommandName>func</ToolCommandName>
30-
</PropertyGroup>
31-
32-
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'win-x64' OR '$(RuntimeIdentifier)' == 'win-x86'">
33-
<PublishReadyToRun>false</PublishReadyToRun>
34-
<PublishReadyToRunShowWarnings>false</PublishReadyToRunShowWarnings>
27+
<CommitHash Condition="$(CommitHash) == ''">N/A</CommitHash>
28+
<IntegrationBuildNumberInfo Condition="$(IntegrationBuildNumber) != ''">Integration build number: $(IntegrationBuildNumber)</IntegrationBuildNumberInfo>
29+
<InformationalVersion>$(FileVersion) Commit hash: $(CommitHash) $(IntegrationBuildNumberInfo)</InformationalVersion>
3530
</PropertyGroup>
3631

3732
<ItemGroup>
@@ -299,6 +294,12 @@
299294
<PackageReference Include="Microsoft.Azure.Functions.PythonWorker" />
300295
</ItemGroup>
301296

297+
<ItemGroup>
298+
<None Include="$(RepoRoot)out\pub\Azure.Functions.Cli\$(Configuration)_$(TargetFramework)\tools\python\packapp\__main__.py" Pack="true" PackagePath="content" />
299+
<None Include="$(RepoRoot)out\pub\Azure.Functions.Cli\$(Configuration)_$(TargetFramework)\tools\python\packapp\__main__.py" Pack="true" PackagePath="contentFiles/any/$(TargetFramework)" />
300+
<None Include="$(RepoRoot)out\pub\Azure.Functions.Cli\$(Configuration)_$(TargetFramework)\**\*" Pack="true" PackagePath="tools/$(TargetFramework)/any" />
301+
</ItemGroup>
302+
302303
<Target Name="ExcludeWorkersFromReadyToRun">
303304
<CreateItem Include="%(None.Filename)%(None.Extension)"
304305
Condition="$([System.String]::new('%(None.TargetPath)').StartsWith('workers'))"

src/Cli/func/Azure.Functions.Cli.nuspec

-26
This file was deleted.

src/CoreToolsHost/CoreToolsHost.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<CETCompat>false</CETCompat>
1313
<OptimizationPreference>Speed</OptimizationPreference>
1414
<AssemblyName>func</AssemblyName>
15-
<IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints>
15+
<IlcExportUnmanagedEntrypoints>true</IlcExportUnmanagedEntrypoints>
1616
</PropertyGroup>
1717

1818
<PropertyGroup>

src/Directory.Build.props

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33

44
<PropertyGroup>
55
<IsPackable>true</IsPackable>
6+
<PackageOutputPath>$(RepoRoot)nupkg</PackageOutputPath>
67
</PropertyGroup>
78
</Project>

0 commit comments

Comments
 (0)