Empyreal96 / Easy-Fetch-UWP

Formally "Phone Helper": A simple tool to help WP users in downloading various things
16 stars 2 forks source link

Not sure how SharpCompress should be referenced in Easy-Fetch-UWP build #2

Closed RoboMWM closed 3 months ago

RoboMWM commented 3 months ago

Having an issue where the Easy-Fetch-UWP project is unable to find SharpCompress when I do an x86 build of the entire solution. Is there an extra step I need to do to build this solution?

After working through some issues I posted in #1, I'm still unable to build the solution as-is (although I have modified minimum and target versions). I set target version to 17763 for Easy-Fetch-UWP project - is 19041 required?

1>------ Build started: Project: StoreLib, Configuration: Release x86 ------
2>------ Build started: Project: SharpCompress, Configuration: Release x86 ------
1>Services\FE3Handler.cs(122,33,122,35): warning CS0168: The variable 'ex' is declared but never used
1>Services\FE3Handler.cs(130,33,130,35): warning CS0168: The variable 'ex' is declared but never used
1>Services\FE3Handler.cs(139,34,139,36): warning CS0168: The variable 'ex' is declared but never used
1>Services\DisplayCatalogHandler.cs(204,13,204,20): warning CS0162: Unreachable code detected
1>Services\DisplayCatalogHandler.cs(195,40,195,64): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
1>StoreLib -> D:\robomwm\repos\Easy-Fetch-UWP\StoreLib\bin\x86\Release\netstandard1.4\StoreLib.dll
1>Successfully created package 'D:\robomwm\repos\Easy-Fetch-UWP\StoreLib\bin\x86\Release\StoreLib.1.2.1.nupkg'.
1>Done building project "StoreLib.csproj".
3>------ Build started: Project: Easy-Fetch, Configuration: Release x86 ------
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Compressors\Xz\XZStream.cs(9,25,9,33): warning CS3021: 'XZStream' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Compressors\Xz\XZIndexRecord.cs(7,18,7,31): warning CS3021: 'XZIndexRecord' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Compressors\Xz\XZIndex.cs(11,18,11,25): warning CS3021: 'XZIndex' does not need a CLSCompliant attribute because the assembly does not have a CLSCompliant attribute
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Archives\IWritableArchiveExtensions.cs(83,38,83,40): warning CS0168: The variable 'ex' is declared but never used
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Writers\GZip\GZipWriter.cs(22,44,22,76): warning CS0472: The result of the expression is always 'false' since a value of type 'CompressionLevel' is never equal to 'null' of type 'CompressionLevel?'
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Common\ExtractionMethods.cs(173,30,173,31): warning CS0168: The variable 'e' is declared but never used
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Compressors\Rar\UnpackV2017\unpack_hpp.cs(191,21,191,31): warning CS0649: Field 'UnpackFilter30.BlockStart' is never assigned to, and will always have its default value 0
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Compressors\Rar\VM\BitInput.cs(14,21,14,35): warning CS0649: Field 'BitInput.ExternalBuffer' is never assigned to, and will always have its default value false
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Compressors\Rar\UnpackV2017\unpack_hpp.cs(192,21,192,32): warning CS0649: Field 'UnpackFilter30.BlockLength' is never assigned to, and will always have its default value 0
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Compressors\Rar\UnpackV2017\unpack_hpp.cs(197,21,197,33): warning CS0649: Field 'UnpackFilter30.ParentFilter' is never assigned to, and will always have its default value 0
2>D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\Compressors\Rar\UnpackV2017\unpack_hpp.cs(193,21,193,31): warning CS0649: Field 'UnpackFilter30.NextWindow' is never assigned to, and will always have its default value false
2>  SharpCompress -> D:\robomwm\repos\Easy-Fetch-UWP\SharpCompressUWP\bin\x86\Release\SharpCompress.dll
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Archiver.xaml.cs(22,7,22,20): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?)
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Archiver.xaml.cs(23,7,23,20): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?)
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Archiver.xaml.cs(24,7,24,20): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?)
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Archiver.xaml.cs(25,7,25,20): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?)
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Home.xaml.cs(33,7,33,20): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?)
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Home.xaml.cs(34,7,34,20): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?)
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Home.xaml.cs(35,7,35,20): error CS0246: The type or namespace name 'SharpCompress' could not be found (are you missing a using directive or an assembly reference?)
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Archiver.xaml.cs(154,68,154,101): error CS0246: The type or namespace name 'ReaderExtractionEventArgs<>' could not be found (are you missing a using directive or an assembly reference?)
3>D:\robomwm\repos\Easy-Fetch-UWP\Easy-Fetch\Archiver.xaml.cs(154,94,154,100): error CS0246: The type or namespace name 'IEntry' could not be found (are you missing a using directive or an assembly reference?)
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Empyreal96 commented 3 months ago

You may need to remove and re-add the SharpCompress reference through the solution explorer, this was made when I didn't have great knowledge on creating projects that include the references source nicely, as for target retargeting should be fine

And ensure that SharpCompress is set to build for x86 in the Configuration Manager

RoboMWM commented 3 months ago

Ah, that was it, thank you! Interesting how that doesn't show up in the csproj file... wonder where it's specified to have that checked or not. image