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

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

Open
ScottArbeit opened this issue Mar 8, 2023 · 1 comment
Labels
bug Something isn't working OKTA-731177

Comments

@ScottArbeit
Copy link

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

  1. Compile app; should work.
  2. Add Okta.AspNetCore 4.4.2 to the project.
  3. 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
@ScottArbeit ScottArbeit added the bug Something isn't working label Mar 8, 2023
@laura-rodriguez
Copy link
Collaborator

Hi @ScottArbeit,

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

Internal Ref: OKTA-587051

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

No branches or pull requests

3 participants