Skip to content

Commit 4041f4d

Browse files
author
Gonzalo Diaz
committed
[REFACTOR] splitting solution in two projects
1 parent 7129473 commit 4041f4d

File tree

11 files changed

+57
-37
lines changed

11 files changed

+57
-37
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<RootNamespace>algorithm_exercises_csharp</RootNamespace>
6+
<ImplicitUsings>enable</ImplicitUsings>
7+
<Nullable>enable</Nullable>
8+
9+
<IsPackable>false</IsPackable>
10+
<IsTestProject>true</IsTestProject>
11+
12+
<SonarQubeTestProject>true</SonarQubeTestProject>
13+
14+
<!-- Coverage -->
15+
<CollectCoverage>true</CollectCoverage>
16+
<CoverletOutputFormat>lcov</CoverletOutputFormat>
17+
<CoverletOutput>./lcov.info</CoverletOutput>
18+
<IncludeTestAssembly>true</IncludeTestAssembly>
19+
20+
<!-- Static Analysis -->
21+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
22+
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
23+
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
24+
</PropertyGroup>
25+
26+
<ItemGroup>
27+
<PackageReference Include="coverlet.collector" Version="6.0.2" />
28+
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
29+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
30+
<PrivateAssets>all</PrivateAssets>
31+
</PackageReference>
32+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
33+
<PackageReference Include="MSTest.TestAdapter" Version="3.3.1" />
34+
<PackageReference Include="MSTest.TestFramework" Version="3.3.1" />
35+
</ItemGroup>
36+
37+
<ItemGroup>
38+
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
39+
</ItemGroup>
40+
41+
<ItemGroup>
42+
<ProjectReference Include="../algorithm-exercises-csharp/algorithm-exercises-csharp.csproj" />
43+
</ItemGroup>
44+
45+
</Project>

algorithm-exercises-csharp.sln

+10-4
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,26 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "algorithm-exercises-csharp", "algorithm-exercises-csharp\algorithm-exercises-csharp.csproj", "{817BA968-9A1F-4DDB-8A96-657DCA862227}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "algorithm-exercises-csharp-test", "algorithm-exercises-csharp-test\algorithm-exercises-csharp-test.csproj", "{817BA968-9A1F-4DDB-8A96-657DCA862227}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "algorithm-exercises-csharp", "algorithm-exercises-csharp\algorithm-exercises-csharp.csproj", "{B162EE62-90C6-4871-B278-390804615987}"
79
EndProject
810
Global
911
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1012
Debug|Any CPU = Debug|Any CPU
1113
Release|Any CPU = Release|Any CPU
1214
EndGlobalSection
13-
GlobalSection(SolutionProperties) = preSolution
14-
HideSolutionNode = FALSE
15-
EndGlobalSection
1615
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1716
{817BA968-9A1F-4DDB-8A96-657DCA862227}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1817
{817BA968-9A1F-4DDB-8A96-657DCA862227}.Debug|Any CPU.Build.0 = Debug|Any CPU
1918
{817BA968-9A1F-4DDB-8A96-657DCA862227}.Release|Any CPU.ActiveCfg = Release|Any CPU
2019
{817BA968-9A1F-4DDB-8A96-657DCA862227}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{B162EE62-90C6-4871-B278-390804615987}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{B162EE62-90C6-4871-B278-390804615987}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{B162EE62-90C6-4871-B278-390804615987}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{B162EE62-90C6-4871-B278-390804615987}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
2127
EndGlobalSection
2228
EndGlobal
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,10 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>net8.0</TargetFramework>
5-
<RootNamespace>algorithm_exercises_csharp</RootNamespace>
5+
<RootNamespace>algoritm_exercises_csharp_lib</RootNamespace>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>
8-
9-
<IsPackable>false</IsPackable>
10-
<IsTestProject>true</IsTestProject>
11-
12-
<SonarQubeTestProject>true</SonarQubeTestProject>
13-
14-
<!-- Coverage -->
15-
<CollectCoverage>true</CollectCoverage>
16-
<CoverletOutputFormat>lcov</CoverletOutputFormat>
17-
<CoverletOutput>./lcov.info</CoverletOutput>
18-
<IncludeTestAssembly>true</IncludeTestAssembly>
19-
20-
<!-- Static Analysis -->
21-
<EnableNETAnalyzers>true</EnableNETAnalyzers>
22-
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
23-
<CodeAnalysisTreatWarningsAsErrors>false</CodeAnalysisTreatWarningsAsErrors>
248
</PropertyGroup>
259

26-
<ItemGroup>
27-
<PackageReference Include="coverlet.collector" Version="6.0.2" />
28-
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
29-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
30-
<PrivateAssets>all</PrivateAssets>
31-
</PackageReference>
32-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
33-
<PackageReference Include="MSTest.TestAdapter" Version="3.3.1" />
34-
<PackageReference Include="MSTest.TestFramework" Version="3.3.1" />
35-
</ItemGroup>
36-
37-
<ItemGroup>
38-
<Using Include="Microsoft.VisualStudio.TestTools.UnitTesting" />
39-
</ItemGroup>
40-
4110
</Project>

0 commit comments

Comments
 (0)