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

Relationship to rules_dotnet and support for blazor #3

Open
oakad opened this issue Jul 26, 2021 · 4 comments
Open

Relationship to rules_dotnet and support for blazor #3

oakad opened this issue Jul 26, 2021 · 4 comments

Comments

@oakad
Copy link

oakad commented Jul 26, 2021

I am most interested to unify builds of my dotnet components with the rest of my projects (which happen to use Bazel throughout).

Unfortunately, rules_dotnet are barely usable. Does your implementation depends on rules_dotnet or is it completely unrelated?

Do you have any plans to support blazor project compilation? Those require an extra rule to process razor files.

@tomdegoede
Copy link
Collaborator

Hi @oakad, thanks for your interest! We have forked rules_dotnet but have since heavily diverged. Our fork can be found at https://github.com/AFASResearch/rules_dotnet and contains more information about the different approach. Please note that our implementation is currently heavily tailored towards a single consumer (us) and and some information / code might be missing to get it working. If you are still interested I will be happy to assist you and provide you with a sample project. We do not work with Blazor ourselves but implementing rules for support should not be too difficult.

@oakad
Copy link
Author

oakad commented Jul 26, 2021

Thank you.
A sample project will come most handy.

As I'm using dotnet core here, I will need to do some alterations to replace the bat files with something I can run on linux/mac.

The razor part amounts to several (4?) rules msbuild somehow decides to run without any explicit statements in the csproj file. But yes, it should not be something too exotic.

@tomdegoede
Copy link
Collaborator

I have set up an example project in this PR: AFASResearch/rules_dotnet#6 and I have documented some sidenotes on the pull request. if you need anything else just give me a ping.

@oakad
Copy link
Author

oakad commented Jul 28, 2021

Thank you very much.

I wanted to jump on it, but instead got stuck with a long standing bug in cc_grpc_library rule. :-)

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

No branches or pull requests

2 participants