Redth / ResizetizerNT

Add SVG's and PNG's to your shared Xamarin Project
MIT License
318 stars 31 forks source link

AppCentre build issue with resizetizer.nt 0.1.0 #8

Closed GeorgeLeithead closed 4 years ago

GeorgeLeithead commented 4 years ago

When I build my project locally, it builds OK. When building via AppCentre, I "occasionally" get the following error. If I submit the build again with no changes, it will occasionally build successfully.

ResizetizeImages: Open SVG took 282ms Open SVG took 282ms Open SVG took 282ms new SKSvg() took 0ms Open SVG took 282ms new SKSvg() took 0ms Open SVG took 282ms new SKSvg() took 0ms new SKSvg() took 0ms new SKSvg() took 0ms Open SVG took 284ms new SKSvg() took 0ms svg.FromSvgDocument took 55ms svg.FromSvgDocument took 57ms svg.FromSvgDocument took 57ms svg.FromSvgDocument took 57ms svg.FromSvgDocument took 57ms svg.FromSvgDocument took 58ms Save Image took 9ms Save Image took 10ms Save Image took 10ms Save Image took 11ms Save Image took 0ms Save Image took 11ms Save Image took 12ms Save Image took 1ms Save Image took 1ms Save Image took 3ms Save Image took 3ms Save Image took 2ms Save Image took 2ms Save Image took 4ms Save Image took 4ms Save Image took 4ms Save Image took 8ms Save Image took 14ms Save Image took 9ms Save Image took 4ms Save Image took 9ms Save Image took 19ms Save Image took 14ms Open SVG took 3ms new SKSvg() took 0ms svg.FromSvgDocument took 0ms Save Image took 0ms Save Image took 10ms Save Image took 0ms Save Image took 4ms Save Image took 23ms Save Image took 1ms Save Image took 1ms Save Image took 25ms Open SVG took 9ms new SKSvg() took 0ms Save Image took 14ms Open SVG took 7ms new SKSvg() took 0ms svg.FromSvgDocument took 0ms Save Image took 29ms Save Image took 0ms Save Image took 0ms Save Image took 0ms Save Image took 34ms Save Image took 1ms svg.FromSvgDocument took 9ms Open SVG took 5ms new SKSvg() took 0ms Save Image took 1ms Save Image took 2ms Open SVG took 9ms new SKSvg() took 0ms svg.FromSvgDocument took 2ms Save Image took 1ms svg.FromSvgDocument took 0ms Save Image took 1ms Open SVG took 6ms new SKSvg() took 0ms Save Image took 1ms svg.FromSvgDocument took 1ms Open SVG took 5ms new SKSvg() took 0ms svg.FromSvgDocument took 0ms Save Image took 0ms Save Image took 2ms Save Image took 2ms Save Image took 0ms Save Image took 3ms Save Image took 3ms Save Image took 9ms Save Image took 5ms Save Image took 1ms Save Image took 12ms Save Image took 1ms Save Image took 48ms Save Image took 4ms Save Image took 3ms Save Image took 10ms Save Image took 9ms Save Image took 4ms Save Image took 10ms Save Image took 10ms Save Image took 17ms Open SVG took 5ms new SKSvg() took 0ms svg.FromSvgDocument took 1ms Save Image took 1ms Save Image took 21ms Save Image took 2ms Save Image took 21ms Save Image took 4ms Open SVG took 3ms new SKSvg() took 0ms svg.FromSvgDocument took 0ms Save Image took 2ms Save Image took 3ms Save Image took 8ms Save Image took 4ms Save Image took 13ms Save Image took 10ms Save Image took 45ms

/Users/runner/.nuget/packages/resizetizer.nt/0.1.0/buildTransitive/Resizetizer.NT.targets(155,3): error : Object reference not set to an instance of an object [/Users/runner/runners/2.166.4/work/1/s/Source/XXXmyapplicationXXX.csproj]

This is the code from the csproj, and I can confirm that all of the SVG files exist in the project.

    <ItemGroup>
        <None Remove="SharedImages\btc.svg" />
        <None Remove="SharedImages\eth.svg" />
        <None Remove="SharedImages\eos.svg" />
        <None Remove="SharedImages\xrp.svg" />
    </ItemGroup>

    <ItemGroup>
        <SharedImage Include="SharedImages\btc.svg" BaseSize="32,32" />
        <SharedImage Include="SharedImages\eth.svg" BaseSize="32,32" />
        <SharedImage Include="SharedImages\eos.svg" BaseSize="32,32" />
        <SharedImage Include="SharedImages\xrp.svg" BaseSize="32,32" />
    </ItemGroup>
