Transferring large VO project to X#

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
stecosta66
Posts: 44
Joined: Mon Sep 26, 2016 12:59 pm

Transferring large VO project to X#

Post by stecosta66 »

Fabrice wrote:Hi Stefano,
Mmm... this error seems more related to VS itself, but I could be my solution.

Can you please try to download the current version ? (I've made some corrections, including today)
Can you also tell me what version of VS you are using, and what version of XSharp is installed.

Thx,
Fab
Hi Fabrice,
I'm using Visual Studio 2019 and XSharp 2.8.

I've downloaded the FabTools.xsproj file from here:
https://github.com/X-Sharp/FabTools/tre ... s/FabTools

thanks
Stefano
User avatar
Chris
Posts: 4584
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Transferring large VO project to X#

Post by Chris »

Hi Stefano,
diobrando wrote:
I'm using Visual Studio 2019 and XSharp 2.8.

I've downloaded the FabTools.xsproj file from here:
https://github.com/X-Sharp/FabTools/tre ... s/FabTools
You must not download only the .xsproj file, you must download the whole folder, click on the Green "Code" button and select "Download Zip" and extract, then open the solution from there.

Can you please check if this works of for you? Guys, anybody else downloaded the latest version, after Fabrice's latest changes? Is everything working well for you now?
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
Fabrice
Posts: 409
Joined: Thu Oct 08, 2015 7:47 am
Location: France

Transferring large VO project to X#

Post by Fabrice »

Hi Dick,

Ok, I suggest that you have a look at the DotNetZip package that is under FabZip :
https://github.com/haf/DotNetZip.Semverd

Fab.
XSharp Development Team
fabrice(at)xsharp.eu
stecosta66
Posts: 44
Joined: Mon Sep 26, 2016 12:59 pm

Transferring large VO project to X#

Post by stecosta66 »

Chris wrote:Hi Stefano,
diobrando wrote:
I'm using Visual Studio 2019 and XSharp 2.8.

I've downloaded the FabTools.xsproj file from here:
https://github.com/X-Sharp/FabTools/tre ... s/FabTools
You must not download only the .xsproj file, you must download the whole folder, click on the Green "Code" button and select "Download Zip" and extract, then open the solution from there.

Can you please check if this works of for you? Guys, anybody else downloaded the latest version, after Fabrice's latest changes? Is everything working well for you now?
Hi Chris,
thanks, I've downloaded from green button.
Now the project opens fine in VS19 but when building FabTools I get this error from compiler:

Severity Code Description Project File Line Suppression State
Error MSB3073 The command "xcopy C:FabToolsFabToolsbinDebug C:FabToolsFabToolsbinDebug /y /s /i" exited with code 4. FabTools C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildCurrentBinMicrosoft.Common.CurrentVersion.targets 5534

Thanks
Stefano

Update: never mind, I've loaded the solution file (FabTools.sln) and all is fine
User avatar
robert
Posts: 4258
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Transferring large VO project to X#

Post by robert »

Stefano,
I think the XCopy error 4 indicates that the target path does no exist.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
stecosta66
Posts: 44
Joined: Mon Sep 26, 2016 12:59 pm

Transferring large VO project to X#

Post by stecosta66 »

Thanks Robert,
I've updated my message above.
ic2
Posts: 1804
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Transferring large VO project to X#

Post by ic2 »

Hello Fabrice,
Fabrice wrote:Ok, I suggest that you have a look at the DotNetZip package that is under FabZip :
https://github.com/haf/DotNetZip.Semverd
I did and it looks very promising, thanks for the suggestion. And it supports passwords! I will compare the speed of this and the ZipArchive I am using now but I expect it to be faster.

Two remarks for future readers: this is a sample program (in C#) :

Code: Select all

using (Ionic.Zip.ZipFile zip = new Ionic.Zip.ZipFile())
{zip.Password = "test";
zip.Encryption = Ionic.Zip.EncryptionAlgorithm.WinZipAes256;
zip.AddDirectory(@"d:somedirectory");
zip.Save(@"d:MyZipFile.zip");}
I saw several samples but they only showed using (ZipFile zip = new ZipFile())

That translates to the wrong class. It took me quite some searching to find out it should start with Ionic.Zip.

2 I was curious what NuGet is actually doing. The project can be downloaded also from https://www.nuget.org/packages/DotNetZip/ . There's an option Download package (as raw .nupkg file). If you rename that extension to .zip you can just extract dotnetzip.1.15.0.ziplibnet40DotNetZip.dll and include that. And the .pdb file + an .xml file with explanation if you want)

Dick
User avatar
wriedmann
Posts: 3655
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Transferring large VO project to X#

Post by wriedmann »

Hi Dick,
for your first remark: if you include a "using Ionic.Zip" at the beginning of your program file as documented on GitHub, you don't need to specify the full name.
And for the second: NuGet can do much more: these packages not only include the binaries (sometimes also for more .NET versions), but can also include dependencies to other NuGet packages. You need to resolve that manually in the case you use an IDE that does not supports NuGet like XIDE.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Fabrice
Posts: 409
Joined: Thu Oct 08, 2015 7:47 am
Location: France

Transferring large VO project to X#

Post by Fabrice »

Dick,
I saw several samples but they only showed using (ZipFile zip = new ZipFile())
In such cases, don't forget to look the "using" statements, and add the same in XSharp.

Fab
XSharp Development Team
fabrice(at)xsharp.eu
ic2
Posts: 1804
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Transferring large VO project to X#

Post by ic2 »

Hello Wolfgang, Fabrice,

I know that the using statement prevents the need to specify the full name. But I have found multiple pages with C# fragments, like in their own (https://documentation.help/DotNetZip/CSharp.htmdocumentation and none of the C# samples mention anywhere that you need the Ioniq.zip namespace.

Further: thanks for explaining what NuGet does besides including the DLL.

Dick
Post Reply