You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since FluentApi is a source generator, you have rightfully mentioned in the readme, that PrivateAssets="all" should be configured. This causes issues when using the generated APIs if FluentApi is not referenced in the project which depends on the project using the source generator:
System.TypeLoadException: Could not load type 'IGeneratedApi' from assembly 'ProjectUsingFluentApi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
This is because all usings in the source file where [FluentApi] is used are copied over into the generated code, including usings of the M31.FluentApi.Attributes namespace.
The text was updated successfully, but these errors were encountered:
Since FluentApi is a source generator, you have rightfully mentioned in the readme, that
PrivateAssets="all"
should be configured. This causes issues when using the generated APIs if FluentApi is not referenced in the project which depends on the project using the source generator:This is because all usings in the source file where
[FluentApi]
is used are copied over into the generated code, including usings of theM31.FluentApi.Attributes
namespace.The text was updated successfully, but these errors were encountered: