Skip to content

Commit 0b96ac6

Browse files
authored
Merge pull request #32 from Atypical-Consulting/directory-build-props
Create Directory.Build.props
2 parents 557b3eb + 69a4736 commit 0b96ac6

File tree

4 files changed

+54
-45
lines changed

4 files changed

+54
-45
lines changed

.github/workflows/dotnet.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a .NET project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33

4-
name: .NET
4+
name: Build and Test .NET Project
55

66
on:
77
push:
@@ -10,21 +10,27 @@ on:
1010
branches: [ "main" ]
1111

1212
jobs:
13-
build:
13+
build-and-test:
1414

1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- name: Checkout Source Code
19+
uses: actions/checkout@v3
20+
1921
- name: Setup .NET
2022
uses: actions/setup-dotnet@v3
2123
with:
22-
dotnet-version: 6.0.x
24+
dotnet-version: 7.x
25+
2326
- name: Restore dependencies
2427
run: dotnet restore
25-
- name: Build
28+
29+
- name: Build Project
2630
run: dotnet build --no-restore
27-
- name: Test
31+
32+
- name: Run Unit Tests
2833
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage"
29-
- name: Codecov
34+
35+
- name: Upload Code Coverage
3036
uses: codecov/codecov-action@v3

Directory.Build.props

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<Project>
2+
<PropertyGroup>
3+
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Nullable>enable</Nullable>
6+
<LangVersion>11</LangVersion>
7+
<Company>Atypical Consulting SRL</Company>
8+
</PropertyGroup>
9+
10+
<!-- Versioning -->
11+
<!-- https://saebamini.com/how-to-version-your-net-nuget-packages-libraries-and-assemblies-azure-yaml-pipelines-example-using-net-core-cli/ -->
12+
<PropertyGroup>
13+
<Version>0.1.5</Version>
14+
<AssemblyVersion>0.1.5</AssemblyVersion>
15+
<FileVersion>0.1.5</FileVersion>
16+
<InformationalVersion>0.1.5</InformationalVersion>
17+
</PropertyGroup>
18+
</Project>

src/Atypical.VirtualFileSystem.Core/Atypical.VirtualFileSystem.Core.csproj

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,29 @@
2626

2727
<!-- NuGet metadata -->
2828
<PropertyGroup>
29-
<PackageId>Atypical.VirtualFileSystem</PackageId>
30-
<PackageIcon>Logo.png</PackageIcon>
31-
<PackageLicenseFile>LICENSE</PackageLicenseFile>
32-
<PackageReadmeFile>README.md</PackageReadmeFile>
33-
<Authors>Philippe Matray</Authors>
34-
<Description>
35-
A virtual file system implementation in modern C#.
36-
When writing applications in .NET, you often need to write or read the contents of a file. .NET provides `System.IO` namespace dedicated to this purpose. But how do we deal with the filesystem when testing our code?
37-
"Virtual File System" is an attempt to solve this problem. Currently, this library is at an early stage of development. If you need additional functionality, I invite you to open an issue to discuss it.
38-
</Description>
39-
<PackageTags>virtual filesystem;testing;core;net7</PackageTags>
40-
<Copyright>Copyright (c) 2022-2023 Atypical Consulting SRL</Copyright>
41-
<PackageProjectUrl>https://github.com/Atypical-Consulting/VirtualFileSystem</PackageProjectUrl>
42-
<RepositoryUrl>https://github.com/Atypical-Consulting/VirtualFileSystem.git</RepositoryUrl>
43-
<RepositoryType>git</RepositoryType>
44-
<RepositoryBranch>main</RepositoryBranch>
45-
<PackageReleaseNotes>
46-
## Changes
47-
- Add Directories and Files to IDirectoryNode.cs @phmatray (#28)
48-
- Remove the dependency to Root in VFSIndex @phmatray (#27)
49-
- Fix node creation in VFS.cs @phmatray (#26)
50-
</PackageReleaseNotes>
51-
</PropertyGroup>
52-
53-
<!-- Versioning -->
54-
<!-- https://saebamini.com/how-to-version-your-net-nuget-packages-libraries-and-assemblies-azure-yaml-pipelines-example-using-net-core-cli/ -->
55-
<PropertyGroup>
56-
<Version>0.1.5</Version>
57-
<AssemblyVersion>0.1.5</AssemblyVersion>
58-
<FileVersion>0.1.5</FileVersion>
59-
<InformationalVersion>0.1.5</InformationalVersion>
29+
<PackageId>Atypical.VirtualFileSystem</PackageId>
30+
<PackageIcon>Logo.png</PackageIcon>
31+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
32+
<PackageReadmeFile>README.md</PackageReadmeFile>
33+
<Authors>Philippe Matray</Authors>
34+
<Description>
35+
A virtual file system implementation in modern C#.
36+
When writing applications in .NET, you often need to write or read the contents of a file. .NET provides `System.IO` namespace dedicated to this purpose. But how do we deal with the filesystem when testing our code?
37+
"Virtual File System" is an attempt to solve this problem. Currently, this library is at an early stage of development. If you need additional functionality, I invite you to open an issue to discuss it.
38+
</Description>
39+
<PackageTags>virtual filesystem;testing;core;net7</PackageTags>
40+
<Copyright>Copyright (c) 2022-2023 Atypical Consulting SRL</Copyright>
41+
<PackageProjectUrl>https://github.com/Atypical-Consulting/VirtualFileSystem</PackageProjectUrl>
42+
<RepositoryUrl>https://github.com/Atypical-Consulting/VirtualFileSystem.git</RepositoryUrl>
43+
<RepositoryType>git</RepositoryType>
44+
<RepositoryBranch>main</RepositoryBranch>
45+
<PackageReleaseNotes>
46+
## Changes
47+
- Bump Microsoft.NET.Test.Sdk from 17.4.1 to 17.5.0 @dependabot (#31)
48+
- Bump FluentAssertions from 6.9.0 to 6.10.0 @dependabot (#30)
49+
- Fix readme file on NuGet.org @phmatray (#29)
50+
- Move commands and queries in separate files
51+
</PackageReleaseNotes>
6052
</PropertyGroup>
6153

6254
</Project>

tests/Atypical.VirtualFileSystem.UnitTests/Atypical.VirtualFileSystem.UnitTests.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
7-
<LangVersion>11</LangVersion>
8-
<Company>Atypical Consulting SRL</Company>
9-
104
<IsPackable>false</IsPackable>
11-
125
<RootNamespace>VirtualFileSystem.UnitTests</RootNamespace>
136
</PropertyGroup>
147

0 commit comments

Comments
 (0)