Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate analyzer package on build #356

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
generate analyzer package on build
  • Loading branch information
jchannon committed Jun 6, 2024
commit 887b97d41cb626062eb5fe78043700efd7d7993d
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>
Loading