Skip to content

Commit

Permalink
generate analyzer package on build (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchannon authored Jun 6, 2024
1 parent 2056706 commit 5d090f9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ NUGET_API_KEY=$3

if [ "$TARGET_PACKAGE" = "carter" ]; then
# Publish both the Carter and the CarterTemplate packages
TARGET_PACKAGES="$(find -wholename "./src/Carter/**/*.nupkg" -or -wholename "./template/**/*.nupkg")"
TARGET_PACKAGES="$(find -wholename "./src/Carter/**/*.nupkg" -or -wholename "./template/**/*.nupkg" -or -wholename "./src/Carter.Analyzers/**/*.nupkg")"
elif [ "$TARGET_PACKAGE" = "newtonsoft" ]; then
TARGET_PACKAGES="$(find -wholename "./src/Carter.ResponseNegotiators.Newtonsoft/**/*.nupkg")"
else
Expand Down
24 changes: 22 additions & 2 deletions src/Carter.Analyzers/Carter.Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,38 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Authors>Jonathan Channon</Authors>
<Description>Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.</Description>
<PackageTags>asp.net core;nancy;.net core;routing;carter</PackageTags>
<PackageProjectUrl>https://github.com/CarterCommunity/Carter</PackageProjectUrl>
<PackageIcon>carterlogo.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<LangVersion>latest</LangVersion>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<MinVerSkip Condition="'$(Configuration)' == 'Debug'">true</MinVerSkip>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>12</LangVersion>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<NoWarn>RS2008</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0" />
<None Include="..\..\media\carterlogo.png" Pack="true" PackagePath="\"/>
<None Include="..\..\README.md" Pack="true" PackagePath="\"/>
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Carter.Tests" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.7.0"/>
<PackageReference Include="MinVer" Version="2.5.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Carter.Tests"/>
</ItemGroup>
</Project>

0 comments on commit 5d090f9

Please sign in to comment.