Skip to content

Commit

Permalink
Prerelease v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthri committed Jun 8, 2023
2 parents a3d6f96 + b4c51e1 commit c556905
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ An MSBuild SDK for pack-only projects.
### Install in Project Manually
1. Locate the project file(for example, `Project.csproj`, `Project.fsproj`).
1. Open the project file in an editor.
1. Add the [`<Sdk Name="Belp.SDK.PackOnly" Version="<VERSION>" />`](https://learn.microsoft.com/en-us/visualstudio/msbuild/sdk-element-msbuild) element under the root `<Project>` element.
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"`.

## Usage

Expand Down Expand Up @@ -37,4 +38,4 @@ By default, the target framework is set to .NET Standard 2.0. This can be overri
1. Run `dotnet pack`

### Output
The output is located in `src/Belp.SDK.PackOnly/Belp.SDK.PackOnly/bin/<CONFIGURATION>`.
The output is located in `src/Belp.SDK.PackOnly/Belp.SDK.PackOnly/bin/Release`.
2 changes: 1 addition & 1 deletion src/Belp.SDK.PackOnly/Assets/Sdk/Sdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@



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

</Project>
2 changes: 1 addition & 1 deletion src/Belp.SDK.PackOnly/Assets/Sdk/Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


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



Expand Down
11 changes: 2 additions & 9 deletions src/Belp.SDK.PackOnly/Belp.SDK.PackOnly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

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


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



<Target Name="_ExposeCIVariables" AfterTargets="Pack" Condition="'$(BELP_EXPOSE_CI_VARIABLES)' == 'true'">
<Error Text="%24%28GITHUB_OUTPUT%29 is undefined" Condition="'$(GITHUB_OUTPUT)' == ''" />
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Lines="PACKAGE_OUTPUT_PATH=$(PackageOutputAbsolutePath)" />
</Target>

</Project>

0 comments on commit c556905

Please sign in to comment.