Skip to content

Commit 27afe90

Browse files
authored
Merge pull request #618 from cancakar35/FixAppConfigDemoReferences
Fix Reference Issues in AppConfigDemo
2 parents 4e618c4 + 7014da2 commit 27afe90

File tree

3 files changed

+4
-70
lines changed

3 files changed

+4
-70
lines changed

.editorconfig

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,4 @@ dotnet_naming_symbols.public_constant_static_fields.required_modifiers = const,
7676
dotnet_naming_style.pascal_case.capitalization = pascal_case
7777

7878
dotnet_sort_system_directives_first = true
79-
dotnet_style_require_accessibility_modifiers = always:error
80-
79+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:error

sample/AppConfigDemo/App.config

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
<configSections>
44
<section name="MSSqlServerSettingsSection" type="Serilog.Configuration.MSSqlServerConfigurationSection, Serilog.Sinks.MSSqlServer" />
55
</configSections>
6-
<startup>
7-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
8-
</startup>
96
<MSSqlServerSettingsSection>
107

118
<BatchPostingLimit Value="13" />
+3-65
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,9 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{6BFE1D21-1442-4375-AB69-14160B906A64}</ProjectGuid>
3+
<TargetFramework>net462</TargetFramework>
84
<OutputType>Exe</OutputType>
9-
<RootNamespace>AppConfigDemo</RootNamespace>
10-
<AssemblyName>AppConfigDemo</AssemblyName>
11-
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
12-
<FileAlignment>512</FileAlignment>
13-
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14-
<Deterministic>true</Deterministic>
155
</PropertyGroup>
16-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17-
<PlatformTarget>AnyCPU</PlatformTarget>
18-
<DebugSymbols>true</DebugSymbols>
19-
<DebugType>full</DebugType>
20-
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug\</OutputPath>
22-
<DefineConstants>DEBUG;TRACE</DefineConstants>
23-
<ErrorReport>prompt</ErrorReport>
24-
<WarningLevel>4</WarningLevel>
25-
</PropertyGroup>
26-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27-
<PlatformTarget>AnyCPU</PlatformTarget>
28-
<DebugType>pdbonly</DebugType>
29-
<Optimize>true</Optimize>
30-
<OutputPath>bin\Release\</OutputPath>
31-
<DefineConstants>TRACE</DefineConstants>
32-
<ErrorReport>prompt</ErrorReport>
33-
<WarningLevel>4</WarningLevel>
34-
</PropertyGroup>
35-
<ItemGroup>
36-
<Reference Include="Microsoft.CSharp" />
37-
<Reference Include="Microsoft.Extensions.Configuration.Abstractions" />
38-
<Reference Include="Microsoft.Extensions.Primitives" />
39-
<Reference Include="mscorlib" />
40-
<Reference Include="Serilog" />
41-
<Reference Include="System" />
42-
<Reference Include="System.Buffers" />
43-
<Reference Include="System.Core" />
44-
<Reference Include="System.Data" />
45-
<Reference Include="System.Diagnostics.DiagnosticSource" />
46-
<Reference Include="System.Memory" />
47-
<Reference Include="System.Numerics" />
48-
<Reference Include="System.Numerics.Vectors" />
49-
<Reference Include="System.Runtime.CompilerServices.Unsafe" />
50-
<Reference Include="System.Threading.Channels" />
51-
<Reference Include="System.Threading.Tasks.Extensions" />
52-
<Reference Include="System.ValueTuple" />
53-
<Reference Include="System.Xml" />
54-
</ItemGroup>
55-
<ItemGroup>
56-
<Compile Include="Program.cs" />
57-
</ItemGroup>
58-
<ItemGroup>
59-
<None Include="App.config" />
60-
</ItemGroup>
61-
<ItemGroup>
62-
<ProjectReference Include="..\..\src\Serilog.Sinks.MSSqlServer\Serilog.Sinks.MSSqlServer.csproj">
63-
<Project>{803cd13a-d54b-4cec-a55f-e22ae3d93b3c}</Project>
64-
<Name>Serilog.Sinks.MSSqlServer</Name>
65-
</ProjectReference>
66-
</ItemGroup>
676
<ItemGroup>
68-
<Folder Include="Properties\" />
7+
<ProjectReference Include="..\..\src\Serilog.Sinks.MSSqlServer\Serilog.Sinks.MSSqlServer.csproj" />
698
</ItemGroup>
70-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
719
</Project>

0 commit comments

Comments
 (0)