Skip to content

Commit

Permalink
Fix EOL in C# project files (#109) (valkey-io#1032)
Browse files Browse the repository at this point in the history
* Fix EOL in C# project files (#109)

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand authored and cyip10 committed Jun 24, 2024
1 parent 5b790cf commit 9234035
Show file tree
Hide file tree
Showing 7 changed files with 474 additions and 478 deletions.
386 changes: 14 additions & 372 deletions .editorconfig

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions benchmarks/csharp/.editorconfig
41 changes: 21 additions & 20 deletions benchmarks/csharp/csharp_benchmark.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\..\csharp\lib\glide.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="LinqStatistics" Version="2.3.0" />
<PackageReference Include="StackExchange.Redis" Version="2.6.48" />
</ItemGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\..\csharp\lib\glide.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="LinqStatistics" Version="2.3.0" />
<PackageReference Include="StackExchange.Redis" Version="2.6.48" />
</ItemGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>

</Project>
351 changes: 351 additions & 0 deletions csharp/.editorconfig

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions csharp/csharp.sln
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "glide", "lib\glide.csproj", "{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tests", "tests\tests.csproj", "{B5A73329-1C34-4D33-8013-D030983A59FF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csharp_benchmark", "..\benchmarks\csharp\csharp_benchmark.csproj", "{C62D5809-3059-4633-A267-31B402FCBFDA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}.Release|Any CPU.Build.0 = Release|Any CPU
{B5A73329-1C34-4D33-8013-D030983A59FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5A73329-1C34-4D33-8013-D030983A59FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5A73329-1C34-4D33-8013-D030983A59FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5A73329-1C34-4D33-8013-D030983A59FF}.Release|Any CPU.Build.0 = Release|Any CPU
{C62D5809-3059-4633-A267-31B402FCBFDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C62D5809-3059-4633-A267-31B402FCBFDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C62D5809-3059-4633-A267-31B402FCBFDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C62D5809-3059-4633-A267-31B402FCBFDA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "glide", "lib\glide.csproj", "{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tests", "tests\tests.csproj", "{B5A73329-1C34-4D33-8013-D030983A59FF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "csharp_benchmark", "..\benchmarks\csharp\csharp_benchmark.csproj", "{C62D5809-3059-4633-A267-31B402FCBFDA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32EC49AD-EB2E-4B07-8644-E56E4EC517BD}.Release|Any CPU.Build.0 = Release|Any CPU
{B5A73329-1C34-4D33-8013-D030983A59FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B5A73329-1C34-4D33-8013-D030983A59FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B5A73329-1C34-4D33-8013-D030983A59FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B5A73329-1C34-4D33-8013-D030983A59FF}.Release|Any CPU.Build.0 = Release|Any CPU
{C62D5809-3059-4633-A267-31B402FCBFDA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C62D5809-3059-4633-A267-31B402FCBFDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C62D5809-3059-4633-A267-31B402FCBFDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C62D5809-3059-4633-A267-31B402FCBFDA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
59 changes: 30 additions & 29 deletions csharp/lib/glide.csproj
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<RootNamespace>Glide</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="cargo build --release" />
</Target>

<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)target/release/libglide_rs.dll" Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(FileName)%(Extension)</Link>
</Content>
<Content Include="$(MSBuildThisFileDirectory)target/release/libglide_rs.so" Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(FileName)%(Extension)</Link>
</Content>
<Content Include="$(MSBuildThisFileDirectory)target/release/libglide_rs.dylib" Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(FileName)%(Extension)</Link>
</Content>
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<RootNamespace>Glide</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
</PropertyGroup>

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="cargo build --release" />
</Target>

<ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)target/release/libglide_rs.dll" Condition="$([MSBuild]::IsOSPlatform('Windows'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(FileName)%(Extension)</Link>
</Content>
<Content Include="$(MSBuildThisFileDirectory)target/release/libglide_rs.so" Condition="$([MSBuild]::IsOSPlatform('Linux'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(FileName)%(Extension)</Link>
</Content>
<Content Include="$(MSBuildThisFileDirectory)target/release/libglide_rs.dylib" Condition="$([MSBuild]::IsOSPlatform('OSX'))">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(FileName)%(Extension)</Link>
</Content>
</ItemGroup>

</Project>
46 changes: 23 additions & 23 deletions csharp/tests/tests.csproj
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\lib\glide.csproj" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\lib\glide.csproj" />
</ItemGroup>

</Project>

0 comments on commit 9234035

Please sign in to comment.