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

Fix csproj and nuget #7

Merged
merged 2 commits into from
Apr 23, 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
3 changes: 2 additions & 1 deletion .github/workflows/PUBLISH_PACKAGE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on:
push:
branches: [ main ]
paths:
- 'SickRfid/SickRfid.csproj'
- 'SickRfid/*'
- 'Directory.Build.props'
- '.github/workflows/PUBLISH_PACKAGE.yml'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion SickRfid/SickRfid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>$(AssemblyName).Tests</_Parameter1> <!-- We use the value of AssemblyName to declare the value of the attribute -->
</AssemblyAttribute>
<None Include="images\icon.png" Pack="true" PackagePath="\"/>
<None Include="$([MSBuild]::GetPathOfFileAbove('icon.png', '$(MSBuildThisFileDirectory)../'))" Pack="true" PackagePath="\" />
<None Include="$([MSBuild]::GetPathOfFileAbove('README.md', '$(MSBuildThisFileDirectory)../'))" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
Expand Down
15 changes: 15 additions & 0 deletions SickRfid/SickRfid.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>$author$</authors>
<owners>$author$</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>Initial Release</releaseNotes>
<copyright>Copyright 2024</copyright>
<tags>RFID, SICK, RFU610, scanner</tags>
</metadata>
</package>
Loading