Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when publishing #9

Closed
SkinnySackboy opened this issue Aug 2, 2021 · 3 comments
Closed

Issue when publishing #9

SkinnySackboy opened this issue Aug 2, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@SkinnySackboy
Copy link

Hi,

We are using this library (works great!) but have come across an issue when we publish our application (Blazor server). As soon as we run dotnet publish, we are shown the following error:

C:\Program Files\dotnet\sdk\5.0.203\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(238,5): error MSB3030: Could not copy the file "C:\Users\autobuilder\.nuget\packages\blazorpanzoom\0.2.0\staticwebassets\panzoom-4.4.1.min.js" because it was not found.

When we compile and run normally it works, this is only an issue while publishing but I cannot see anywhere that we have referenced this particular *.js file. Is this something we're doing incorrectly?

Thanks in advance!

@SkinnySackboy
Copy link
Author

SkinnySackboy commented Aug 3, 2021

Further to my previous message, these are the steps to reproduce this problem:

  1. Create a server-side Blazor application (I called mine BlazorPanZoomPublishIssue)
  2. Add a reference to BlazorPanzoom (I'm using the latest version, 0.2.0)
  3. Add a publish profile (I tried a few and they all failed, but you can test it with the default Folder profile in the Publish menu wizard)

At this stage, you can compile/run etc. and it all works fine, whether or not any code uses BlazorPanzoom.

The problem arises when you execute the following publish command:

$ dotnet publish BlazorPanZoomPublishIssue.sln --configuration Release -p:PublishProfile=Profile.pubxml
Microsoft (R) Build Engine version 16.10.1+2fd48ab73 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
  BlazorPanZoomPublishIssue -> C:\Users\username\source\repos\BlazorPanZoomPublishIssue\BlazorPanZoomPublishIssue\bin\Release\net5.0\BlazorPanZoomPublishIssue.dll
  BlazorPanZoomPublishIssue -> C:\Users\username\source\repos\BlazorPanZoomPublishIssue\BlazorPanZoomPublishIssue\bin\Release\net5.0\BlazorPanZoomPublishIssue.Views.dll
C:\Program Files\dotnet\sdk\5.0.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Publish.targets(238,5): error MSB3030: Could not copy the file "C:\Users\username\.nuget\packages\blazorpanzoom\0.2.0\staticwebassets\panzoom-4.4.1.min.js" because it was not found. [C:\Users\username\source\repos\BlazorPanZoomPublishIssue\BlazorPanZoomPublishIssue\BlazorPanZoomPublishIssue.csproj]

It's not clear to me where this is coming from. Is someone able to assist us with this please, as we would very much like to continue using this library but are currently blocked from being able to publish and therefore release? Currently it seems as though the published nuget package is missing the file panzoom-4.4.1.min.js under the staticwebassets directory.

@shaigem shaigem self-assigned this Aug 3, 2021
@shaigem
Copy link
Owner

shaigem commented Aug 3, 2021

Sorry about the problem! The issue should be fixed in version 0.2.1 on nuget.

For some reason, the nuget package was still referencing the old panzoom-4.4.1.min.js.

Let me know if it fixes the issue for you.

@shaigem shaigem added the bug Something isn't working label Aug 3, 2021
@SkinnySackboy
Copy link
Author

Many thanks for the quick fix @shaigem it works now, cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants