rules_dotnet
rules_dotnet copied to clipboard
.NET rules for Bazel
This PR adds a new attribute to the `DotnetAssemblyInfo` provider called `files`, which is all of the files in the package. This is ground-work for building a `rules_fable`. Fable will...
I have been investigating the feasibility of [Fable](https://fable.io/) rules (https://github.com/bazelbuild/rules_dotnet/issues/236) that can consume `fsharp_library` targets as `deps`. The motivation for this is that the user will not have to define...
NuGet [Central Package Management](https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management) can generate lock files, see [Enable repeatable package restores using a lock file](https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/). Considered the well integration with Visual Studio and broadly adoption, I propose our...
There is a simplistic check to elide assemblies when they are already present, but the same isn't done for analyzers: https://github.com/bazelbuild/rules_dotnet/blob/626e28effb14f87de8375186ebb59911a16b71fb/dotnet/private/common.bzl#L315 I ended up having the following compile flags passed...
We have a csproj file that contains this section. The result is that dotnet generates a MyProject.XmlSerializers.dll as well as a MyProject.dll. Is this possible in rules_dotnet? ``` Utils.XmlBindingUtils false...
I'm looking to create a set of targets that toggle on a feature. In my test code I have it set to toggle based on the presence of an Environment...
Since `rules_dotnet` doesn't run MSBuild, the `Using` directives added by the Task files in the .NET SDK are not handled, causing the build to fail unless the auto-generated `{Assembly}.GlobalUsings.g.cs` is...
Allow explicit integrity for index.json in the nuget_archive repo rule. Solve the following issue: https://github.com/bazelbuild/rules_dotnet/issues/431 I previously created https://github.com/bazelbuild/rules_dotnet/pull/432, but in that PR I committed with a different e-mail for...
I'm trying to use the `nuget_archive` rule exported by rules_dotnet, but my nuget source is a plain HTTP (non-HTTPS) source. The issue here is that during `_get_package_urls`, it attempts to...
I need to set AssemblyVersion on the libraries we are building. Actually, three attributes: [assembly: AssemblyVersion("blah")] [assembly: AssemblyFileVersion("blah")] [assembly: AssemblyInformationalVersionAttribute("blah")] In our existing msbuild, these are set in a .cs...