Skip to content

Commit

Permalink
Get analyzer into Csla nuget package (#4323)
Browse files Browse the repository at this point in the history
* #3871 Stop using preview and do release build

* #3871 Switch to stable version of .NET

* switch to rc tag

* Add analyzer to the Csla nuget package

* Don't create packages as part of normal build

* Explicitly create nuget packages
  • Loading branch information
rockfordlhotka authored Nov 15, 2024
1 parent 3ab4695 commit 65f263d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Install .NET MAUI workloads
run: dotnet workload install maui

- name: Build
run: dotnet build Source\csla.build.sln --configuration Release
- name: Build and Pack
run: dotnet pack Source\csla.build.sln --configuration Release

- name: Push NuGet packages
run: dotnet nuget push bin\packages\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<BaseOutputPath>..\..\Bin</BaseOutputPath>
<Title>CSLA .NET Blazor WebAssembly</Title>
<PackageTags>CSLA;Blazor;aspnetcore;WebAssembly;wasm</PackageTags>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
1 change: 0 additions & 1 deletion Source/Csla.Blazor/Csla.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Title>CSLA .NET Blazor</Title>
<PackageTags>CSLA;Blazor;aspnetcore</PackageTags>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
6 changes: 6 additions & 0 deletions Source/Csla/Csla.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
<PackageReference Include="Backport.System.Threading.Lock" Version="2.0.7" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\bin\Release\netstandard2.0\Csla.Analyzers.dll">
<Pack>true</Pack>
<PackagePath>analyzers/dotnet/cs/</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down
2 changes: 1 addition & 1 deletion Source/Directory.Package.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Source/version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "9.0.0-preview",
"version": "9.0.0-rc1",
"publicReleaseRefSpec": [ "^refs/heads/main$" ]
}

0 comments on commit 65f263d

Please sign in to comment.