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

[Bug] namespace Blazored.Modal not found #566

Open
omarceloribeiro opened this issue Mar 5, 2024 · 7 comments
Open

[Bug] namespace Blazored.Modal not found #566

omarceloribeiro opened this issue Mar 5, 2024 · 7 comments
Labels
Bug Something isn't working Needs: More Information The author needs to provide more information on the issue.

Comments

@omarceloribeiro
Copy link

omarceloribeiro commented Mar 5, 2024

Describe the bug
I just installed the package 7.3.1 in a .net 7.0 blazor webassembly, and the namespace Blazored.Modal can not be found.
dowgraded to 7.2.0 and it works.
the error occurrs with the version 7.3.0 and 7.3.1

To Reproduce
Steps to reproduce the behavior:

  1. create a blazor web assembly in .net 7.0
  2. install blazored.modal
  3. try to add the using Blazored.Modal in the program.cs

Expected behavior
the namespace is recognized.

Screenshots

Hosting Model (is this issue happening with a certain hosting model?):

  • Blazor WebAssembly Client ex: MyApp.Client
  • .net core hosted ex: MyApp.Server

Additional context
dowgraded to 7.2.0 and it works.
the error occurrs with the version 7.3.0 and 7.3.1

<PropertyGroup>
  <TargetFramework>net7.0</TargetFramework>
  <Nullable>enable</Nullable>
  <ImplicitUsings>enable</ImplicitUsings>
  <ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
</PropertyGroup>

<ItemGroup>
  <PackageReference Include="Blazored.Modal" Version="7.2.0" />
@omarceloribeiro omarceloribeiro added Bug Something isn't working Triage Issue needs to be triaged labels Mar 5, 2024
@zootius
Copy link
Contributor

zootius commented Mar 11, 2024

Seconded - this happens for me in my Blazor WASM project too. Has been happily working for many months with Blazored.Modal 7.1 and 7.2 - but with 7.3.x it reports Blazored.Modal namespace not found.

@MilesGibson
Copy link

me as well! I had to downgrade...

@chrissainty
Copy link
Member

I can't repro this issue on my machines. Can anyone provide a link to a repo showing the issue?

@chrissainty chrissainty added Needs: More Information The author needs to provide more information on the issue. and removed Triage Issue needs to be triaged labels Mar 14, 2024
@abbottmw
Copy link

abbottmw commented Mar 15, 2024

Ah is it because 7.3.1 required .net 8?

I built a quick WASM this way and can duplicate the issue.

dotnet new blazorwasm -o BlazorModalApp --framework "net7.0"

cd BlazorModalApp

dotnet add package Blazored.Modal --version 7.3.1

Then in Program.cs

using Blazored.Modal;

then in the services

builder.Services.AddBlazoredModal();

Blazored.Modal shows error that it cannot be found.

blazoredModal-error

@abbottmw
Copy link

Are there plans to make it work for .net 7 or going to be 8.0 minimum moving forward?

@chrissainty
Copy link
Member

@abbottmw I don't think that I'll add .NET 7 support. It goes out of support in May so people should be moving to .NET 8.

@ChrisASearles
Copy link

Had the same problem, any chance of updating the versioning scheme to match .NET's? I didn't expect a breaking change like that in my .NET 7 project going from one 7.x minor version to another.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs: More Information The author needs to provide more information on the issue.
Projects
None yet
Development

No branches or pull requests

6 participants