Skip to content

Commit

Permalink
Migrate from nuspec file to csproj (#150)
Browse files Browse the repository at this point in the history
* Remove all tfms except one

* Update FluentAssertions.Analyzers.csproj

* Update other files

* Remove Summary as it doesn't seem to do anything

* /
  • Loading branch information
maxkoshevoi authored Feb 14, 2022
1 parent c499b7d commit 39be030
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 68 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- run: dotnet test src --configuration Release --filter 'TestCategory=Completed'
- run: nuget pack src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.nuspec
dotnet-version: 6.0.x
- run: dotnet test src --configuration Release --filter 'TestCategory=Completed'
- run: dotnet pack src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.csproj
5 changes: 1 addition & 4 deletions src/FluentAssertions.Analyzers.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt
ProjectSection(SolutionItems) = preProject
..\.gitattributes = ..\.gitattributes
..\.gitignore = ..\.gitignore
..\appveyor.yml = ..\appveyor.yml
..\build.cake = ..\build.cake
..\build.ps1 = ..\build.ps1
..\build.sh = ..\build.sh
..\.github\workflows\ci.yml = ..\.github\workflows\ci.yml
..\LICENSE = ..\LICENSE
..\README.md = ..\README.md
EndProjectSection
Expand Down
52 changes: 32 additions & 20 deletions src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.csproj
Original file line number Diff line number Diff line change
@@ -1,32 +1,44 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<TargetFrameworks>netstandard2.0;netstandard2.1;net48;net6.0</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' != 'Windows_NT' ">
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
</PropertyGroup>

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<RootNamespace>FluentAssertions.Analyzers</RootNamespace>
<LangVersion>8.0</LangVersion>

<IncludeBuildOutput>false</IncludeBuildOutput>
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
<DevelopmentDependency>true</DevelopmentDependency>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>

<PropertyGroup>
<PackageId>FluentAssertions.Analyzers</PackageId>
<Version>0.15.0</Version>
<Authors>Meir Blachman</Authors>
<Copyright>Copyright Meir Blachman 2017-2022</Copyright>

<Description>Analyzers to help writing fluentassertions the right way.</Description>
<PackageTags>FluentAssertions Analyzers</PackageTags>
<PackageReleaseNotes>See https://github.com/fluentassertions/fluentassertions.analyzers/releases/</PackageReleaseNotes>

<PackageReadmeFile>docs\README.md</PackageReadmeFile>
<PackageIcon>fluent_assertions.svg.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/fluentassertions/fluentassertions.analyzers</PackageProjectUrl>
<RepositoryUrl>https://github.com/fluentassertions/fluentassertions.analyzers</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.3.1" />
<PackageReference Include="Microsoft.Composition" Version="1.0.31" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="3.11.0" />
</ItemGroup>

<ItemGroup>
<None Update="FluentAssertions.Analyzers.nuspec">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="tools\install.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="tools\uninstall.ps1">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="..\..\README.md" Pack="true" PackagePath="docs" />
<None Include="..\..\assets\fluent_assertions.svg.png" Pack="true" PackagePath="" />
<None Update="tools\*.ps1" CopyToOutputDirectory="Always" Pack="true" PackagePath="" />
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
</ItemGroup>

</Project>
</Project>
38 changes: 0 additions & 38 deletions src/FluentAssertions.Analyzers/FluentAssertions.Analyzers.nuspec

This file was deleted.

0 comments on commit 39be030

Please sign in to comment.