Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Blazor Server - No Startup #105

Closed
jtsmithit opened this issue May 27, 2022 · 5 comments
Closed

Blazor Server - No Startup #105

jtsmithit opened this issue May 27, 2022 · 5 comments
Labels
status: waiting for customer Waiting for customer type: question Questions about the library

Comments

@jtsmithit
Copy link

Question

The startup class doesn't exist when you create a new blazor server project, and .AddMvvm() is not available in program using builder.Services.AddMvvm().

How do I start using this library in this case?

Code sample

No response

Version

0.7.1-preview9

Are you using Blazor WASM or Blazor Server?

Blazor Server

@jtsmithit jtsmithit added status: triage Needs to be triaged type: question Questions about the library labels May 27, 2022
@klemmchr klemmchr removed the status: triage Needs to be triaged label May 27, 2022
@klemmchr
Copy link
Owner

I've just created a new .NET 6 Blazor Server app (also not using a Startup class) added the package reference and was able to use builder.Services.AddMvvm(). Are you sure you properly installed the package?

@klemmchr klemmchr added the status: waiting for customer Waiting for customer label May 27, 2022
@jtsmithit
Copy link
Author

I installed it via the nuget package manager in visual studio. It shows that it is installed and the namespace is available.

@jtsmithit
Copy link
Author

Screenshot 2022-05-27 170755

@klemmchr
Copy link
Owner

You installed the wrong package. BlazorMVVM is not MvvmBlazor

@jtsmithit
Copy link
Author

Well that certainly explains things. My bad!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: waiting for customer Waiting for customer type: question Questions about the library
Projects
None yet
Development

No branches or pull requests

2 participants