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

Add missing dll #171

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

trejjam
Copy link

@trejjam trejjam commented Aug 14, 2024

Hi, when using this source generator, Rider complains that it could not resolve Razor dependency.

SafeRouting-Razor

For automated dependency bundling, I used https://github.com/HavenDV/H.Generators.Extensions/blob/main/src/libs/H.Generators.Extensions/build/H.Generators.Extensions.props. It's also possible to use the H.Generators.Extensions package directly, but it forces up-to-date dependencies that conflict with dependencies used in this generator.

It's more correct to add the whole Microsoft.AspNetCore.Mvc package, but it causes conflicts with local test projects, and it would increase package size significantly. See:
Mvc-dependencies

Compared to Razor package:
Razor-dependencies

Using only Razor dependencies solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant