Skip to content

Commit

Permalink
move common props to Directory.Build.props (#48)
Browse files Browse the repository at this point in the history
* move common props to Directory.Build.props

* Update Lombok.NET.csproj

---------

Co-authored-by: Collin Alpert <[email protected]>
  • Loading branch information
SimonCropp and CollinAlpert authored Jun 20, 2024
1 parent 3a38063 commit e8ab51c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
9 changes: 9 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<ImplicitUsings>true</ImplicitUsings>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<LangVersion>12</LangVersion>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Lombok.NET.Test/FreezerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void TryUnfreeze_WhenNotFrozen_ReturnsFalse()

file sealed class Freezer
{
private string _name;
private string _name = null!;

public bool IsFrozen { get; private set; }

Expand Down
1 change: 0 additions & 1 deletion Lombok.NET.Test/Lombok.NET.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>true</ImplicitUsings>
<IsPackable>false</IsPackable>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
</PropertyGroup>
Expand Down
3 changes: 0 additions & 3 deletions Lombok.NET/Lombok.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>10</LangVersion>
<Nullable>enable</Nullable>
<PackageId>Lombok.NET</PackageId>
<Version>2.3.1</Version>
<Authors>Collin Alpert</Authors>
Expand All @@ -17,7 +15,6 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>RS2008</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit e8ab51c

Please sign in to comment.