We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problems Building Examples

I’m trying to evaluate the APIs for purchasing, but I’m having a heck of a time getting the code examples to compile. I installed “Aspose Total for .NET”. All the shortcuts are in my Start Menu, so I assume everything installed correctly. I’m running Visual Studio 2017. Are the solutions not compatible with newer versions of Visual Studio? I have the NuGet Package Manager installed, and I’ve used it for other packages. I downloaded the example .zip file directly from here: https://docs.aspose.com/display/wordsnet/How+to+Run+the+Examples

For example, trying to build Aspose.Words.Examples.CSharp produces:
Restoring NuGet packages…
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck ‘Allow NuGet to download missing packages during build.’
NuGet Package restore failed for project CSharp: Unable to find version ‘17.5.0’ of package ‘Aspose.Email’.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package ‘Aspose.Email.17.5.0’ is not found on source ‘C:\Program Files (x86)\Microsoft SDKs\NuGetPackages’.
https://dotnet.myget.org/F/open-xml-sdk/api/v2: Package ‘Aspose.Email.17.5.0’ is not found on source ‘https://dotnet.myget.org/F/open-xml-sdk/api/v2’.
.
NuGet Package restore failed for project CSharp: Unable to find version ‘17.10.0’ of package ‘Aspose.Words’.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package ‘Aspose.Words.17.10.0’ is not found on source ‘C:\Program Files (x86)\Microsoft SDKs\NuGetPackages’.
https://dotnet.myget.org/F/open-xml-sdk/api/v2: Package ‘Aspose.Words.17.10.0’ is not found on source ‘https://dotnet.myget.org/F/open-xml-sdk/api/v2’.
.
NuGet Package restore failed for project CSharp: Unable to find version ‘17.4.0’ of package ‘Aspose.BarCode’.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages: Package ‘Aspose.BarCode.17.4.0’ is not found on source ‘C:\Program Files (x86)\Microsoft SDKs\NuGetPackages’.
https://dotnet.myget.org/F/open-xml-sdk/api/v2: Package ‘Aspose.BarCode.17.4.0’ is not found on source ‘https://dotnet.myget.org/F/open-xml-sdk/api/v2’.

Trying to build other projects gives similar errors, but for different versions of packages.

As an aside, the installed link for the Aspose Word documentation doesn’t work: https://products.aspose.com/Aspose.Words/Api/index.html

@ahilton,

Thank you for considering Aspose APIs and sharing details. We have evaluated the said issue. While investigation it was found that the issue persists. Updated and working Aspose.Words.Examples.CSharp.sln is attached as ZIP for your reference. We will soon update the Examples repository to avoid any confusion in the future.

Download Link: https://drive.google.com/file/d/1TrtGR4A75P0LuFobapPEVOA3LoIXlKeU/view?usp=sharing

Perfect! Thanks!

@ahilton,

Thank you. Please feel free to contact us in case of any query or comments.