Skip to content

Commit 39be030

Browse files
authored
Migrate from nuspec file to csproj (#150)
* Remove all tfms except one * Update FluentAssertions.Analyzers.csproj * Update other files * Remove Summary as it doesn't seem to do anything * /
1 parent c499b7d commit 39be030

File tree

4 files changed

+36
-68
lines changed

4 files changed

+36
-68
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ jobs:
1313
- name: Setup .NET 6
1414
uses: actions/setup-dotnet@v1
1515
with:
16-
dotnet-version: '6.0.x'
17-
- uses: nuget/setup-nuget@v1
18-
with:
19-
nuget-version: '5.x'
20-
- run: dotnet test src --configuration Release --filter 'TestCategory=Completed'
21-
- run: nuget pack src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.nuspec
16+
dotnet-version: 6.0.x
17+
- run: dotnet test src --configuration Release --filter 'TestCategory=Completed'
18+
- run: dotnet pack src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.csproj

src/FluentAssertions.Analyzers.sln

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt
88
ProjectSection(SolutionItems) = preProject
99
..\.gitattributes = ..\.gitattributes
1010
..\.gitignore = ..\.gitignore
11-
..\appveyor.yml = ..\appveyor.yml
12-
..\build.cake = ..\build.cake
13-
..\build.ps1 = ..\build.ps1
14-
..\build.sh = ..\build.sh
11+
..\.github\workflows\ci.yml = ..\.github\workflows\ci.yml
1512
..\LICENSE = ..\LICENSE
1613
..\README.md = ..\README.md
1714
EndProjectSection
Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,44 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
4-
<TargetFrameworks>netstandard2.0;netstandard2.1;net48;net6.0</TargetFrameworks>
5-
</PropertyGroup>
6-
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT' ">
7-
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
8-
</PropertyGroup>
9-
103
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<LangVersion>latest</LangVersion>
116
<RootNamespace>FluentAssertions.Analyzers</RootNamespace>
12-
<LangVersion>8.0</LangVersion>
7+
8+
<IncludeBuildOutput>false</IncludeBuildOutput>
9+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
10+
<DevelopmentDependency>true</DevelopmentDependency>
11+
<NoPackageAnalysis>true</NoPackageAnalysis>
1312
</PropertyGroup>
1413

14+
<PropertyGroup>
15+
<PackageId>FluentAssertions.Analyzers</PackageId>
16+
<Version>0.15.0</Version>
17+
<Authors>Meir Blachman</Authors>
18+
<Copyright>Copyright Meir Blachman 2017-2022</Copyright>
19+
20+
<Description>Analyzers to help writing fluentassertions the right way.</Description>
21+
<PackageTags>FluentAssertions Analyzers</PackageTags>
22+
<PackageReleaseNotes>See https://github.com/fluentassertions/fluentassertions.analyzers/releases/</PackageReleaseNotes>
23+
24+
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
25+
<PackageIcon>fluent_assertions.svg.png</PackageIcon>
26+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
27+
<PackageProjectUrl>https://github.com/fluentassertions/fluentassertions.analyzers</PackageProjectUrl>
28+
<RepositoryUrl>https://github.com/fluentassertions/fluentassertions.analyzers</RepositoryUrl>
29+
<RepositoryType>git</RepositoryType>
30+
</PropertyGroup>
31+
1532
<ItemGroup>
16-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.3.1" />
17-
<PackageReference Include="Microsoft.Composition" Version="1.0.31" />
33+
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" />
34+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.11.0" />
1835
</ItemGroup>
1936

2037
<ItemGroup>
21-
<None Update="FluentAssertions.Analyzers.nuspec">
22-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
23-
</None>
24-
<None Update="tools\install.ps1">
25-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
26-
</None>
27-
<None Update="tools\uninstall.ps1">
28-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
29-
</None>
38+
<None Include="..\..\README.md" Pack="true" PackagePath="docs" />
39+
<None Include="..\..\assets\fluent_assertions.svg.png" Pack="true" PackagePath="" />
40+
<None Update="tools\*.ps1" CopyToOutputDirectory="Always" Pack="true" PackagePath="" />
41+
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
3042
</ItemGroup>
3143

32-
</Project>
44+
</Project>

src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.nuspec

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)