Redth commented 4 years ago

Thanks for the progress. I can’t have a look for a week and a bit as I’m off on vacation but will as soon as I’m back. Not sure why there are some bull images there maybe @mattleibow might have some ideas in my absence.

BMBMove commented 4 years ago

@BMBMove try after this one too, https://www.myget.org/feed/serenity-xf/package/nuget/Resizetizer.NT/0.12.0 it's fixed version. I hope.

I also want to see the log from the previous post to check if we had the similar issues.

@bondarenkod i tried the new package and it seems working fine(at least with tests that i have performed, i tried multiple times), but i had to revert it back as it's difficult to set a new package source when few members are using Visual Studio for MAC and others are using Windows. Can you publish it as a prerelease on Nuget?

bondarenkod commented 4 years ago

@BMBMove I can't. You can download this config, rename the NuGet.Config.txt -> NuGet.Config Just put the new nuget.config beside your .sln file in your solution and restart the studio. It's also a working solution for 3rd party feeds in Azure DevOps. NuGet.Config.txt

BMBMove commented 4 years ago

dear, it has been running for multiple days with no issue after installing the last update. it seems this fix works fine.

Redth commented 4 years ago

Please try 0.2.0-preview2 for those still having the issue, thanks!

ThumbGen commented 4 years ago

Please try 0.2.0-preview2 for those still having the issue, thanks!

It worked without a hiccup the whole day today. Thank you!

Braini01 commented 4 years ago

@bondarenkod @Redth thx for the update. Had no issues so far. Working like a charm.

bmacombe commented 4 years ago

I can also report repeated successful dev-ops builds with 0.2.0-preview2!

Thanks all!

Redth commented 4 years ago

Thanks everyone, just released 0.2.0 stable, appreciate all the help here!

Piyali123 commented 3 years ago

Getting build error in Azure Devops pipeline using ResizetizerNT(resizetizer.nt 0.2.0) in Xamarin.Android project.

PFB log details-

2021-03-02T04:40:33.8764351Z Compiling Xaml, assembly: obj\Debug\netstandard2.0\OT.dll 2021-03-02T04:40:44.4794755Z Creating "obj\Debug\netstandard2.0\XamlC.stamp" because "AlwaysCreate" was specified. 2021-03-02T04:40:44.5470152Z _CopyAppConfigFile: 2021-03-02T04:40:44.5471132Z Copying file from "D:\a\1\s\src\OTobj\Debug\netstandard2.0\OT.csproj.App.config" to "D:\a\1\b\Debug\OT.dll.config". 2021-03-02T04:40:45.2160675Z CopyFilesToOutputDirectory: 2021-03-02T04:40:45.2162628Z Copying file from "D:\a\1\s\src\OT\obj\Debug\netstandard2.0\OT.dll" to "D:\a\1\b\Debug\OT.dll". 2021-03-02T04:40:45.2375473Z OT -> D:\a\1\b\Debug\OT.dll 2021-03-02T04:40:45.2379126Z Copying file from "D:\a\1\s\src\OT\OT\obj\Debug\netstandard2.0\OT.pdb" to "D:\a\1\b\Debug\OT.pdb". 2021-03-02T04:40:45.2901337Z Done Building Project "D:\a\1\s\src\OT.csproj" (default targets). 2021-03-02T04:40:46.0659453Z ##[error]src\OT\packages\Resizetizer.NT.0.2.0\build\Resizetizer.NT.targets(155,3): Error : One or more errors occurred. 2021-03-02T04:40:46.0674374Z D:\a\1\s\src\OT\packages\Resizetizer.NT.0.2.0\build\Resizetizer.NT.targets(155,3): error : One or more errors occurred. [D:\a\1\s\src\OT\Droid\OT.Droid.csproj] 2021-03-02T04:40:46.0780880Z Done Building Project "D:\a\1\s\src\OT\Droid\OT.Droid.csproj" (PackageForAndroid target(s)) -- FAILED. 2021-03-02T04:40:46.0875568Z 2021-03-02T04:40:46.0876318Z Build FAILED.

Build is running fine with Xamarin.iOS task.

douglassimaodev commented 2 years ago

I am getting Resizetizer.NT.targets(155,3): error : One or more errors occurred. soo when I just try to start IOS project, I am using version 0.2, any update on this?

bondarenkod commented 2 years ago

I am getting Resizetizer.NT.targets(155,3): error : One or more errors occurred. soo when I just try to start IOS project, I am using version 0.2, any update on this?

There has been version 0.3 for many months now. Have you tried to update? image