Skip to content

Commit

Permalink
Prerelease v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthri authored Jul 24, 2023
2 parents c556905 + e4d29bc commit b7e6cda
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ on:

jobs:
deploy:
uses: Arthri/deploy_nuget/.github/workflows/deploy.yml@v1
uses: Arthri/deploy-nuget/.github/workflows/deploy.yml@v1
secrets:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
NUGET-API-KEY: ${{ secrets.NUGET_API_KEY }}
with:
changelog: ${{ github.event.release.body }}
version: ${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
types:
- closed
- edited
- labeled
- opened
- unlabeled
branches:
- master

jobs:
handle_release_request:
handle-release-request:
name: ${{ github.event.action == 'closed' && 'Resolve ' || 'Verify ' }}Release Request
permissions:
contents: write
uses: Arthri/release_request/.github/workflows/release_request.yml@v1
uses: Arthri/release-request/.github/workflows/release-request.yml@v1
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ An MSBuild SDK for pack-only projects.
### Requirements
- A project written in SDK-style. This includes any project for .NET Core(or newer) or .NET 5(or newer).

### Install in Project Manually
### Install using an Editor
1. Locate the project file(for example, `Project.csproj`, `Project.fsproj`).
1. Open the project file in an editor.
1. Locate the project's root `<Project>` element.
1. Edit the `Sdk` attribute's value to `Sdk="Belp.SDK.PackOnly/<VERSION>"`, for example `Sdk="Belp.SDK.PackOnly/1.0.0"`.
1. Edit the `Sdk` attribute's value to `Belp.SDK.PackOnly/<VERSION>`. For example, `Sdk="Belp.SDK.PackOnly/1.0.0"`.

## Usage

Expand All @@ -25,17 +25,17 @@ By default, the target framework is set to .NET Standard 2.0. This can be overri
## Development

### Prerequisites
- Install .NET 7.0 SDK version 7.0.100 or newer.
- Install the .NET 7.0 SDK version 7.0.100 or newer.

### Building (with Visual Studio)
### Building with Visual Studio
1. Open `Belp.SDK.PackOnly.sln`.
1. Open the Solution Explorer.
1. Right click on the project `Belp.SDK.PackOnly` in the Solution Explorer.
1. Click on `Pack`.

### Building (with .NET CLI)
### Building with .NET CLI
1. Open a terminal in the repository root.
1. Run `dotnet pack`

### Output
The output is located in `src/Belp.SDK.PackOnly/Belp.SDK.PackOnly/bin/Release`.
By default, the output is located in `src/Belp.SDK.PackOnly/Belp.SDK.PackOnly/bin/Release/`.
22 changes: 17 additions & 5 deletions src/Belp.SDK.PackOnly/Assets/Sdk/Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@
<!-- Make Release the default and only configuration -->
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<Configurations>Release</Configurations>
</PropertyGroup>



<ItemGroup>
<PackageReference Condition="'$(ReferencePackinf)' != 'false'" Include="Belp.Build.Packinf" Version="0.3.0" PrivateAssets="all" IncludeAssets="all" />
</ItemGroup>



<Import Project="Sdk.props" Sdk="Belp.SDK.Common" Version="0.2.0" />
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />



<PropertyGroup>
<AddMetapackagePlaceholderLibrary>true</AddMetapackagePlaceholderLibrary>

<EnableDefaultItems>false</EnableDefaultItems>

Expand All @@ -15,9 +32,4 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>



<Import Project="Sdk.props" Sdk="Belp.SDK.Common" Version="0.2.0" />
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />

</Project>
Empty file.
15 changes: 6 additions & 9 deletions src/Belp.SDK.PackOnly/Belp.SDK.PackOnly.csproj
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
<Project Sdk="Belp.SDK.PackOnly/0.1.0">
<Project>

<Import Project="Assets/Sdk/Sdk.props" />

<!-- Package Information -->
<PropertyGroup>
<Authors>Arthri</Authors>
<Copyright>Copyright © 2023 Arthri</Copyright>
<Description>An SDK for projects that are only packed, not built.</Description>
<DevelopmentDependency>true</DevelopmentDependency>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/Arthri/Belp.SDK.PackOnly/</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageTags>msbuild;sdk</PackageTags>
<Product>Belp</Product>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Title>PackOnly SDK</Title>
</PropertyGroup>



<!-- Package Assets Configuration -->
<ItemGroup>
<None Include="Assets\**\*" Pack="true" PackagePath="\" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<CopyrightOwner Include="Arthri" Years="2023" />
</ItemGroup>


Expand All @@ -33,4 +28,6 @@
</PackageReference>
</ItemGroup>

<Import Project="Assets/Sdk/Sdk.targets" />

</Project>

0 comments on commit b7e6cda

Please sign in to comment.