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

dotnet publish won't work with this package #7

Closed
msitsoftware opened this issue Jul 31, 2021 · 5 comments
Closed

dotnet publish won't work with this package #7

msitsoftware opened this issue Jul 31, 2021 · 5 comments

Comments

@msitsoftware
Copy link

I have a problem using this package with dotnet publish. I got the error C:\Program Files\dotnet" exited with code 1. That's it. When I remove the package everything is working fine.

@Morasiu
Copy link
Owner

Morasiu commented Jul 31, 2021

Hello.

Do you have a specific error? Also can you provide whole command which you are using to publish?

I just tried it in my Demo project using:

dotnet publish Demo\Demo.csproj

and... it works.

My .Net Version: 5.0.104

@msitsoftware
Copy link
Author

No I only got the error I already mentioned. I'm using .NET 5.0.302.

The command I use is:

dotnet publish myProject.csproj

@Morasiu
Copy link
Owner

Morasiu commented Jul 31, 2021

Seems to be a problem with dotnet. It works in version 5.0.104 but in 5.0.302 (using dotnet publish -v d) it returns:

 Could not find file 'C:\Users\Morasiu\.nuget\packages\blazortimeline\1.3.1\staticwebassets\.gitkeep'.
            at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
            at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
            at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
            at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
            at System.IO.File.OpenRead(String path)
            at Microsoft.NET.Sdk.BlazorWebAssembly.Tools.BrotliCompressCommand.<ExecuteCoreAsync>b__16_0(Int32 i)
            at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
         --- End of stack trace from previous location ---
            at System.Threading.Tasks.Parallel.<>c__DisplayClass19_0`1.<ForWorker>b__1(RangeWorker& currentWorker, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
            at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
            at System.Threading.Tasks.TaskReplicator.Replica.Execute()

I guess I should report this bug.

@Morasiu
Copy link
Owner

Morasiu commented Jul 31, 2021

Reported: https://github.com/dotnet/sdk/issues/19453

@Morasiu
Copy link
Owner

Morasiu commented Aug 12, 2021

Fixed in version 1.3.2

@Morasiu Morasiu closed this as completed Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants