File tree Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 1
1
<Project >
2
2
3
+ <PropertyGroup Condition =" '$(MinorVersionPrefix)' == ''" >
4
+ <MinorVersionPrefix Condition =" '$(TargetFramework)' == 'net6.0'" >6</MinorVersionPrefix >
5
+ <MinorVersionPrefix Condition =" '$(TargetFramework)' == 'net8.0'" >8</MinorVersionPrefix >
6
+ </PropertyGroup >
7
+
3
8
<!--
4
9
Import the first 'Directory.Version.props' seen from project being built up.
5
10
This allows each directory cone to set its own versioning at the time this file needs it set.
24
29
<AssemblyVersion >$(VersionPrefix.Substring(0, $(VersionPrefix.LastIndexOf('.')))).0.0</AssemblyVersion >
25
30
</PropertyGroup >
26
31
27
- <PropertyGroup Condition =" '$(CI)' != 'true'" >
28
- <!-- Constant file version for local dev. -->
29
- <FileVersion >42.42.42.4242</FileVersion >
30
- </PropertyGroup >
31
-
32
- <PropertyGroup Condition =" '$(CI)' == 'true'" >
33
- <FileVersion >$(VersionPrefix).$(BuildNumber)</FileVersion >
32
+ <PropertyGroup >
33
+ <FileVersion Condition =" '$(CI)' != 'true'" >42.42.42.4242</FileVersion > <!-- Constant file version for local dev. -->
34
+ <FileVersion Condition =" '$(CI)' == 'true'" >$(VersionPrefix).$(BuildNumber)</FileVersion >
34
35
</PropertyGroup >
35
36
36
37
</Project >
Original file line number Diff line number Diff line change 14
14
<Version >$(VersionPrefix)-$(VersionSuffix)</Version >
15
15
</PropertyGroup >
16
16
17
+ <PropertyGroup Condition =" '$(MinorVersionPrefix)' != ''" >
18
+ <!-- Removing MinorVersionPrefix from the package version. -->
19
+ <!-- NOTE: this relies on minor version being 1 digit. -->
20
+ <PackageVersion >$(Version.Remove(2, $(MinorVersionPrefix.Length)))</PackageVersion >
21
+ </PropertyGroup >
22
+
17
23
<!-- When building in Azure pipelines, update the build number. -->
18
24
<!-- Specifically use '$(TF_BUILD)' and not '$(CI)' to ensure we are in Azure pipelines. -->
19
25
<Target Name =" UpdateAzDoBuildNumber" Condition =" '$(TF_BUILD)' == 'true' AND '$(UpdateBuildNumber)' == 'true'" BeforeTargets =" BeforeBuild" >
Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<TargetFrameworks >net8.0;net6.0</TargetFrameworks >
5
- <PackageId >Microsoft.Azure.WebJobs.Script.Grpc</PackageId >
6
5
<AssemblyName >Microsoft.Azure.WebJobs.Script.Grpc</AssemblyName >
7
- <RootNamespace >Microsoft.Azure.WebJobs.Script.Grpc</ RootNamespace >
6
+ <PackageId >$(AssemblyName).InProc</ PackageId >
8
7
<Ext Condition =" '$(OS)' == 'Windows_NT'" >bat</Ext >
9
8
<Ext Condition =" '$(OS)' != 'Windows_NT'" >sh</Ext >
10
9
</PropertyGroup >
Original file line number Diff line number Diff line change 3
3
<PropertyGroup >
4
4
<TargetFrameworks >net8.0;net6.0</TargetFrameworks >
5
5
<AssemblyName >Microsoft.Azure.WebJobs.Script.WebHost</AssemblyName >
6
- <RootNamespace >Microsoft.Azure.WebJobs.Script.WebHost</RootNamespace >
7
- <PackageId >Microsoft.Azure.WebJobs.Script.WebHost.InProc</PackageId >
6
+ <PackageId >$(AssemblyName).InProc</PackageId >
8
7
<AspNetCoreHostingModel >InProcess</AspNetCoreHostingModel >
9
8
<TieredCompilation >false</TieredCompilation >
10
9
<NoWarn >NU5104</NoWarn >
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
<PropertyGroup >
3
3
<TargetFrameworks >net6.0;net8.0</TargetFrameworks >
4
- <PackageId >Microsoft.Azure.WebJobs.Script</PackageId >
5
4
<AssemblyName >Microsoft.Azure.WebJobs.Script</AssemblyName >
6
- <RootNamespace >Microsoft.Azure.WebJobs.Script</ RootNamespace >
5
+ <PackageId >$(AssemblyName).InProc</ PackageId >
7
6
<NoWarn >NU5104</NoWarn >
8
7
</PropertyGroup >
9
8
<ItemGroup >
You can’t perform that action at this time.
0 commit comments