Open
Description
This error seems to happen because of the fix done to solve #405:
rules_dotnet/dotnet/private/rules/nuget/nuget_archive.bzl
Lines 155 to 157 in 54cf66c
This causes the following problem:
error CS0006: Metadata file '/tmp/bazel-working-directory/_main/external/_main~targeting_packs_extension~nuget.microsoft.netframework.referenceassemblies.net48.v1.0.3/build/.NETFramework/v4.8/System.EnterpriseServices.Wrapper.dll' could not be found
However, naively removing this check fails with:
error CS1509: The referenced file '/tmp/bazel-working-directory/_main/external/_main~targeting_packs_extension~nuget.microsoft.netframework.referenceassemblies.net48.v1.0.3/build/.NETFramework/v4.8/System.EnterpriseServices.Wrapper.dll' is not an assembly
This is because System.EnterpriseServices.Wrapper.dll
is not an assembly, but a "module", which is a collection of IL code without an assembly manifest (why this is even a thing is an exercise for the reader). It appears that we need another kind of entry beyond "lib" and "ref" called "module", and this library should be added with -addmodule:
.
See: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/inputs
Metadata
Metadata
Assignees
Labels
No labels