1. Uwe Schwan
  2. SnapDevelop
  3. Tuesday, 4 July 2023 06:26 AM UTC

Hello,

when i use this example within PB2022 and SnapDevelop2022, i only get a NuGet package in the publish folder.
No "ORCodeGenerator.dll" and "ORCoder.dll" in the publish folder for the solution.
How can i use the PB .net DLL importer with a NuGet Package?

BR

Uwe

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 4 July 2023 08:19 AM UTC
  2. SnapDevelop
  3. # 1

A link to the code that you talk about would be helpful.

Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 4 July 2023 16:23 PM UTC
  2. SnapDevelop
  3. # 2

Sorry, you mentioned that in the original post, I completely missed it.

The DLLs are placed on the folder right above where the Nuget Package is placed:

 

The nupkg is inside the publish folder

Regards,
Francisco

Comment
There are no comments made yet.
Uwe Schwan Accepted Answer Pending Moderation
  1. Thursday, 6 July 2023 06:46 AM UTC
  2. SnapDevelop
  3. # 3

Hi Francisco,

I tried it with Visual Studio 2022 and it works.

This is the output generated in the publish folder:

 

In VS2022 I also have one more option. 

Publish and generate a package.

Thanks and BR

Uwe

 

Comment
  1. Francisco Martinez @Appeon
  2. Thursday, 6 July 2023 14:17 PM UTC
If the behavior is different between the two IDEs with the exact same project, I suggest you submit a support ticket with this particular situation.



Regards - Francisco
  1. Helpful
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 4 July 2023 14:29 PM UTC
  2. SnapDevelop
  3. # 4

Hi Uwe,

 

You need to publish the project to have it generate the DLLs:

 

Regards,
Francisco

Comment
There are no comments made yet.
Uwe Schwan Accepted Answer Pending Moderation
  1. Tuesday, 4 July 2023 15:16 PM UTC
  2. SnapDevelop
  3. # 5

Hi Francisco,

i published the solution, but there is only the NuGet package in publish folder and no DLLs.

BR 

Uwe

Comment
There are no comments made yet.
Uwe Schwan Accepted Answer Pending Moderation
  1. Wednesday, 5 July 2023 06:55 AM UTC
  2. SnapDevelop
  3. # 6

Hi Francisco,

that's right, but there is only the DLL for my class. The "QRCoder.dll" is missing (integrated NuGet package).

I also looked inside the NuGet package and the "QRCoder.dll" is not there.

I did it like Bruce Armstrong in the example. The class library target ist .Net Standard 2.0.

After some google research, I find out that it is default for a .Net Standard class library target to produce a NuGet package.

Thanks and BR

Uwe

 

 

Comment
  1. Francisco Martinez @Appeon
  2. Wednesday, 5 July 2023 15:56 PM UTC
I swear I remember there being a switch that makes the publishing include all the dependencies, but I cannot find what it is... What I've done in the past is create a Console Application project in the same solution, add the library as a dependency of this project, and publish this application. The generated files will include all the dependencies. In the meantime I'll keep looking for the option I'm thinking of...
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.