|
4 | 4 | <Kiota_MinLangVersion>7.3</Kiota_MinLangVersion> |
5 | 5 | <Kiota_AuthPackageVersion>1.21.2</Kiota_AuthPackageVersion> |
6 | 6 | <Kiota_BundlePackageVersion>1.21.2</Kiota_BundlePackageVersion> |
| 7 | + |
| 8 | + <Kiota_LangVersionError>The Advanced Compiler Services for .NET library requires C# $(Kiota_MinLangVersion) or later.</Kiota_LangVersionError> |
| 9 | + <Kiota_TargetFrameworkError>The Advanced Compiler Services for .NET library supports only netstandard2.0, netstandard2.1, net462, and net8.0 or later.</Kiota_TargetFrameworkError> |
7 | 10 | </PropertyGroup> |
8 | 11 |
|
9 | 12 | <!--<Target Name="Kiota_EnsureDependencies" BeforeTargets="CollectPackageReferences"> |
|
30 | 33 | <Error |
31 | 34 | Condition="'$(LangVersion)' == ''" |
32 | 35 | Code="KG1001" |
33 | | - Text="Riverside Kiota requires C# LangVersion 7.3 or later. Set <LangVersion>7.3</LangVersion> or newer." /> |
| 36 | + Text="$(Kiota_LangVersionError) Set <LangVersion>7.3</LangVersion> or newer." /> |
34 | 37 |
|
35 | 38 | <Error |
36 | 39 | Condition=" |
|
41 | 44 | and $([System.Text.RegularExpressions.Regex]::IsMatch('$(LangVersion)', '^[0-9]+(\.[0-9]+)?$')) |
42 | 45 | and !$([MSBuild]::VersionGreaterThanOrEquals('$(LangVersion)', '$(Kiota_MinLangVersion)'))" |
43 | 46 | Code="KG1002" |
44 | | - Text="The Advanced Compiler Services for .NET library requires C# 7.3 or later. The current language version is '$(LangVersion)'." /> |
| 47 | + Text="$(Kiota_LangVersionError) The current language version is '$(LangVersion)'." /> |
45 | 48 |
|
46 | 49 | <Error |
47 | 50 | Condition=" |
|
51 | 54 | and !($([System.String]::Copy('$(LangVersion)').Equals('preview', System.StringComparison.OrdinalIgnoreCase))) |
52 | 55 | and !$([System.Text.RegularExpressions.Regex]::IsMatch('$(LangVersion)', '^[0-9]+(\.[0-9]+)?$'))" |
53 | 56 | Code="KG1003" |
54 | | - Text="The Advanced Compiler Services for .NET library requires C# 7.3 or later. Unsupported LangVersion value '$(LangVersion)'." /> |
| 57 | + Text="$(Kiota_LangVersionError) Unsupported LangVersion value '$(LangVersion)'." /> |
55 | 58 |
|
56 | 59 | <Error |
57 | 60 | Condition="'@(_Kiota_InvalidFramework)' != ''" |
58 | 61 | Code="KG1004" |
59 | | - Text="The Advanced Compiler Services for .NET library supports only netstandard2.0, netstandard2.1, net462, and net8.0 or later. Invalid target framework(s): @(_Kiota_InvalidFramework, ', ')." /> |
| 62 | + Text="$(Kiota_TargetFrameworkError) Invalid target framework(s): @(_Kiota_InvalidFramework, ', ')." /> |
60 | 63 |
|
61 | 64 | <Warning |
62 | 65 | Condition="'$(Nullable)' == '' or $([System.String]::Copy('$(Nullable)').Equals('disable', System.StringComparison.OrdinalIgnoreCase))" |
|
0 commit comments