Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
steps:

- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

# -----
# Setup .NET sdk
# -----

- name: Install .NET SDKs
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release
on:
workflow_dispatch:
inputs:
version:
description: "Nuget package version"
required: true
type: string
publish:
description: "Publish to nuget"
type: boolean
required: true
default: false
run-name: Release ${{ inputs.Version }}

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x

- name: Build package
run: dotnet pack ./Castle.Core.sln -p:Version=${{ inputs.Version }} -o ./build -p:CI=true

- name: Make explicit versions for nuget packages
run: dotnet run --project .\tools\Explicit.NuGet.Versions\Explicit.NuGet.Versions.csproj ".\build" "castle."

- name: Publish to nuget.org
if: inputs.publish == 'true'
run: dotnet nuget push ./build/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

- name: Upload packages
uses: actions/upload-artifact@v5
with:
name: packages
path: |
build/*.nupkg
build/*.snupkg
retention-days: 30
3 changes: 0 additions & 3 deletions Castle.Core.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<File Path=".editorconfig" />
<File Path=".gitattributes" />
<File Path=".gitignore" />
<File Path="appveyor.yml" />
<File Path="build.cmd" />
<File Path="build.sh" />
<File Path="buildscripts/common.props" />
<File Path="CHANGELOG.md" />
<File Path="CONTRIBUTING.md" />
Expand Down
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,10 @@ Running the unit tests additionally requires the .NET Framework 4.6.2+ and the .
|-----------------|------------|
| Windows & Linux | [Preview Feed](https://ci.appveyor.com/nuget/core-0mhe40ifodk8)

### On Windows
### On Windows/linux/macOS

```
build.cmd
```

### On Linux

```
./build.sh
dotnet build Castle.Core.slnx
```

:information_source: **Mono runtime support:** We used to run tests on the Mono 6.0 runtime, but stopped doing so as the project has been deprecated. See the official announcement on [the Mono homepage](https://www.mono-project.com/).
Expand Down
87 changes: 0 additions & 87 deletions appveyor.yml

This file was deleted.

17 changes: 0 additions & 17 deletions build.cmd

This file was deleted.

45 changes: 0 additions & 45 deletions build.sh

This file was deleted.

48 changes: 0 additions & 48 deletions buildscripts/build.cmd

This file was deleted.

13 changes: 9 additions & 4 deletions buildscripts/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/castleproject/Core</RepositoryUrl>
<BuildVersion>0.0.0</BuildVersion>
<BuildVersion Condition="'$(APPVEYOR_BUILD_VERSION)'!=''">$(APPVEYOR_BUILD_VERSION)</BuildVersion>
<BuildVersion Condition="'$(Version)'!=''">$(Version)</BuildVersion>
<BuildVersionMajor>$(BuildVersion.Split('.')[0])</BuildVersionMajor>
<BuildVersionNoSuffix>$(BuildVersion.Split('-')[0])</BuildVersionNoSuffix>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand All @@ -24,14 +24,19 @@
<PackageIconUrl>http://www.castleproject.org/img/castle-logo.png</PackageIconUrl>
<PackageIcon>castle-logo.png</PackageIcon>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageVersion>$(BuildVersion)</PackageVersion>
<IncludeSymbols>true</IncludeSymbols>
<IncludeSource>false</IncludeSource>
<CurrentYear>$([System.DateTime]::Now.ToString("yyyy"))</CurrentYear>
<Copyright>Copyright (c) 2004-$(CurrentYear) Castle Project - http://www.castleproject.org/ </Copyright>
<ContentTargetFolders>.</ContentTargetFolders>
</PropertyGroup>

<PropertyGroup Condition="'$(CI)' == 'True'">
<!--Deterministic Build and Source Link settings -->
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<Content Include="..\..\CHANGELOG.md" />
<Content Include="..\..\LICENSE" Pack="True" PackagePath="" />
Expand Down
7 changes: 0 additions & 7 deletions nuget.config

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@
</PropertyGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
<Authors>Castle Contributors</Authors>
<AssemblyName>Castle.Core.Tests.WeakNamed</AssemblyName>
<RootNamespace>Castle</RootNamespace>
<Version>0.0.0.0</Version>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<SignAssembly>False</SignAssembly>
<PublicSign Condition="'$(OS)'=='Unix'">false</PublicSign>
<StartupObject>Program</StartupObject>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\Castle.Core\DynamicProxy\Generators\Emitters\StrongNameUtil.cs" Link="DynamicProxy.Tests\StrongNameUtil.cs" />
</ItemGroup>


<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Castle.Core\Castle.Core.csproj" />
<ProjectReference Include="..\Castle.Core.Tests\Castle.Core.Tests.csproj" />
Expand Down
13 changes: 0 additions & 13 deletions src/Castle.Core.Tests.WeakNamed/Program.cs

This file was deleted.

Loading
Loading