Skip to content

Commit b03c803

Browse files
committed
Include dlls into nuget
1 parent 3a90c49 commit b03c803

File tree

5 files changed

+27
-26
lines changed

5 files changed

+27
-26
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
run: dotnet build ${{ env.PROJECT_FOLDER }}/${{ env.PROJECT }} --configuration Release
3131

3232
- name: Tests
33-
run: dotnet test Tests/EDSDK.NET.Tests/EDSDK.NET.Tests.csproj
33+
run: dotnet test Tests/EDSDK.NET.Tests/EDSDK.NET.Tests.csproj --no-restore
3434

3535
- name: Create the package
36-
run: dotnet pack ${{ env.PROJECT_FOLDER }}/${{ env.PROJECT }} --configuration Release
36+
run: dotnet pack ${{ env.PROJECT_FOLDER }}/${{ env.PROJECT }} --configuration Release --no-restore
3737

3838
- name: Publish the package to Repository
3939
run: dotnet nuget push ${{ env.PROJECT_FOLDER }}/bin/Release/*.nupkg --api-key ${{ secrets.MRRADIANNUGETSECRET }} --source ${{ env.NUGET_REPO_URL }}

EDSDK.NET/EDSDK.NET.csproj

+23-22
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
6-
<Version>1.0.1.5</Version>
7-
<AssemblyVersion>1.0.1.5</AssemblyVersion>
8-
<FileVersion>1.0.1.5</FileVersion>
9-
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
10-
<Title>Motiony.EDSDK</Title>
11-
<PackageProjectUrl>https://github.com/Motiony/EDSDK.NET.git</PackageProjectUrl>
12-
<RepositoryUrl>https://github.com/Motiony/EDSDK.NET.git</RepositoryUrl>
6+
<Version>1.0.1.6</Version>
7+
<AssemblyVersion>1.0.1.6</AssemblyVersion>
8+
<FileVersion>1.0.1.6</FileVersion>
9+
<PackageProjectUrl>https://github.com/Motiony/EDSDK.NET.git</PackageProjectUrl>
10+
<RepositoryUrl>https://github.com/Motiony/EDSDK.NET.git</RepositoryUrl>
1311
<Authors>Motiony</Authors>
1412
</PropertyGroup>
1513

1614
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
1715
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1816
</PropertyGroup>
1917

20-
<ItemGroup>
21-
<None Include="..\lib\EDSDK.dll" Link="\lib\EDSDK.dll">
22-
<Pack>true</Pack>
23-
<PackagePath>lib</PackagePath>
24-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
25-
</None>
26-
<None Include="..\lib\EdsImage.dll" Link="\lib\EdsImage.dll">
27-
<Pack>true</Pack>
28-
<PackagePath>lib</PackagePath>
29-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
30-
</None>
31-
</ItemGroup>
32-
3318
<ItemGroup>
3419
<PackageReference Include="Emgu.CV" Version="4.8.0.5324" />
3520
</ItemGroup>
3621

3722
<ItemGroup>
38-
<Folder Include="lib\" />
23+
<Content Include="lib\EDSDK.dll">
24+
<Pack>true</Pack>
25+
<PackagePath>lib\$(TargetFramework)</PackagePath>
26+
</Content>
27+
<ContentWithTargetPath Include="lib\EDSDK.dll">
28+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
29+
<TargetPath>EDSDK.dll</TargetPath>
30+
</ContentWithTargetPath>
31+
<Content Include="lib\EdsImage.dll">
32+
<Pack>true</Pack>
33+
<PackagePath>lib\$(TargetFramework)</PackagePath>
34+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
35+
</Content>
36+
<ContentWithTargetPath Include="lib\EdsImage.dll">
37+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
38+
<TargetPath>EdsImage.dll</TargetPath>
39+
</ContentWithTargetPath>
3940
</ItemGroup>
4041
</Project>

EDSDK.NET/PInvoke/EDSDK.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class EDSDK
88
/// <summary>
99
/// Path to the EDSDK DLL
1010
/// </summary>
11-
const string DLLPath = "lib/EDSDK.dll";
11+
const string DLLPath = "EDSDK.dll";
1212

1313
#region Callback Functions
1414

@@ -2254,7 +2254,7 @@ SaveImage Setting
22542254
public struct EdsSaveImageSetting
22552255
{
22562256
public uint JPEGQuality;
2257-
private IntPtr iccProfileStream;
2257+
private readonly IntPtr iccProfileStream;
22582258
public uint reserved;
22592259
}
22602260

EDSDK.NET/lib/EDSDK.dll

1.45 MB
Binary file not shown.

EDSDK.NET/lib/EdsImage.dll

548 KB
Binary file not shown.

0 commit comments

Comments
 (0)