I have a VS 2017 solution. The following does not work in the Unit Test project:
- Console project will work
- Unit Test project will NOT work
I have a VS 2017 solution. The following does not work in the Unit Test project:
Hi Harry,
I’m encountering this exact same issue and I am referencing the class library project that contains the code??
Hi Chris,cschmitt2000:I’m encountering this exact same issue and I am referencing the class library project that contains the code??
Just to make sure, there is one sample app in the first thread.
Hi Harry,
harry@ardmedia.com:A)Could you please make sure that you are also running VS 2017 (15.2)?B)Could you also please make sure that you use the following NuGet packages, and not the the libraries VS does reference in older VS installations:
harry@ardmedia.com:C)Have you tried runing my attached Solution. Did it work on your side?Did you add the reference and it worked?D)Maybe you can provide your project, and I can verify it it works on my machine.
Hi Asad.Ali
Any news on this thread: Aspose.PDF (SetLicense) does not work in Unit Test projects
How long do you think, do I have to be patient
Thankx for an update!
Harry
Thanks for your inquiry.
I am afraid that we have not received any updates from product team in this regard yet. We have recorded your concerns and intimated the relevant team about it. As soon as we have some definite updates, we will let you know. Please spare us little time.
We are sorry for the delay and inconvenience.
Best Regards,
Asad Ali
Thanks for your patience.
We have tested the scenario with latest version Aspose.Pdf for .NET 17.7, using specified NuGet Package(s) (i.e MSTest.TestAdapter" version=“1.1.18” and MSTest.TestFramework" version=“1.1.18”) and UnitTest was executed successfully. For your reference, I have attached a sample project. You may change the path to License file and try running the project.
In case of any further assistance, please feel free to let us know.
ConsoleApp1.zip (19.8 KB)
Best Regards,
Asad Ali
Hi Asad Ali
I have installed version 17.7 and I can confirm, that this version is working find with the MSTest components (1.1.18).
Thank you very much for your support!
Harry
Thanks for your feedback.
It is good to know that your issue has been resolved. Please keep using our API and in event of any other query, please feel free to contact us.
Best Regards,
Asad Ali
I also had this same problem with a Unit Test project. Upgrading to the latest version of Aspose resolved the issue.
Can you please help me how do i need to crate unit test project to read aspose license and set license
You can please download the sample project and build it at your end using latest version of the Aspose.PDF for .NET.