File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
Apollo.ConfigurationManager Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1-
2- <Project Sdk =" Microsoft.NET.Sdk" >
1+ <Project Sdk =" Microsoft.NET.Sdk" >
32
43 <PropertyGroup >
54 <AssemblyName >Com.Ctrip.Framework.Apollo.ConfigurationManager</AssemblyName >
@@ -15,7 +14,7 @@ $(PackageReleaseNotes)</Description>
1514 <PackageTags >$(PackageTags) ConfigurationBuilder ConfigurationManager</PackageTags >
1615 <RootNamespace >Com.Ctrip.Framework.Apollo</RootNamespace >
1716 <TargetFrameworks >net471;net45;net40;netstandard2.0;netstandard2.1</TargetFrameworks >
18- <Version >$(ApolloVersion).1 </Version >
17+ <Version >$(ApolloVersion).2 </Version >
1918 </PropertyGroup >
2019
2120 <ItemGroup >
@@ -25,6 +24,10 @@ $(PackageReleaseNotes)</Description>
2524
2625 <ProjectReference Include =" ..\Apollo\Apollo.csproj" />
2726 <PackageReference Include =" System.Configuration.ConfigurationManager" Version =" 4.*" Condition =" '$(TargetFrameworkIdentifier)' == '.NETStandard'" />
27+
28+ <None Include =" $(PackageId).props" Pack =" True" PackagePath =" build/net40;build/net45" />
29+ <None Include =" bin/$(Configuration)/net471/$(AssemblyName).dll" Pack =" True" PackagePath =" build/net40;build/net45" />
30+ <None Include =" bin/$(Configuration)/net471/$(AssemblyName).pdb" Pack =" True" PackagePath =" build/net40;build/net45" />
2831 </ItemGroup >
2932
3033 <ItemGroup Condition =" '$(TargetFrameworkIdentifier)' == '.NETFramework'" >
Original file line number Diff line number Diff line change 1+ <Project >
2+
3+ <ItemGroup >
4+ <None Include =" $(MSBuildThisFileDirectory)*" Condition =" '$(UseApolloConfigurationBuilder)' == 'true'" >
5+ <Link >%(Filename)%(Extension)</Link >
6+ <CopyToOutputDirectory >Always</CopyToOutputDirectory >
7+ <Visible >False</Visible >
8+ </None >
9+ </ItemGroup >
10+
11+ </Project >
Original file line number Diff line number Diff line change @@ -290,3 +290,8 @@ ConfigUtil.UseHttpMessageHandlerFactory(() => new HttpClientHandler
290290## 5.4 如何优先使用环境变量
291291
292292配置Apollo.EnvironmentVariablePriority或者Apollo: EnvironmentVariablePriority 值为1或者true(优先从环境变量中读取)后,则Apollo配置则优先从环境变量中读取(和现在读取顺序相反)
293+
294+ ## 5.5 如果不更改framework版本的情况下使用ConfigurationBuilder
295+
296+ 1 . 运行时必须是.NET Framework 4.7.1+
297+ 2 . 在项目文件的PropertyGroup节点里添加<UseApolloConfigurationBuilder >true</UseApolloConfigurationBuilder >
You can’t perform that action at this time.
0 commit comments