xsharp.eu • Transferring large VO project to X# - Page 5
Page 5 of 5

Transferring large VO project to X#

Posted: Mon May 10, 2021 5:02 am
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

Transferring large VO project to X#

Posted: Mon May 10, 2021 7:26 am
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?

Transferring large VO project to X#

Posted: Mon May 10, 2021 8:23 am
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.

Transferring large VO project to X#

Posted: Mon May 10, 2021 10:28 am
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

Transferring large VO project to X#

Posted: Mon May 10, 2021 10:32 am
by robert
Stefano,
I think the XCopy error 4 indicates that the target path does no exist.

Robert

Transferring large VO project to X#

Posted: Mon May 10, 2021 10:34 am
by stecosta66
Thanks Robert,
I've updated my message above.

Transferring large VO project to X#

Posted: Tue May 11, 2021 9:24 pm
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

Transferring large VO project to X#

Posted: Wed May 12, 2021 12:25 am
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

Transferring large VO project to X#

Posted: Wed May 12, 2021 9:05 am
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

Transferring large VO project to X#

Posted: Sat May 15, 2021 9:27 pm
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