okta / okta-aspnet

okta-aspnet
https://github.com/okta/okta-aspnet
Apache License 2.0
86 stars 52 forks source link

Error NETSDK1082 when adding Okta.AspNetCore 4.4.2 to a Blazor WebAssembly app #238

Open ScottArbeit opened 1 year ago

ScottArbeit commented 1 year ago

Describe the bug?

When adding Okta.AspNetCore v4.4.2 to a Blazor WebAssembly app, compilation fails with a NETSDK1082 error.

What is expected to happen?

The app should compile so I can test Okta authentication in Blazor.

What is the actual behavior?

Compilation fails, as shown below.

Severity Code Description
Error NETSDK1082 There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.

Reproduction Steps?

  1. Open Visual Studio 2022 17.6 Preview 1.

  2. File / New Project / Blazor WebAssembly App C# project

  3. Select .NET 7.0; Individual Accounts; PWA

    image
  4. Compile app; should work.

  5. Add Okta.AspNetCore 4.4.2 to the project.

  6. Rebuild project; should see Error NETSDK1082.

    image

Additional Information?

No response

.NET Version

(5:48:00 PM) C:\Source\Grace\src>dotnet --version 7.0.201


(5:48:02 PM) C:\Source\Grace\src>dotnet --info .NET SDK: Version: 7.0.201 Commit: 68f2d7e7a3

Runtime Environment: OS Name: Windows OS Version: 10.0.25309 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\7.0.201\

Host: Version: 7.0.3 Architecture: x64 Commit: 0a2bda10e8

.NET SDKs installed: 6.0.406 [C:\Program Files\dotnet\sdk] 7.0.200 [C:\Program Files\dotnet\sdk] 7.0.201 [C:\Program Files\dotnet\sdk]

.NET runtimes installed: Microsoft.AspNetCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.14 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 7.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found: x86 [C:\Program Files (x86)\dotnet] registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables: Not set

global.json file: Not found

SDK Version

7.0.201

OS version

BuildNumber Caption OSArchitecture Version
25309 Microsoft Windows 11 Pro Insider Preview 64-bit 10.0.25309
laura-rodriguez commented 1 year ago

Hi @ScottArbeit,

Thanks for reporting this issue. I'll create an internal ticket for our team to review and prioritize.

Internal Ref: OKTA-587051