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 11<Project >
22
3+ <PropertyGroup Condition =" '$(MinorVersionPrefix)' == ''" >
4+ <MinorVersionPrefix Condition =" '$(TargetFramework)' == 'net6.0'" >6</MinorVersionPrefix >
5+ <MinorVersionPrefix Condition =" '$(TargetFramework)' == 'net8.0'" >8</MinorVersionPrefix >
6+ </PropertyGroup >
7+
38 <!--
49 Import the first 'Directory.Version.props' seen from project being built up.
510 This allows each directory cone to set its own versioning at the time this file needs it set.
2429 <AssemblyVersion >$(VersionPrefix.Substring(0, $(VersionPrefix.LastIndexOf('.')))).0.0</AssemblyVersion >
2530 </PropertyGroup >
2631
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 >
3435 </PropertyGroup >
3536
3637</Project >
Original file line number Diff line number Diff line change 1414 <Version >$(VersionPrefix)-$(VersionSuffix)</Version >
1515 </PropertyGroup >
1616
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+
1723 <!-- When building in Azure pipelines, update the build number. -->
1824 <!-- Specifically use '$(TF_BUILD)' and not '$(CI)' to ensure we are in Azure pipelines. -->
1925 <Target Name =" UpdateAzDoBuildNumber" Condition =" '$(TF_BUILD)' == 'true' AND '$(UpdateBuildNumber)' == 'true'" BeforeTargets =" BeforeBuild" >
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFrameworks >net8.0;net6.0</TargetFrameworks >
5- <PackageId >Microsoft.Azure.WebJobs.Script.Grpc</PackageId >
65 <AssemblyName >Microsoft.Azure.WebJobs.Script.Grpc</AssemblyName >
7- <RootNamespace >Microsoft.Azure.WebJobs.Script.Grpc</ RootNamespace >
6+ <PackageId >$(AssemblyName).InProc</ PackageId >
87 <Ext Condition =" '$(OS)' == 'Windows_NT'" >bat</Ext >
98 <Ext Condition =" '$(OS)' != 'Windows_NT'" >sh</Ext >
109 </PropertyGroup >
Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <TargetFrameworks >net8.0;net6.0</TargetFrameworks >
55 <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 >
87 <AspNetCoreHostingModel >InProcess</AspNetCoreHostingModel >
98 <TieredCompilation >false</TieredCompilation >
109 <NoWarn >NU5104</NoWarn >
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22 <PropertyGroup >
33 <TargetFrameworks >net6.0;net8.0</TargetFrameworks >
4- <PackageId >Microsoft.Azure.WebJobs.Script</PackageId >
54 <AssemblyName >Microsoft.Azure.WebJobs.Script</AssemblyName >
6- <RootNamespace >Microsoft.Azure.WebJobs.Script</ RootNamespace >
5+ <PackageId >$(AssemblyName).InProc</ PackageId >
76 <NoWarn >NU5104</NoWarn >
87 </PropertyGroup >
98 <ItemGroup >
You can’t perform that action at this time.
0 commit comments