Skip to content

Commit

Permalink
Change default settings & project configurations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuai Zhang committed Dec 20, 2019
1 parent 1e40573 commit 02aa307
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>True</PublishSingleFile>
<PublishReadyToRun>True</PublishReadyToRun>
<PublishSingleFile>False</PublishSingleFile>
<PublishReadyToRun>False</PublishReadyToRun>
<PublishTrimmed>False</PublishTrimmed>
</PropertyGroup>

Expand Down Expand Up @@ -38,25 +38,28 @@
<PackageReference Include="Serilog.Sinks.File" Version="4.1.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Condition="'$(Configuration)' != 'Release'" Include="..\GeothermalResearchInstitute.FakePlcV2\GeothermalResearchInstitute.FakePlcV2.csproj" />
<Compile Condition="'$(Configuration)' == 'Release'" Remove="FakeDevicesHostedService.cs" />
</ItemGroup>

<ItemGroup>
<None Update="appsettings.ini">
<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<ProjectReference Include="..\GeothermalResearchInstitute.FakePlcV2\GeothermalResearchInstitute.FakePlcV2.csproj" />
<None Update="appsettings.Development.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
<None Update="appsettings.Production.ini">
<None Update="appsettings.Staging.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
<None Condition="'$(Configuration)' == 'Debug'" Update="appsettings.Development.ini">
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Release'">
<Compile Remove="FakeDevicesHostedService.cs" />
</ItemGroup>

<ItemGroup>
<None Update="appsettings.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
<None Condition="'$(Configuration)' == 'Debug'" Update="appsettings.Staging.ini">
<None Update="appsettings.Production.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ TcpPort = 8889
DefaultReadTimeoutMillis = 5000

[tasks]
; 1 second
CollectAlarmIntervalMillis = 1000
; 1 minute
CollectAlarmIntervalMillis = 60000

; 10 minutes
CollectMetricIntervalMillis = 600000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<DebugType>Full</DebugType>
<DebugSymbols>True</DebugSymbols>
</PropertyGroup>

<ItemGroup>
<PackageReference Condition="'$(Configuration)' != 'Release'" Include="Grpc.Core.Testing" Version="2.25.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Ini" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.0.0" />
Expand All @@ -34,12 +34,30 @@
<PackageReference Include="Unity.Container" Version="5.11.4" />
<PackageReference Include="Unity.Microsoft.DependencyInjection" Version="5.11.5" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\GrpcLoggerAdapater\GrpcLoggerAdapater\GrpcLoggerAdapater.csproj" />
<ProjectReference Include="..\..\third_party\ExtendedWPFToolkit\Xceed.Wpf.Toolkit\Xceed.Wpf.Toolkit.csproj" />
<ProjectReference Include="..\GeothermalResearchInstitute.Grpc\GeothermalResearchInstitute.Grpc.csproj" />
<ProjectReference Include="..\GeothermalResearchInstitute.PlcV2\GeothermalResearchInstitute.PlcV2.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Debug'">
<PackageReference Include="Grpc.Core.Testing" Version="2.25.0" />
<None Update="appsettings.Development.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
<None Update="appsettings.Staging.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
</ItemGroup>

<ItemGroup Condition="'$(Configuration)' == 'Release'">
<Compile Remove="FakeClients\**" />
</ItemGroup>

<ItemGroup>
<None Remove="Resources\device.png" />
<Resource Include="Resources\device.png" />
Expand All @@ -52,6 +70,7 @@
<None Remove="Resources\logo.png" />
<Resource Include="Resources\logo.png" />
</ItemGroup>

<ItemGroup>
<None Update="appsettings.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand All @@ -61,16 +80,5 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
<None Condition="'$(Configuration)' == 'Debug'" Update="appsettings.Development.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
<None Condition="'$(Configuration)' == 'Debug'" Update="appsettings.Staging.ini">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
</ItemGroup>
<ItemGroup>
<Compile Condition="'$(Configuration)' == 'Release'" Remove="FakeClients\**" />
</ItemGroup>
</Project>

0 comments on commit 02aa307

Please sign in to comment.