Netcode-Hub / DemoBlazorWASMCustomAuthenticationWithJwtAndAuthStateProvider

.NET Blazor | Blazor WASM Custom Authentication using JWT and Authentication State Provider. Follow @Netcode-Hub on: Blog: https://netcodehub.blogspot.com | GitHub: https://github.com/Netcode-Hub | Twitter: https://twitter.com/NetcodeHub | Facebook: https://web.facebook.com/NetcodeHub | LinkedIn: https://www.linkedin.com/in/netcode-hub-90b188258
https://netcodehub.blogspot.com/
6 stars 1 forks source link

"GenerateStaticWebAsssetsPropsFile" task failed unexpectedly. #1

Open netrunner1987 opened 1 year ago

netrunner1987 commented 1 year ago

Compliing the client I get this error.

Severity Code Description Project File Line Suppression State Error MSB4018 The "GenerateStaticWebAsssetsPropsFile" task failed unexpectedly. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\mclin\source\repos\DemoBlazorWASMCustomAuthenticationWithJwtAndAuthStateProvider-master\DemoRegistrationEncryptionUsingRandomNumberAndSalt\obj\Debug\net7.0\staticwebassets\msbuild.DemoRegistrationEncryptionUsingRandomNumberAndSalt.Microsoft.AspNetCore.StaticWebAssets.props'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost) at Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAsssetsPropsFile.ExecuteCore() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() DemoRegistrationEncryptionUsingRandomNumberAndSalt C:\Program Files\dotnet\sdk\8.0.100-preview.7.23376.3\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.Pack.targets 136

Netcode-Hub commented 1 year ago

Hello friend, thanks again for contacting Netcode-Hub, Could not find a part of the path 'C:\Users\mclin\source\repos\DemoBlazorWASMCustomAuthenticationWithJwtAndAuthStateProvider-master\DemoRegistrationEncryptionUsingRandomNumberAndSalt\obj\Debug\net7.0\staticwebassets\msbuild.DemoRegistrationEncryptionUsingRandomNumberAndSalt.Microsoft.AspNetCore.StaticWebAssets.props'.

Please clean your:

  1. Solution
  2. Project
  3. rebuild project
  4. rebuild solution

Thanks...


From: netrunner1987 @.> Sent: Sunday, August 27, 2023 9:41 PM To: Netcode-Hub/DemoBlazorWASMCustomAuthenticationWithJwtAndAuthStateProvider @.> Cc: Subscribed @.***> Subject: [Netcode-Hub/DemoBlazorWASMCustomAuthenticationWithJwtAndAuthStateProvider] "GenerateStaticWebAsssetsPropsFile" task failed unexpectedly. (Issue #1)

Compliing the client I get this error.

Severity Code Description Project File Line Suppression State Error MSB4018 The "GenerateStaticWebAsssetsPropsFile" task failed unexpectedly. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\mclin\source\repos\DemoBlazorWASMCustomAuthenticationWithJwtAndAuthStateProvider-master\DemoRegistrationEncryptionUsingRandomNumberAndSalt\obj\Debug\net7.0\staticwebassets\msbuild.DemoRegistrationEncryptionUsingRandomNumberAndSalt.Microsoft.AspNetCore.StaticWebAssets.props'. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost) at Microsoft.AspNetCore.StaticWebAssets.Tasks.GenerateStaticWebAsssetsPropsFile.ExecuteCore() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() DemoRegistrationEncryptionUsingRandomNumberAndSalt C:\Program Files\dotnet\sdk\8.0.100-preview.7.23376.3\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.Pack.targets 136

— Reply to this email directly, view it on GitHubhttps://github.com/Netcode-Hub/DemoBlazorWASMCustomAuthenticationWithJwtAndAuthStateProvider/issues/1, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2NJM3CCFHABXSVI7U3YGH3XXO5ITANCNFSM6AAAAAA4ASGJ2I. You are receiving this because you are subscribed to this thread.Message ID: @.***>