Fix generatedBy version and up to 1.0.12
This commit is contained in:
Родитель
5567b7ccf3
Коммит
cb60645173
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.0;net46</TargetFrameworks>
|
||||
<PackageName>Microsoft.NET.Sdk.Functions</PackageName>
|
||||
<PackageVersion>1.0.11</PackageVersion>
|
||||
<Version>1.0.12</Version>
|
||||
<Authors>Microsoft</Authors>
|
||||
<ProjectUrl>https://github.com/Azure/azure-functions-vs-build-sdk</ProjectUrl>
|
||||
<PackageProjectUrl>https://github.com/Azure/azure-functions-vs-build-sdk</PackageProjectUrl>
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
using System.Reflection;
|
||||
|
||||
namespace Microsoft.NET.Sdk.Functions
|
||||
{
|
||||
public static class PackageVersionHelper
|
||||
{
|
||||
public static string Name => typeof(PackageVersionHelper).GetTypeInfo().Assembly.GetName().Name;
|
||||
|
||||
public static string Version => typeof(PackageVersionHelper).GetTypeInfo().Assembly.GetName().Version.ToString(3);
|
||||
}
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
using System.Collections.Generic;
|
||||
using Microsoft.NET.Sdk.Functions;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Reflection;
|
||||
|
||||
namespace MakeFunctionJson
|
||||
{
|
||||
|
@ -23,6 +23,6 @@ namespace MakeFunctionJson
|
|||
public const string ConfigurationSource = "attributes";
|
||||
|
||||
[JsonProperty("generatedBy")]
|
||||
public readonly string GeneratedBy = $"{typeof(FunctionJsonSchema).GetTypeInfo().Assembly.GetName().Name}-{typeof(FunctionJsonSchema).GetTypeInfo().Assembly.GetName().Version}";
|
||||
public readonly string GeneratedBy = $"{PackageVersionHelper.Name}-{PackageVersionHelper.Version}";
|
||||
}
|
||||
}
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\pack\Microsoft.NET.Sdk.Functions\Microsoft.NET.Sdk.Functions.csproj" />
|
||||
<ProjectReference Include="..\Microsoft.NET.Sdk.Functions.NETStandard\Microsoft.NET.Sdk.Functions.NETStandard.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче